Bumping this older thread…I cannot get some simple LUA setpoint increment code to work on my Thermostat. Am I missing something? The code executes - no errors are thrown. But my Trane thermostat doesn’t react.
local THERM_ID = 3
local CurrentSetpoint=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1_Cool”,“CurrentSetpoint”,THERM_ID)
Here is the code I ended up creating based on your examples. I wanted a way to be able to turn up the heat or turn down the air by 1 degree from my Android Wear Watch regardless if I was in heat or cool mode.
-----Turn down the temperature by 1 degree------
local THERM_ID = 20
local CurrentSetpoint=luup.variable_get(“urn:upnp-org:serviceId:TemperatureSetpoint1”,“CurrentSetpoint”,THERM_ID)