I’m looking to create a scene that takes the current cool and heat set point and add one degree to each when the scene is activated. For example, if cool is set to 75F and heat is set to 68F, when the scene would activate it would change the values to 76F and 69F.
I’ve done some searching and found this code:
Thermostat Actions
Change the Temperature on Thermostat (Cool) device #19
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Cool",
"SetCurrentSetpoint", {NewCurrentSetpoint = "75"},
19)
Change the Temperature on a Thermostat (Heat) device #19
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat",
"SetCurrentSetpoint", {NewCurrentSetpoint = "68"},
Can someone tell me what the variable name is for CurrentSetpoint for both cool and heat? Can I do something like the above but have it something like this:
luup.call_action("urn:upnp-org:serviceId:TemperatureSetpoint1_Heat",
"SetCurrentSetpoint", {NewCurrentSetpoint = CurrentSetpointVariable + 1},
My device is called urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1 this is formatted a bit different than the example. Would the above code be written more like this for my case:
luup.call_action("urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1:TemperatureSetpoint1_Heat",
"SetCurrentSetpoint", {NewCurrentSetpoint = CurrentSetpointVariable + 1},
or am I not getting the device name correctly? Any help is most appreciated. Thanks!