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
dzVents and Danfoss wall radiator thermostats
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: dzVents and Danfoss wall radiator thermostats
Do you have 127.0.0.1;127.0.0.* in Setup -> Settings -> System -> "Local Networks (no username/password):" -> Networks: ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 14
- Joined: Monday 31 October 2016 6:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dzVents and Danfoss wall radiator thermostats
Looks like I am doing everything in proper way.
In this thread, sample scripts use the same functions: viewtopic.php?f=59&t=20585&p=159269&hil ... ua#p159269
So maybe it is some more generic problem with accessing local domoticz API?
In this thread, sample scripts use the same functions: viewtopic.php?f=59&t=20585&p=159269&hil ... ua#p159269
So maybe it is some more generic problem with accessing local domoticz API?
Who is online
Users browsing this forum: No registered users and 1 guest