-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing states/attributes from Zigbee devices that are available in Hubitat but show up as "Unknown" in Home Assistant #231
Comments
Historically the integration has mostly dealt with HSL and CT, because that had the widest support in Hubitat when the integration was created, but it shouldn't be too difficult to add support for the Could you post the capabilities of one of the light devices here so I can see what those properties look like? |
Sorry for the late response, here are a couple examples. Based on playing around with it more, there seems to be some "loss in translation" when setting the color in HA and how that value gets stored in Hubitat. I could be wrong, but it seems like Hubitat ends up storing the color name and not a RGB, etc code. However, Home Assistant isn't able to read back the color name property from Hubitat so it displays as "Unknown". These don't report any color information from Hubitat
This one shows up with color and RGB as unknown. Color in Hubitat is set to Blue. Color was set in Home Assistant via Automation.
|
Still looking into this... |
Light and sensor entities have undergone quite a few updates over the last couple of months, including some fixes that specifically addressed attributes not updating. Is this issue still occurring? |
Yes, the lights still show unknown for color and RGB. |
Sorry for not following up, but I just wanted to do a conditional automation depending on the light color of a pair of Philips Hue White and Color Ambiance lights and it has the sensors "Color" and "RGB" but unfortunately they show up as "Unknown". In Hubitat, the "colorName" state shows "Warm White". Here's the full response from the API:
|
This is the response when the light is a color if it makes a difference. It does seem that this may be on the Hubitat side as "RGB" and "color" are still null, but just has a "colorName":
|
Posted in their forums to see if they can change their API response which I believe would then populate the correct values in Home Assistant. https://community.hubitat.com/t/api-response-from-maker-app-doesnt-populate-rgb-or-color-attributes-for-lights/140039 |
@jason0x43 - Here's a breakdown of the API to perhaps be able to extract color information given different criteria: https://community.hubitat.com/t/api-response-from-maker-app-doesnt-populate-rgb-or-color-attributes-for-lights/140039/3?u=ajtatum |
@ajtatum In the Home Assistant developer tools, what does the state info look like for one of the lights in question? For example, here’s what I get for a Hue color temperature light: ![]() I believe the integration is already behaving generally as outlined in the link you mentioned last week. If a bulb is in CT mode, it will report that to Home Assistant, and will have a color temp attribute (taken from the In general light entities (from this integration or others) will not provide separate sensors for every light attribute. Those values are attributes of the light entity, and can be used directly in automations. Light devices may also provide device triggers for attributes, although this integration currently only provides device triggers for button presses. |
@jason0x43 - Here is what I get for the Hue lights:
Sorry I know this is more of a Home Assistant question, but how would I be able to use the RGB values in an automation? Or is that not possible? |
I have numerous devices, most of which were connected directly to HA via a Sonoff USB dongle, that used to have more attributes and those attributes (and more) show up in Hubitat, but they come over to Home Assistant as "Disabled" at first, but after enabling them those states/attributes just show up as Unknown.
The common attributes among states that don't show up across any type of device that emits a light (either a bulb, a motion sensor night light, etc), is the devices "Color" and "RGB" state.
For example, I have ~10 Sengled ZigBee light bulbs and in Hubitat I can see:
In Home Assistant, I can turn on/off the light and change the color. However, for Color and RGB, it shows as "Unkown.".
It would be helpful to be able to have the Color and RGB info as I base some automations on the current color of the light.
Also, battery information doesn't come across from Hubitat when using the Battery Information add-on.
I've attached a debug from HA, but removed all lines that didn't contain hubitat. Let me know if more is needed.
ha_hubitat.txt
The text was updated successfully, but these errors were encountered: