Is there an http command that can change the setpoint of a thermostat by increments of 1?
I’m sure this can be done with a scene that queries the current setpoint then makes a new setpoint as x+1 or x-1 however I don’t know how to write it.
you could do it like this, in a scene:
-- get the temperature set point
local mbr_temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool","CurrentSetpoint", 22)
-- add 5degrees to the set points of the thermostat
local plus_mbr_temp = mbr_temp + 5
-- set the thermostat to the higher temperature
substitute your device number for 22 and use the correct deviceID by hovering over the variable in the advanced tab of your thermostat.
Sorry, forgot to tell you to set this in the Luup tab for the scene called “PlusFive” or something like that…
Thanks Bulldog that is what I was looking for. Appreciate the help.
This may sound like an obvious question, but for Celsius you would change it from + 5 to +1 ?
And does it matter if you use “urn:upnp-org:serviceId:TemperatureSetpoint1_Heat” instead of “urn:upnp-org:serviceId:TemperatureSetpoint1_cool”?
Just use 1 for in incrementing in C or F. Sorry about using 5 and confusing you.
Yes, if you want to control heat, and that is the right service ID, then you are good.
Don’t forget to change 22 to your device number.