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
Window Timer
Moderator: leecollings
-
wouterlet
- Posts: 109
- Joined: Tuesday 02 October 2018 20:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Window Timer
- Attachments
-
- Windows Timer small.png (30.68 KiB) Viewed 490 times
-
- Window timer.png (55.19 KiB) Viewed 491 times
-
zicht
- Posts: 300
- Joined: Sunday 11 May 2014 11:09
- Target OS: Windows
- Domoticz version: 2023.1+
- Location: NL
- Contact:
Re: Window Timer
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
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
-
wouterlet
- Posts: 109
- Joined: Tuesday 02 October 2018 20:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Window Timer
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?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'll try tomorrow to seperate it in 2 events. Then it should work? Or am I misunderstanding you?
-
wouterlet
- Posts: 109
- Joined: Tuesday 02 October 2018 20:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Window Timer
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.
@zicht: thanks for your help I found out by making it 2 seperate events.
Who is online
Users browsing this forum: No registered users and 1 guest