Extracting Setpoint from a Radiatorvalve
Moderator: leecollings
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Extracting Setpoint from a Radiatorvalve
Hi All,
I am trying to create a script to check if a temperature in a room is higher than the setpoint set by Domoticz. In that case I have to check the radiatorvalve. (Batteries could be dead) I have searched the forum for several hours but I cant find how to extract the setpoint for a radiator valve in Lua. The Setpoint is set to 15 but Otherdevices_svalues give me 0.0, same with otherdevices_temperature.
Anyone knows how to extract the setpoint from a radiator?
Regards, Hans
I am trying to create a script to check if a temperature in a room is higher than the setpoint set by Domoticz. In that case I have to check the radiatorvalve. (Batteries could be dead) I have searched the forum for several hours but I cant find how to extract the setpoint for a radiator valve in Lua. The Setpoint is set to 15 but Otherdevices_svalues give me 0.0, same with otherdevices_temperature.
Anyone knows how to extract the setpoint from a radiator?
Regards, Hans
- Westcott
- Posts: 423
- Joined: Tuesday 09 December 2014 17:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: UK - Glos
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Hans,
Have you added a device that displays your setpoint correctly?
setpoint = tonumber(otherdevices_svalues['Your setpoint device name'])
Have you added a device that displays your setpoint correctly?
setpoint = tonumber(otherdevices_svalues['Your setpoint device name'])
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Yes, ive tried several, but no luck.
setpoint = tonumber(otherdevices_svalues['Radiator Bedroom']) and setpoint = tonumber(otherdevices_temperature['Radiator Bedroom'])
Any ideas?
setpoint = tonumber(otherdevices_svalues['Radiator Bedroom']) and setpoint = tonumber(otherdevices_temperature['Radiator Bedroom'])
Any ideas?
- Westcott
- Posts: 423
- Joined: Tuesday 09 December 2014 17:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: UK - Glos
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
What does the device 'Radiator Bedroom' show in the Domoticz GUI?
What value does setpoint = tonumber(otherdevices_svalues['Radiator Bedroom']) print?
What value does setpoint = tonumber(otherdevices_svalues['Radiator Bedroom']) print?
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
2016-05-10 13:15:18.775 LUA: 0
2016-05-10 13:15:18.954 LUA: 0
2016-05-10 13:15:19.136 LUA: 0
- Westcott
- Posts: 423
- Joined: Tuesday 09 December 2014 17:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: UK - Glos
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Interesting!
Is it possible that you have more than 1 device called 'Radiator Bedroom'?
Is it possible that you have more than 1 device called 'Radiator Bedroom'?
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Westcott,
Yes, when I add a radiatorvalve there are 2 items added with the same name. one holds the set temperature and one is a on/off switch
There are also two IDX's
BTW, thank you for replying so quickly..
Yes, when I add a radiatorvalve there are 2 items added with the same name. one holds the set temperature and one is a on/off switch
There are also two IDX's
BTW, thank you for replying so quickly..
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Just rename one of the two so they are both unique and you can use them in LUA.
Jos
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
I did rename one.. answer is still 0
2016-05-10 13:37:44.992 LUA: Radiator Bedroom Temperature is 0
2016-05-10 13:37:44.992 LUA: Radiator Bedroom Temperature is 0
-
- Posts: 79
- Joined: Thursday 17 March 2016 14:58
- Target OS: Linux
- Domoticz version:
- Location: Pijnacker, the Netherlands
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
With type of Danfoss product do you have?
I have the LG-13's and these do not send a acual temp.
I have the LG-13's and these do not send a acual temp.
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Luigi87,
Thanks for replying.
Smartwares Wireless Radiator valves
http://www.homewizard.co.uk/smartwares- ... valve.html
The valve itself doesnt send... but the setpoint is sent by Domoticz which is visible in the GUI. and I would like to use that Temperature to compare it with the actual measured temperature. If the actual temperature rises above the setpoint temperature than there must be an error (for example: battery faillure). I have had it once that I came back home after a few days and the bedroom was like a sauna, which costs a huge amount of wasted energy.
Regards..Hans
Thanks for replying.
Smartwares Wireless Radiator valves
http://www.homewizard.co.uk/smartwares- ... valve.html
The valve itself doesnt send... but the setpoint is sent by Domoticz which is visible in the GUI. and I would like to use that Temperature to compare it with the actual measured temperature. If the actual temperature rises above the setpoint temperature than there must be an error (for example: battery faillure). I have had it once that I came back home after a few days and the bedroom was like a sauna, which costs a huge amount of wasted energy.
Regards..Hans
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
The value is in the data part of the json reply, shouldn't be that hard.
At least, not in php
At least, not in php

-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Egregius,
Maybe thats a start, only thing is... I am not a real programmer, I try to read code from others and combine things to fill my needs. Do you have an example?
Regards, Hans
Maybe thats a start, only thing is... I am not a real programmer, I try to read code from others and combine things to fill my needs. Do you have an example?
Regards, Hans
-
- Posts: 79
- Joined: Thursday 17 March 2016 14:58
- Target OS: Linux
- Domoticz version:
- Location: Pijnacker, the Netherlands
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Oke, now its clear to me. I thought I had read that you used a danfoss.DutchHans wrote:Hi Luigi87,
Thanks for replying.
Smartwares Wireless Radiator valves
http://www.homewizard.co.uk/smartwares- ... valve.html
The valve itself doesnt send... but the setpoint is sent by Domoticz which is visible in the GUI. and I would like to use that Temperature to compare it with the actual measured temperature. If the actual temperature rises above the setpoint temperature than there must be an error (for example: battery faillure). I have had it once that I came back home after a few days and the bedroom was like a sauna, which costs a huge amount of wasted energy.
Regards..Hans
I Don't know how thats works yet. but i will also follow this topic.
I hope to have some time by the end of this year to implement this also.
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Someone else any ideas? I guess it must be possible to extract the setpoint but I have really no idea...
Regards, Hans
Regards, Hans
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
What does it return without converting it tonumber? so just:
Jos
Code: Select all
print(otherdevices_svalues['Radiator Bedroom'])
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Jos,
The line:
print(otherdevices_svalues['Radiator Bedroom'])
shows this in the log:
2016-05-11 09:04:29.249 LUA: 0.0
But the setpoint in the Domoticz Gui still returns 15.0°C
Regards, Hans
The line:
print(otherdevices_svalues['Radiator Bedroom'])
shows this in the log:
2016-05-11 09:04:29.249 LUA: 0.0
But the setpoint in the Domoticz Gui still returns 15.0°C
Regards, Hans
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Could you show a screen capture of the devices list and simply put in a filter like "Radiator"?
This will show the existing devices with that name in it and their current values.
r/Jos
This will show the existing devices with that name in it and their current values.
r/Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Hi Jos,
The complete list of radiators (4 pieces)
The complete list of radiators (4 pieces)
- Attachments
-
- radiators.jpg (263.4 KiB) Viewed 2688 times
-
- Posts: 230
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Extracting Setpoint from a Radiatorvalve
Its getting weirder...I tested it in Blockly
regards, Hans
returns in the log:
So, why not in Lua????regards, Hans
Who is online
Users browsing this forum: No registered users and 1 guest