Extracting Setpoint from a Radiatorvalve

Moderator: leecollings

DutchHans
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

Post by DutchHans »

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

Post by Westcott »

Hi Hans,

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
DutchHans
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

Post by DutchHans »

Yes, ive tried several, but no luck.
setpoint = tonumber(otherdevices_svalues['Radiator Bedroom']) and setpoint = tonumber(otherdevices_temperature['Radiator Bedroom'])

Any ideas?
User avatar
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

Post by Westcott »

What does the device 'Radiator Bedroom' show in the Domoticz GUI?
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
DutchHans
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

Post by DutchHans »

radiator_bedroom.jpg
radiator_bedroom.jpg (42.43 KiB) Viewed 2811 times
The GUI in Domoticz

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

Post by Westcott »

Interesting!

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
DutchHans
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

Post by DutchHans »

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

Post by jvdz »

Just rename one of the two so they are both unique and you can use them in LUA.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
DutchHans
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

Post by DutchHans »

I did rename one.. answer is still 0

2016-05-10 13:37:44.992 LUA: Radiator Bedroom Temperature is 0
Luigi87
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

Post by Luigi87 »

With type of Danfoss product do you have?
I have the LG-13's and these do not send a acual temp.
DutchHans
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

Post by DutchHans »

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

Post by Egregius »

The value is in the data part of the json reply, shouldn't be that hard.
At least, not in php :lol:
DutchHans
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

Post by DutchHans »

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
Luigi87
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

Post by Luigi87 »

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
Oke, now its clear to me. I thought I had read that you used a danfoss.
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.
DutchHans
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

Post by DutchHans »

Someone else any ideas? I guess it must be possible to extract the setpoint but I have really no idea...

Regards, Hans
User avatar
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

Post by jvdz »

What does it return without converting it tonumber? so just:

Code: Select all

print(otherdevices_svalues['Radiator Bedroom'])
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
DutchHans
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

Post by DutchHans »

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

Post by jvdz »

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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
DutchHans
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

Post by DutchHans »

Hi Jos,

The complete list of radiators (4 pieces)
Attachments
radiators.jpg
radiators.jpg (263.4 KiB) Viewed 2695 times
DutchHans
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

Post by DutchHans »

Its getting weirder...I tested it in Blockly
blockly.jpg
blockly.jpg (43.3 KiB) Viewed 2693 times
returns in the log:
log.jpg
log.jpg (34.8 KiB) Viewed 2693 times
So, why not in Lua????

regards, Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest