LUUP Code to raise cool/heat setpoints one degree scene

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!

I figured it out. For those interested, this will get current cool/heat setpoints, add one degree to each and then send the new value to the tstat:

local THERMOSTAT = 25 -- The thermostat device number local HVACO_HEAT = "urn:upnp-org:serviceId:TemperatureSetpoint1_Heat" local HVACO_COOL = "urn:upnp-org:serviceId:TemperatureSetpoint1_Cool" local heatSetpoint = luup.variable_get( HVACO_HEAT, "CurrentSetpoint", THERMOSTAT) heatSetpoint = heatSetpoint + 1 local coolSetpoint = luup.variable_get( HVACO_COOL, "CurrentSetpoint", THERMOSTAT) coolSetpoint = coolSetpoint + 1 luup.call_action( HVACO_HEAT, "SetCurrentSetpoint", {NewCurrentSetpoint = heatSetpoint}, THERMOSTAT) luup.call_action( HVACO_COOL, "SetCurrentSetpoint", {NewCurrentSetpoint = coolSetpoint}, THERMOSTAT)