Hello all,
I have been struggling to create what I’m guessing should be a simple rule. I have two motion sensors. I simply want a rule that monitors the status of each motion detector and when both of them have not detected motion for five minutes I would like to trigger an action to switch off lights.
No doubt I am just not doing something right I just can’t seem to get this to work.
So, I created my automation per your instructions and I would say I am 90% sure I have it right. I have created an entity which is made up of the two motion sensors and I have set the trigger that when that entity goes from an on-state to an off state that it should trigger my actions.
I know this should work and I get it but for some reason it’s just not triggering my actions. I’ve made sure there is no motion in there and I know that with this configuration that you have advised that both sensors need to be in an off or not detecting the state to create the action.
Can you confirm that binary_sensor.kitchen_living_motion is a helper group containing only your 2 motion sensors?
Tell us exactly which entities you would like to switch off. Your current automation’s actions are all over the place - it’s trying to switch off by area, by 2 switch devices, and by label.
I suggest you start off simple by only switching off 1 entity in your actions. It will make it easier to check the automation’s trace if something doesn’t work.
Sorry for delay in getting back. I managed to find out what was preventing my rule from running. So when I went to the top right drop down and said to run rule the rule, manually, it would run all the things that I wanted it to run in the list but it just would not trigger from my two motions sensors stopping detecting motion.
Most likely someone will tell me this should work and I would be interested in that but it turns out that the two motion sensors I was using where different brands. One was from smart things and the other was Third Reality. Both would work in their own right separately but not when being used in a rule monitoring for the status of both of them.
I instead connected another third reality instead of the smartthings and immediately, the rule began to work so I’m guessing from the little research I did that it could be to do with the different cool down times on each device perhaps.
For now, my rule is working and I just wanted to say thank you for the help provided here.
Particularly it has been great to learn about creating a helper which is a much better way than the way I had been constructing my rule previously.
This should make absolutely no difference when triggering and automation. Using devices from different manufacturers is literally the reason HA exists.
If you’re still interested in fixing the issue, please let us know more about your 2 motion sensors and we’ll help you figure it out.