I would like to get the HeatOn signal from my HRT4-ZW thermostat.
I got this code to check the heaton on and if it is on switch on a dimable light to 10%
local HVAC_Mode = luup.variable_get(“urn:upnp-org:serviceId:HVAC_UserOperatingMode1”,“ModeStatus”,57)
if (HVAC_Mode==“HeatOn”)
then
luup.call_action(“urn:upnp-org:serviceId:Dimming1”, “SetLoadLevelTarget”, {newLoadlevelTarget = “10”}, 49)
else
luup.call_action(“urn:upnp-org:serviceId:Dimming1”, “SetLoadLevelTarget”, {newLoadlevelTarget = “0”}, 49)
end
But this code allways put the light to 0% if the thermostat is on so this code does not work.
The code does work if I put in the device Id of the actuator but I want the Heaton from the thermostat!!
I want to program my own luup to switch on the actuator and the floorheating pump a the same time. But the floorheating pump should never run between 22:00 and 7:00 hours because it is to noisy and near my bedroom.