Page 1 of 1

Window Timer

Posted: Monday 16 December 2019 16:09
by wouterlet
Hello Guys,

We often forget to close the windows, so it's freezing upstairs when we go for a shower. I did Window sensors on all of them. And want to make a timer that I get a message that I should close the windows after 30 minutes. I made this blocky, but it doesnt work.This parts do work:

When I make the UV 1 by hand and open a window I get the message.
The UV does turn 1 after half an hour.
The UV does turn 0 when I close the windows

I don't have a clue what could be wrong, does anyone of you have? Or is there an easier way to make this timer and send a message?

Best regards,

Wouter Lettinga

*Edit: attached an extra image because the complete picture seems a little small

Re: Window Timer

Posted: Monday 16 December 2019 19:21
by zicht
As i read it the or fires immediate in the second ELSEIF - AND & OR, you try to do AND, but this will not work this way, you exclude the 1 with OR

Re: Window Timer

Posted: Monday 16 December 2019 23:07
by wouterlet
zicht wrote: Monday 16 December 2019 19:21 As i read it the or fires immediate in the second ELSEIF - AND & OR, you try to do AND, but this will not work this way, you exclude the 1 with OR
I'm not sure if I follow you. But you're saying the And in the second else won't work? Because it's in the same event as the first?

I'll try tomorrow to seperate it in 2 events. Then it should work? Or am I misunderstanding you?

Re: Window Timer

Posted: Tuesday 17 December 2019 22:22
by wouterlet
I found the problem. At least I think I do. It looks like the change of an User Variable doesn't trigger the "if" I changed the UV into a virtual switch and now it works.

@zicht: thanks for your help I found out by making it 2 seperate events.