I am trying to do an event that uses 3 motion sensors in a Group. I have created an Event to turn on a set of Hue lights in the Basement when ANY of the motion sensors detect motion. This seems to work. However, I am having trouble with the Event to turn the lights OFF after there is no motion from ALL motion sensors for 3 minutes. This is the Event that I have setup but for some reason it is turning the light off while there is still motion being detected. Can anybody help with this?
Announcement
Collapse
No announcement yet.
Help with Event with motion sensors
Collapse
X
-
It appears that you could have motion in the 3 minute delay before the off command is sent, but your event will ignore it. Instead of using a delayed device action, you could try a delayed event, where the event has the same conditions as the off event. (Be sure to include the requirement that the other event conditions are true.)
You should also have your ON event cancel delayed device actions or events related to your lights.Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
-
There are a few different ways to accomplish this type of motion controlled lighting, and I believe there is a detailed tutorial in the Event Clinic on the different methods.
But for the events as you have them now, I think you need to add an action to your Basement Lights Off event to Remove Delayed Device Actions for JowiHue Basement. It should be the first action of the Off event, before the action to turn them off after 3 minutes.
Comment
-
Originally posted by pcgirl65 View PostHow do I do a delayed event?
Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
Comment
-
Originally posted by cowinger View PostJust curious! In the Off event you have "less than 10 watts" and it is the same as the On event. Should the Off event be "greater than 10 watts"?
Comment
-
Originally posted by teladog01 View PostBut for the events as you have them now, I think you need to add an action to your Basement Lights Off event to Remove Delayed Device Actions for JowiHue Basement. It should be the first action of the Off event, before the action to turn them off after 3 minutes.
Comment
-
If you cancel the delayed device action in the On event it will work.
The Off event runs with all motion sensors at 0 setting up a delayed device action.
When the On Event runs it will cancel the delayed device action.
When the sensors are all 0 again a new delayed device action is created
This will continue until there has been no motion in any sensor for more than 3 minutes.
If your TV is on neither event runs. If you turn the TV on while any of the sensors are at 255, the lights will not turn off. If you turn the TV on while there is no motion and within the 3 minutes, the delayed action will turn the lights off and the On event will not run.HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
In rereading your event, I see one other change that could help. In the delayed event, instead of the condition that all devices in the group have a value of zero, it would be preferable, I think, to have them be in the range [0,0] for at least 3 minutes. That would prevent the lights from going out as long as there is some detected motion at least every 3 minutes, even if the TV is turned off. (I assume that with the current event, if the TV is on, the lights do not turn off.)Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
- Likes 1
Comment
-
Originally posted by Uncle Michael View PostIn rereading your event, I see one other change that could help. In the delayed event, instead of the condition that all devices in the group have a value of zero, it would be preferable, I think, to have them be in the range [0,0] for at least 3 minutes. That would prevent the lights from going out as long as there is some detected motion at least every 3 minutes, even if the TV is turned off. (I assume that with the current event, if the TV is on, the lights do not turn off.)
HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon
Comment
-
Guest
Originally posted by Uncle Michael View PostIn rereading your event, I see one other change that could help. In the delayed event, instead of the condition that all devices in the group have a value of zero, it would be preferable, I think, to have them be in the range [0,0] for at least 3 minutes. That would prevent the lights from going out as long as there is some detected motion at least every 3 minutes, even if the TV is turned off. (I assume that with the current event, if the TV is on, the lights do not turn off.)
Comment
-
Originally posted by Uncle Michael View PostIn rereading your event, I see one other change that could help. In the delayed event, instead of the condition that all devices in the group have a value of zero, it would be preferable, I think, to have them be in the range [0,0] for at least 3 minutes. That would prevent the lights from going out as long as there is some detected motion at least every 3 minutes, even if the TV is turned off. (I assume that with the current event, if the TV is on, the lights do not turn off.)
I suppose I could also take the TV Plug condition out of both and then do another event where TV Plug is >10 then Disable the Lights On and Lights Off events?
Comment
-
Originally posted by pcgirl65 View Post
If I were to add a Cancel Delayed Action before the Action of turning the lights off does it work because the rule is flowing down? I don't see how this would work? It would cancel the event of turning the lights off after 3 minutes. Doesn't it work that when all the Conditions are TRUE then the Events start? If the Conditions are FALSE then nothing happens?
The reason the light turns off even though there is still motion, is that the Off event is actually running every time all three sensors become in a state of "no motion". And each time it runs it is setting up a delayed action to turn off the lights.
So you potentially have many delayed actions could be queueing up if there is intermittent motion periodically within the three minute delay. If you don't clear these delayed actions, they will all still run even though there has potentially been more motion since the delay started.
This is why you need to add the action to cancel the delayed actions first, then the second action will set up a new delayed action. This way you only ever have one delayed action queued up.
I hope that made some sense. It can be tricky to keep track of exactly what is happening with the delayed actions....
Comment
Comment