I purchased these sensors off aliexpress shame on me for going cheap but money is tight thanks to someone. I installed 4 zigbee mini pir motion detectors. I tried my best to setup an automation it will turn on when entering the room but after a few minutes it goes off. Also the zone size the sensor picks up is to huge that I purchased throw away drinking cups in red and still it picks up outside the area I want it to.
So I made quite a few of these automations and none do what I want. When entering a room lights on and stays on until I leave. Can someone please help me on what to do cause I can’t figure this out myself and it’s stressing me out.
I wish I could upload more pictures cause that’s just one example. If someone is trained in rbi’s area I would appreciate the help. I should note this is the sensor
Please follow Questions Guidelines 14 and 11 by sharing automations as properly formatted YAML… screenshots are rarely detailed enough for us to get the full picture.
Sorry about that. I posted this message as I was sleeping so I couldn’t post my formula until I get home in a few hours. So sorry but I do need help because my goal is to when entering a room lights on unit I leave the room then lights off. What’s happening is the lights only go on few seconds then turns off. I also want to get the sensor to only pick up movement at certain spot where the sensor is aiming at.
PIR sensors are motion sensors… they are usually good at the first part of your goal, but not so great at the second part unless you move more often than their cool-down interval. This can be worked around by using a duration on the “off” trigger (as shown in the link I provided previously).
You will need to consult the devices’ data sheet to see if their range and field of view are appropriate for your use.
The first place to start, as mentioned before, is adding a duration to the “turn off” trigger. The following would create a trigger that fires when the motion sensor turns off and stays off for 5 minutes.
id: TurnOff
trigger: state
entity_id: 308754902a12f2ea3100a0fd937df7fc
to: "off"
for: "00:05:00"
Ok so I added 5 minutes to the “off” section. Does this mean lights stay off for 5 minutes cause when you look at the Visual side and not the YAML that what it looks like it doing. Please help I been at this for weeks now. Tonight I also made a new bathroom and when walking pass or waiving hands at the sensor it goes on and off but I am not sure how long it last cause when I leave the room I can’t see that bathroom from my office/living room.
If you added a duration to the TurnOff trigger as I suggested, it means the light will not turn off until there has been no motion for 5 minutes. If you are unsure whether what you have done is correct, post the new YAML (properly formatted) and we can confirm when you have it correct.
That looks fine. Keep in mind that you don’t have to use a 5 minute for duration, after you’ve had the automations running for a few days you will might find that you want to change make it longer or shorter for your specific situation.
This is more a personal preference thing but, you may want to consider switching the automation mode to restart. With the mode set to queued there is an edge case where the off trigger fires right before the on trigger and the lights go from on, to off, to on. Some people really hate that, and some people don’t even notice it… so do as you will.
I don’t quite understand what you are asking. The lights will tun back on when the “TurnOn” trigger fires because the motion sensor turns “on”…
I’m surprised your automation ever worked at all because that’s not the actual entity ID. It should be something like binary_sensor.your_pir and not an alphanumeric string.
In fact, your earlier screenshots of the UI shows that it’s struggling to recognise what your referring to. You can see the trigger is saying “When something changes…”
Read this, hopefully it’ll clarify some stuff for you.
I also was talking with one of my co-workers and was told I bought the wrong sensors I need to buy “mmWave Presence Sensor” and so I check aliexpress and I am not too sure witch once are actually mmWave Presence Sensor and not what I have witch is PIR. Reason why is during testing I noticed after 30 seconds lights off until movement. mmWave Presence Sensor’s you can breath and it will kick on that’s what I am looking for because the office I sit in the dark if not moving. I sit on a computer chair and type away. Can someone recommend some cheap under $10 mmWave Presence Sensor?
looks good I did to saw that last night tell me if it works before I wast $55 for 4 of them
i hope the adhesive isn’t permanent cause i’m a apartment renter and it’s my responsibility to turn jt in the way I saw it. good luck