Page 1 of 1

Blockly with two sensors not working as expected

Posted: Tuesday 15 February 2022 20:42
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 1611 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 1611 times
Any help is much appreciated!

Cheers,
Sascha

Re: Blockly with two sensors not working as expected

Posted: Tuesday 15 February 2022 20:55
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 ....

Re: Blockly with two sensors not working as expected

Posted: Wednesday 16 February 2022 14:28
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 1596 times
Do I have to change the conditions in the second and third part as well?

Cheers,
Sascha

Re: Blockly with two sensors not working as expected

Posted: Wednesday 16 February 2022 14:51
by jvdz
The condition is that they both need to be closed... Right?

Re: Blockly with two sensors not working as expected

Posted: Wednesday 16 February 2022 17:12
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

Re: Blockly with two sensors not working as expected

Posted: Wednesday 16 February 2022 22:44
by jvdz
Are you testing the correct SETPOINT TEMP value there or are you testing against the actual temp with that device?

Re: Blockly with two sensors not working as expected

Posted: Thursday 17 February 2022 1:23
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

Re: Blockly with two sensors not working as expected

Posted: Friday 18 February 2022 0:00
by brainpaincgn
I will try that and give you an update!

Thanks for the hint! :)

Cheers,
Sascha

Re: Blockly with two sensors not working as expected

Posted: Friday 18 February 2022 18:32
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

Re: Blockly with two sensors not working as expected

Posted: Saturday 19 February 2022 18:10
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 1523 times
That's the Delay Option for my Windows.
Window Delay
Window Delay
Fenster.jpg (34.88 KiB) Viewed 1523 times
And the Eco-Mode (Nachtabsenkung, don't know the english term)
Eco.jpg
Eco.jpg (45.88 KiB) Viewed 1523 times

Greetings from Gummersbach

Re: Blockly with two sensors not working as expected

Posted: Sunday 20 February 2022 17:25
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