motion sensor

Moderator: leecollings

Post Reply
denismsd
Posts: 3
Joined: Thursday 05 August 2021 22:13
Target OS: Windows
Domoticz version:
Contact:

motion sensor

Post 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
User avatar
Treve
Posts: 107
Joined: Thursday 05 November 2015 10:37
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.11474
Location: Rotterdam, NL
Contact:

Re: motion sensor

Post 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?
- RFXtrx433E,
- AEON Labs ZW090 Z-Stick Gen5 EU
- Hue v2.1
- Raspberry Pi 3 Model B, Raspbian Stretch Full on USB-Stick.
- Domoticz 4.11474
Devices: KaKu, Z-Wave, Hue.

for testing:
Raspberry 4, 2GB, SSD
Domoticz 2022.1
Ikea Hub, Fyrtur curtain
denismsd
Posts: 3
Joined: Thursday 05 August 2021 22:13
Target OS: Windows
Domoticz version:
Contact:

Re: motion sensor

Post 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 .
User avatar
waltervl
Posts: 5384
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: motion sensor

Post by waltervl »

Check this example viewtopic.php?t=27398
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
willemd
Posts: 628
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: motion sensor

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest