Hello, I was hoping for a little guidance on which direction i should go to configure this better. I did search but was not able to find something that helped me. I have two zigbee motion sensors. Each one mounted above a litter box. I currently have it set so that if motion is not detected for 1 minute, it will fire the air fresheners. It does work, but i keep trying to improve it and can’t get it to do what I want. Right now, the sensors work independently. If one cat triggers both motion detectors, it will fire the fresheners twice. It’s easy to see how this happens. Ideally, I want it to be so that once motion is detected by either sensor and then subsequently not detected for 1 minute it will fire. If motion is detected by either sensor in the 1-minute waiting period, it will reset the timer. Goal is to have it not fire while a cat is in there. My coding knowledge is very limited so please dont be afraid to say that I will just have to live with it as it is if it is going to require much coding. I really appreciate all of you who have made and support this wonderful application. Thank you.
A couple of suggestions:
-
Put both motion sensors in a binary sensor group (created in the helpers page). It will be “on” if either or both detects movement, otherwise off.
-
Rather than using “Motion sensor stopped detecting motion”, why not have “off for 1 minute” as you would with a light?
triggers:
- trigger: state
entity_id:
- binary_sensor.cat_litter_tray
for:
hours: 0
minutes: 1
seconds: 0
to: "off"
Wow… that did it. Thank you for helping me with that.