Switching on a plug when motion is detected is very straight forward.
Is there a method to switch off the plug after motion is not detected?
With the plug on, after a 3 mins of not detecting motion then turn off the plug.
I do this with my home office.
Create a rule, but instead of just turning on the plug, choose the action for turn on for x amount of time. Set the amount of time to be at least 5 minutes minimum. That way it has sufficient events to know if a person is still in the room or the trigger location (since events can take up to 5 minutes before a new events triggers). I personally choose for the timer to be at least 10 minutes.
Now, when a person enters my home office, a bunch of things turn on. And as long as a person is still in that room they stay on because the new events keep resetting the timer. But when a person has left the room for 10 minutes or more, that means there will not have been a new cloud event To reset the timer again for at least 10 minutes, and the timer will shut off all the devices.
That’s an interesting approach to the problem. I dig it. It makes me think of how motion sensor switches (like for lights) work.
Same here, for lights, filters, exhaust fans, etc. But I separate “ON” triggers from “OFF” triggers for failsafe reasons:
“ON” trigger for air filter and exhaust fan tied to Motion Sensor v2 (you can substitute motion sensor for camera “detects X”):
“OFF” trigger for air filter:
“OFF” trigger for exhaust fan:
I do this with sensors in lots of other places, particularly rooms that our cats are not allowed in, But this does not work well in my home office, because the sensors would need to watch me at my desk and my cats climb up on my desk, so the sensors would keep turning the lights on for my cats not just me. So in this case, it works better for me to use the cameras with person detection as the trigger, because then My light only comes on for me and not for my cats.
How motion sensors in places like a hallway, or a kitchen, where people will be standing up and the cats will be too low to trigger it.
Explanation: And since the cameras don’t have a trigger for when to turn off (ie: when motion ends, or when no person is detected) you have to use the timer instead when using a camera as the trigger. because there is no " has been clear for" trigger on a camera like there is with a motion sensor.
My office is a cat-free zone.
I also use person detection as a trigger for some use cases that turn on bulbs and plugs, but still use separate rules/triggers for OFF (bulb/plug has been on for X, turn off). I do this not only for failsafe reasons, but it’s also easier to manage the OFF triggers when you have multiple ON triggers for one bulb/plug or group.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.