Hue bridge accessories (4 button)

“Action" logging in the rule would probably be better than looking at device logs. One oddity is that you're using nested IFs instead of actual ELSE-IFs, but the result in this case should be the same. In that first screenshot, all of the conditions appear to be false, however, so nothing would actually run. My guess for why it doesn't always work is because the devices you expect to be in the correct state are not. In any case, logging will probably be of help.

That being said, I also wanted what you wanted and wrote an app to do it for me instead:

I don't want to push a specific solution onto you but figure I'd at least mention this option. I've also seen people do this in rules with a local variable that tracks the current "push number," which is likely to be more reliable than relying on device states and definitely easier than setting up a bunch of virtual devices just for thus purpose regardless. Something a bit like this, though this isn't exactly how I'd do it personally: [How to] recreate Philips Hue Dimmer Switch functionality with RuleMachine

2 Likes