dzVents and Danfoss wall radiator thermostats
Posted: Thursday 18 January 2018 18:20
Hello,
what can be wrong with this simple script:
return {
active = true,
on = {
devices = {
'my switch'
}
},
execute = function(domoticz, switch)
if (switch.state == 'On') then
domoticz.log('Hey! I am on!')
domoticz.devices('Living Room Thermostat').updateSetPoint(21)
else
domoticz.log('Hey! I am off!')
end
end
}
I am getting following error in log:
"Error: Error opening url: http://127.0.0.1:8080/json.htm?type=com ... 0&svalue=5"
Device idx is OK...
Thank you
what can be wrong with this simple script:
return {
active = true,
on = {
devices = {
'my switch'
}
},
execute = function(domoticz, switch)
if (switch.state == 'On') then
domoticz.log('Hey! I am on!')
domoticz.devices('Living Room Thermostat').updateSetPoint(21)
else
domoticz.log('Hey! I am off!')
end
end
}
I am getting following error in log:
"Error: Error opening url: http://127.0.0.1:8080/json.htm?type=com ... 0&svalue=5"
Device idx is OK...
Thank you