One of our users, @thegoose_1369, came up with this idea, which I find quite ingenious. He wanted a virtual motion sensor that would be active if any of several motion sensors are active, and inactive only after there has been no motion for some time, in his case, an hour.
First step is to create a Virtual Motion Sensor device. In my example below, it's called All Motion Quiet. Then the rule is straight forward, using Delay with Cancel on truth change. The clever part is using a Custom Action to control the virtual motion sensor, setting it to active or inactive. Presumably, one would use the All Motion Quiet becoming inactive as a trigger for another rule, perhaps to change mode or turn something off.
Spot on, @bravenel This is used to trigger a rule which sets HSM to Armed-Home overnight once there's no motion anywhere in the house for an hour (Everyone's probably fallen asleep without setting the alarm). Here's the rule:
It isn't. There are always multiple ways to skin a cat with Hubitat. The idea is to show how some type of function can be done in RM, so that it can be applied in more complex scenarios, or possibly with other sensors besides motion.
My understanding is that Zone Motion Controllers app does not allow you to set the Aggregated Zone to 'inactive'.
With HUE, you would want to tell the mZone that it is inactive if the EU presses the Off Switch in HUE.
The outcome without a more advanced rule is that upon re-entering the room within the mZone timeout, the lights do not come back on - becuase the zone believes it is already active and has no way to know that EU in HUE has turned off the HUE Dim Switch
I don't think I understand what you trying to accomplish. The mzone is a virtual motion sensor that aggregates multiple real world motion sensors. Are you saying you want to change the motion status using a switch? If you do, you would have no way of changing the motion status of the real sensors, which would create further complications depending on their timeouts. For example, what would be used to turn the lights back on if you reentered the room while the real motion sensors were still in an active state?
Essentially you would be right back to this same outcome, no?
Sorry, but I'm totally confused. What does "status from a HUE switch" refer too. It's the status of the light that should be relevant, no? The switch would be turning the lights on/off and it's the status of the light that be need to be maintained in HE.
Also, the mzone is a virtual motion sensor. It's task is simply to be active or inactive based on motion. The aggregator portion simply allows multiple motion sensors to act as one. Are you attempting to control the state of a motion sensor with a switch? That is not it's designed purpose.
Yup. I guess I don't understand, from you first reply, if you are asking for something to be changed in the motion aggregator app. What you are describing seems to be something outside of the scope of a motion sensor driver. You would need to use RM or another app to cater for a switch manually changing the lights. I apologise but I just don't see how this relates to mzone (motion zone) functionality.
10 minutes is a pretty long timeout.
The aggregation zone type is useful in areas where a single motion sensor can't cover the entire area, but you wish to treat it as such.
As long is there is at least one discrete motion event within the timeout window the zone will remain active.
You select a timeout value based on the expected time someone could remain inactive within the area.
Except bathrooms and showers I use 5 minutes.
There is some user training as well, people need to learn that the lights will go off on their own, they don't have to turn them off when automated.
The longest I have is 5 minutes, most are 3 (with shower sensor). Shower is only 1 or 2 minutes because you're moving around, but a tub-shower is longer, as there is no way to tell if it's the tub or shower being used.