Thanks! I think I'm close but now just need to get the variable into the parameter of the device but I'm getting an error.
but I'm getting this error;