Using variables in activities

I have a variable defined for a Reactor device which controls my thermostat setpoint. It looks like this:


I have a group condition which calls a LUA task to assign this setpoint but it’s not working. It looks like this:

return true

Is this the correct way to refer to Reactor variables?

It works fine if I hardcode a setpoint value so I know the luup call works.


The syntax you are using does not apply to Lua, it is for parameters in device actions. You don’t need Lua at all for this, just use a Device Action.

Oh ok. Thank you.