Page 1 of 1
motion sensor
Posted: Sunday 20 November 2022 21:07
by denismsd
hello everyone, I need help with a blockly, if my motion sensor does not detect it for 20 minutes it turns off the living room light and kitchen light
Re: motion sensor
Posted: Monday 21 November 2022 8:43
by Treve
denismsd wrote:hello everyone, I need help with a blockly, if my motion sensor does not detect it for 20 minutes it turns off the living room light and kitchen light
Can you give a better explanation of your problem?
Re: motion sensor
Posted: Monday 21 November 2022 19:02
by denismsd
thanks for the feedback, I have 2 lamps in the room, and sometimes I forget the lamps are on, so I put an esp8266 wemos d1, inside a presence sensor I configured it with tasmota, now every time there is movement in the room it sends a signal to domoticz . I wanted to put a rule with blockly , if the presence sensor is not detected for 20 minutes it turns off the lamps .
Re: motion sensor
Posted: Monday 21 November 2022 21:25
by waltervl
Re: motion sensor
Posted: Monday 21 November 2022 22:45
by willemd
1) create a device that counts from 1 to 20 (or vice versa if you want a countdown)
2) trigger the device every minute and increase the value with 1
2) if 20 is reached then switch of the lights
3) if motion is detected then reset the counter