You can see that a bedside switch was double tapped. This turned off the Bed Light Strip, just like I wanted. I then have a rule that when Jordan's Motion Sensor is active, the Bed Light Strip turns on, IF the lights weren't already on. In the log, the rule states the Bed Light Strip is on. This isn't the case, as the log shows that the Bed Light Strip was turned off.
I have checked the device on Hubitat and it says the Bed Light Strip switch is on. It's not on, however, as confirmed from my button double tap and just looking at the lights. Any idea what's going on here?
My second issue comes from the same rule as above. The rule states that after a minute of inactivity, the light will turn off. Occasionally, the light won't turn off however. I haven't seen the log on this, but all I can think of is the motion sensor won't trigger the inactivity, as this should be the only thing preventing the light from turning off.
My LED strips are from Kasa (KL400L5)
My motion sensors are from Sonoff (SNZB-03)
I installed four Zigbee repeating smart plugs from ThirdReality two days ago. I have followed the procedures from the "How to Build a Solid Zigbee Mesh" and nothing seems to be going offline now. Also, if someone knows how to get the plugs to stop reporting power, even thought I have the "Enable automatic power reporting" disabled, that'd be great.
The log does not show this. It would say “Bed Light Strip is off” in the logs. What app contains the bedside switch rule? While it might have turned off the strip in real life, the event was not registered in the logs and this is why your motion rule did not work.
I looked again at your first post. What is the polling rate for the Kasa light strip? As that is a local poll device, its status will not update right away. I think the default is 5 minutes, which is how long it will take for Hubitat to update its status. This would definitely cause the issues you are having.
Per my rule, after "Wait for event: Jordan's Motion Sensor motion inactive and stays that way for: 0:01:00", the Bed Light Strip should turn off. In my log, the "Off: Bed Light Strip" action is skipped. This results in my light staying on.
Secondly, I reduced my polling interval down to a minute. The device polls every minute now, however it doesn't correctly poll the switch status. The device will say it's on after polled, when it is off. I found out when I hit the Refresh button, the device switch status corrects itself. I've added a a "Refresh: Bed Light Strip" to the top of my rule and it seems to be working.
From what I can see, you never shared you entire rule, only your actions. The trigger events (and required expression, if used) are important pieces to know when troubleshooting a rule, so I would suggest that.
You’ll want to modify your rule slightly to prevent it from re-running. Try adding the following:
Required Expression: Private Boolean be true
Then in actions, have your first action after the if to set the Private Boolean to false. Your last action before the end-if should set the Boolean to true. This will keep your rule to only one instance at a time.
In my similar actions for my Den's motion sensor, I put the END-IF before the WAIT FOR line. The trigger's IF made sure the light was set as desired, the IF condition was dealt with (End-If). Then the trigger just waits for inactivity until carrying on. (In my case a private boolean isn't necessary)
The updated rule will work as long as you have a required expression of the Private Boolean being true. The rule will only run one time until the Boolean gets set back to True.
As for having a rule for your wife's motion sensor, that would not be an issue as long as you have the same Private Boolean in her rule. Basically, this would allow for only one of the rules to be active at any given time.
Finally, if you wanted to condense everything down to one rule, I would look to combine your two motion sensors into one virtual motion sensor via Zone Motion Controller | Hubitat Documentation. Create a motion aggregation zone of the two motion sensors with a time out period of 1 minute. You could then take this new virtual sensor that is created and plug it into one rule with the same required expressions, triggers, and actions. Only difference would be that you would not need a "Stay that way for..." since the timeout on the virtual sensor is set for that. You would just need the virtual sensor to become inactive.