I have an Inovelli Red dimmer V2 that controls 2 Hue Bulbs via Button Controller rules depending on which buttons I press on the Red dimmer and how many times. So far, so good.
My problem is that when I have Alexa turn off those bulbs the switch thinks it is still on. (I can tell because the LED is all lit up). I created a Rule Machine rule that has as a trigger if either bulb is off then test the condition if both are off to turn the Red dimmer off. But from looking at the live logs when I have Alexa turn one of the bulbs on or off it doesn't get reported.
So how can I get a Hue bulb to report to Hubitat it is off when I have Alexa turn it off?
That’s the way triggers work, because the two trigger events cannot happen at the same instant. Triggers are not conditions (states); instead, they are events (state changes).
One way to do what you want is to use two rules, one detecting the event of one of the bulbs going off, the other detecting the event of the other bulb going off, then have each rule test the condition of the other bulb to see if it is off.
Rule 1:
Trigger: Bulb 1 is off
Actions:
IF Bulb 2 is off Turn off Red Dimmer
Rule 2:
Trigger: Bulb 2 is off
Actions:
IF Bulb 1 is off Turn off Red Dimmer
Thanks. I figured out the OR part of the trigger and made the AND in the test.
My problem doesn’t seem to be my rule logic but the fact that when I tell Alexa to turn one of the bulbs on or off I don’t see any event in the logs. So it seems Hubitat doesn’t know the bulb state has changed and therefore any rule based on that is never triggered.
BTW, when I tell Alexa to turn other switches on or off I do see those events in the Hubitat logs.