Blockly with two sensors not working as expected

Moderator: leecollings

Post Reply
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Blockly with two sensors not working as expected

Post by brainpaincgn »

Hello everyone,

I have a Blockly configured for every room where I have a Zwave thermostat. In these rooms I usually only have one window with sensor to check if the window is opened or closed. I have also installed thermometers to check the temperature.

If the window is opened, the thermostat should be set to its lowest value. If the window is closed and the temperature is below a certain value, the thermostat is set to a specific value. If the temperature is above a certain value and the window is closed, the thermostat is set to a specific value. Nothing fancy, but it suits my needs.

But now I want to enhance the logic and also include the door in the hall. And this is unfortunately not working!

Maybe you can easily indentify the error?

Only window:
Bildschirmfoto 2022-02-15 um 18.09.47.png
Bildschirmfoto 2022-02-15 um 18.09.47.png (146.17 KiB) Viewed 1607 times
Window and door:
Bildschirmfoto 2022-02-15 um 18.09.32.png
Bildschirmfoto 2022-02-15 um 18.09.32.png (180.71 KiB) Viewed 1607 times
Any help is much appreciated!

Cheers,
Sascha
--
brainpaincgn
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly with two sensors not working as expected

Post by jvdz »

You need to test for each device to be "Open" not like you have done the or/and now, so
if fenster flur = Open or tür flur = Open
do ....
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Re: Blockly with two sensors not working as expected

Post by brainpaincgn »

Thanks!

I changed the first part and that's working now. But as soon as I close either window or door, the thermostat is not set back to 17 or 20 degrees.
Bildschirmfoto 2022-02-16 um 14.24.53.png
Bildschirmfoto 2022-02-16 um 14.24.53.png (189.85 KiB) Viewed 1592 times
Do I have to change the conditions in the second and third part as well?

Cheers,
Sascha
--
brainpaincgn
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly with two sensors not working as expected

Post by jvdz »

The condition is that they both need to be closed... Right?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Re: Blockly with two sensors not working as expected

Post by brainpaincgn »

Yes!

When I open window or door, it is set to 8 degrees. But when this window or door is closed again, it's not set to 17 or 20 degrees depending on the current temperatur.

Cheers,
Sascha
--
brainpaincgn
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Blockly with two sensors not working as expected

Post by jvdz »

Are you testing the correct SETPOINT TEMP value there or are you testing against the actual temp with that device?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BennY
Posts: 20
Joined: Tuesday 27 February 2018 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly with two sensors not working as expected

Post by BennY »

Hi,

is it possible, that your current temperature "Thermometer Flur" was between 18°C an 19°C when you Test your blockly?
If your Thermometer Flur is higher 18°C and lower 19°C your Thermostat will not Update the Setpoint.

For testing you could try <=18 and >18.

Benny
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Re: Blockly with two sensors not working as expected

Post by brainpaincgn »

I will try that and give you an update!

Thanks for the hint! :)

Cheers,
Sascha
--
brainpaincgn
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Re: Blockly with two sensors not working as expected

Post by brainpaincgn »

That did the trick! Thanks! :)

I got one additional question: Is there an option to set the Thermostat only to 8 degrees if the door is opne longer than 30 seconds or a minute?

Cheers,
Sascha
--
brainpaincgn
BennY
Posts: 20
Joined: Tuesday 27 February 2018 8:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Blockly with two sensors not working as expected

Post by BennY »

Yes it is. What kind of Thermostat do you use?

I have some Danfoss LC-13 and use this blockly to contol them. The internal controller works very well, for me there is no need to controll them with an external temperature sensor. Sometimes they want update the Setpoint, so I set the Setpoint every time they Wake-Up (15min in my case) and don't have the right Setpoint.
Thermostat Control
Thermostat Control
Thermostat.jpg (77.31 KiB) Viewed 1519 times
That's the Delay Option for my Windows.
Window Delay
Window Delay
Fenster.jpg (34.88 KiB) Viewed 1519 times
And the Eco-Mode (Nachtabsenkung, don't know the english term)
Eco.jpg
Eco.jpg (45.88 KiB) Viewed 1519 times

Greetings from Gummersbach
brainpaincgn
Posts: 16
Joined: Wednesday 03 February 2016 0:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9052
Location: Cologne, Germany
Contact:

Re: Blockly with two sensors not working as expected

Post by brainpaincgn »

Thanks a lot! I will look into this and give it a try.

I use one Danfoss and three Eurotronics devices. Two using Zwave and two using ZigBee.

Cheers from Cologne,
Sascha
--
brainpaincgn
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests