Hello Peter, I modified my dzvents script by adding the away switch in the setpoint update conditions. That is, my script now looks like:Ptje wrote: ↑Monday 21 December 2020 19:41 Hello,
I still have something that is not right. When my domoticz sets away on in domoticz, I think sometimes The DzVenst script does set the normaal temperature gets the same setting as the away temperature. My DzVents is not so good that I can change this by my self. Does anyone knows how to change this ?
Greetings,
Peter
Code: Select all
return{
on = {
devices = {
'TermNest'
}
},
execute = function(domoticz, device)
local setpoint = tostring(domoticz.devices('TermNest').setPoint)
if ((domoticz.devices('NestEcoMode').state == 'On') or (domoticz.devices('NestAway').state == 'On')) then
print("Nest Setpoint not Called because in EcoMode or Away")
else
print("Nest Setpoint Called, change SetPoint to :" .. setpoint .. " ...")
cmd = "/usr/bin/php /home/pi/nest-api/nest_setpoint.php " .. setpoint
print(cmd)
os.execute(cmd)
end
end
}