Hue lights / group not updating level, not setting level on RM

I have two RM apps set up to manage the Hue flood lights over my garage door. One should turn the lights on at 1% at sunset, and off at 9:30pm. The other should capture the state, and set to 75% when the garage door is opened, and restore the state when the door is closed.

I've noticed that it appears to be set to 75% all the time, on visual inspection from outside. Even if I change the level in the Hue app, I never see the level update in Hubitat. Appears that only On / Off are being logged on the Hue group.

Any suggestions on where to look first?

It has been a while since I've used RM heavily (ST days)…but for your first rule what exactly triggers it? From my vantage it won't run unless something else causes it to be run and evaluated. I'd set it to be a triggered rule (trigger being sunset). Perhaps a second rule to turn it off at 9:30PM as I'm not sure how you'd manage that in a single rule.

The first rule executes when it becomes true (time between sunset and 9:30pm).

I think the main problem is likely the level not updating in Hubitat for the garage light. If it's not ever updating from 75%, then capturing the state will capture 75%, and restoring afterward will restore 75%. I'm not sure where to look to solve that issue...

1 Like

If you force the 1st rule to become True right now (i.e. adjust the time frame), and then look at the "Garage Flood" Device Details page in Hubitat, what is the Dim Level set to? Is the bulb showing as on or off?

The only way the second rule can work is if the Device has the correct status based on the first rule running.

I don't use Hue, so I can't share any firsthand knowledge on how the Hue bulb should behave. I would assume that setting the dim level to 1, would cause the bulb to turn on automatically and change the level attribute to '1' and the switch attribute to 'on'. Is that what you're seeing independent of Rule Machine? (i.e. just using the device details page to set the level to 1 with the bulb already off?)

Looking at the events for the garage flood device, it's showing On at sunset each day, and Off at 9:30. I never see the level change in Hubitat, whether I send the dim event from within Hubitat, or if I change it in the Hue app directly. So even though the RM rule should be setting it to 1%, it doesn't look like that ever happens.

OK, so let's take RM out of the equation. Try simply exercising the bulb via its Hubitat Device Details page. Have the bulb OFF, and then simply issue a setLevel command with a value of 1. Does the level attribute change to 1 (assuming it was something different to begin with, of course) ?

Well look at this:

  • I set it to 1 in Hubitat, and see the state change in Hue, but no change to level in Hubitat
  • I set it to 40 in Hubitat, and see the state change in Hue, and in Hubitat
  • I set it to 2 in Hubitat, and see the state change in Hue, but no change to level in Hubitat
  • I set it to 3 in Hubitat, and see the state change in Hue, and in Hubitat

So maybe it is having an issue with minimum level amounts, as higher values appear to register correctly all around.

1 Like

Nice detective work! I wonder if @mike.maxwell or @patrick could explain why Hue dim levels under 3 are not properly picked up by the Hubitat device?

I get a similar issue with low dim levels set by the Hue app on my Android app.

If I set a hue bulb at say 50% on HE then adjust it to 30% on Hue, it updates to 30% on HE.

But if I set the bulb to Nightlight level on Hue (which I think is 1 or 2 %) HE never updates the level from the previous value.