Using variables in activities

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

SetpointVar

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

luup.call_action(“urn:upnp-org:serviceId:TemperatureSetpoint1_Heat”,“SetCurrentSetpoint”,{NewCurrentSetpoint={vHeatSetpoint}},121)
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.

Thanks.

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.