dzVents and Danfoss wall radiator thermostats

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
kilowat
Posts: 14
Joined: Monday 31 October 2016 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

dzVents and Danfoss wall radiator thermostats

Post by kilowat »

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
User avatar
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

Post by waaren »

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
kilowat
Posts: 14
Joined: Monday 31 October 2016 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dzVents and Danfoss wall radiator thermostats

Post by kilowat »

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?
kilowat
Posts: 14
Joined: Monday 31 October 2016 6:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dzVents and Danfoss wall radiator thermostats

Post by kilowat »

waaren wrote: Thursday 18 January 2018 19:53 Do you have 127.0.0.1;127.0.0.* in Setup -> Settings -> System -> "Local Networks (no username/password):" -> Networks: ?
It was that... thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest