timer in blockly?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

timer in blockly?

Post by snellejellep »

i have a question, i am using a motion sensor to trigger my bathroom lights and turn them off after x minutes.
the only problem is that the turn off action does not reset when motion is triggerd when the lights are on so the lights turn off after x minutes and turn then back on, so if i am in my bathroom for an extended period of time the light flickers. is there some way to create for example a timer which counts to an x number and if x number is reached the light turns off but if there is motion again and the lights still are on reset the timer so it starts over.

maby there is some genious out here who has the solution i can not seem to figure out myself.
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
User avatar
sisaenkov
Posts: 50
Joined: Friday 27 May 2016 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8
Location: Moscow, Russia
Contact:

Re: timer in blockly?

Post by sisaenkov »

Create additional switch with Off timer to trigger it when moving detected.
http://domoticz.com/forum/viewtopic.php ... 92#p119503
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: timer in blockly?

Post by snellejellep »

does that reset when you change the stat from on to on?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest