What’s the preferred method for reading/writing the configuration options for Philips Hue products when using the Home Assistant ZHA integration?
The API is defined at developers.meethue.com, and I see how others are using deConz to access the settings, such as at the end of this thread: deConz + Hue motion sensor - adjust senisitivity
The configuration options I’m most interested in are:
Hue Bulbs:
-
startup
(object
):-
mode
(attribute inobject
): controls bulb behavior after power failure; values aresafety
,powerfail
,lastonstate
,custom
; default appears to besafety
in my experience
-
Hue Motion Sensor:
-
ledindication
(bool
): controls whether the red LED lights up when motion is detected or not -
sensitivitymax
(int
, readonly): the maximum integer value for thesensitivity
option -
sensitivity
(int
): motion detector sensitivity (0…sensitivitymax
)
I currently have a mixture of Hue bulbs connected to the Hue Bridge and some Hue bulbs connected directly to a ConBee II controller to help strengthen my Zigbee mesh.
I realized the other day that I think the only reason I still use the Hue Bridge is that the bulbs connected to the ConBee II have all reverted to their default startup behavior of safety
, where they turn on to full brightness when power is reapplied after a power failure. This option is configurable in the Hue app, but the bulb does not retain this setting when removed via the Hue app or when reset via the Hue Remote method. From what I understand, one of those two options is necessary when connecting a Hue bulb to a ConBee II if it’s previously been connected to a Hue Bridge.
The default safety
startup behavior is annoying but workable in most areas of my home, but not acceptable for my bedroom. If the power has a momentary hiccup in the middle of the night, my bedroom becomes noon on a sunny day. While I find this super-annoying, the more important factor is that this behavior invokes spousal comments of our previous dumb home being preferable to the new sorta-smart home and how perhaps HA should be uninstalled. Thus, I still use the Hue Bridge for the bedroom lights because I want the lights configured to powerfail
, where they retain their previous state.
I’d also like to be able to turn off the red LEDs on the motion sensor when they detect motion, as well as adjust the sensitivity in a few locations, but that’s a little less critical than the lights’ power-on behavior.
Anyone have this functionality working with the ZHA integration?