-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
color parameter being sent for the non-RGB bulb and Zigbee groups #7220
Comments
I don't see what went wrong here since it is marked as brightness only here: https://github.com/Koenkk/zigbee-herdsman-converters/blob/2505d6f3bb900cffef5cbb26c9f5ad151af1980e/devices/ikea.js#L183 Try stopping z2m, remove color from data/state.json and start again. |
Hi @Koenkk, Thanks for a quick reply. Want to add few more comments. I will clean up the state.json and will report back. |
@Koenkk after cleaning up the state.json the issue has been resolved. It seems like a local issue, so feel free to close this issue if don't feel any need to investigate it. Thanks again for your help! |
Can you try setting the color of the group, does the attribute reappear again? |
yes, you are right. Let me try to explain what I've done: I have a two Zigbee group:
If I change the color of the "Kids Table" group, color attributes appears also in the "All Lights" group. |
I do have the same issue with the HG06106C bulbs. The content of state.json is only: Can someone explain? |
Found one more strange behavior: Home Assistant complaining about color_mode but in this case, this strip is an RGB strip.
|
Not only NON-RGB bulbs, as my bulbs are RGB bulbs (HG06106C bulbs), and got the same problem |
@stickpin found the issue, HA error should be gone now. @DavyRoswinkel for RGB bulbs setting the brightness once should solve the issue. |
@Koenkk thanks a lot for the fix! |
I did set the brightness once...but it didn't solve the issue. Or do I have to update also to f27e5ef |
@DavyRoswinkel you have to update to f27e5ef. |
Maybe a dumb question...but I only know the way to update the edge version with the described steps. |
@Koenkk just to report back, so far so good. No more errors. I want to propose one change regarding Zigbee Groups representation. My Zigbee group "All Lights" contains RGB Bulbs, WW Bulbs, Aqara Relays that I use to turn off all the lights when I leave home.
Wouldn't it be better to represent the parameters of the group based on the "less advanced" device in the group?
So in this case, only |
@stickpin I agree with you. The state should only have actually supported features, e.g. a brightness only bulb shouldn't report color. I will look into this but this is a bit more complicated to fix. |
@Koenkk if you can point me out where to start to look at this, I can try to resolve it and after that can do a PR for your review. |
I still don't understand how to update to version f27e5ef. |
@stickpin these state updates are send here: zigbee2mqtt/lib/extension/groups.js Line 107 in abd8a09
@DavyRoswinkel these changes are included in the latest edge, if you are already on the edge uninstall and install it again should get you to the latest version. |
@Koenkk Thanks for solving this issue! Thanks for your help. I needed to set the brightness and the color temperature, to make it work. And it works. Thanks again and have a nice evening. |
Hi! |
@svadel should be fixed now. After updating set color at least once. Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
@Koenkk Thanks for the help, works great on dev! |
@Koenkk I have this error on 1.19.0-1 regarding this device now: `Logger: homeassistant.util.logging Exception in state_received when handling msg on 'zigbee2mqtt/0x7cb03eaa00ae5688': '{"brightness":250,"color":{"x":0.667,"y":0.284},"color_temp":35,"linkquality":23,"state":"OFF","update":{"state":"idle"},"update_available":false}' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/debug_info.py", line 32, in wrapper msg_callback(msg) File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 306, in state_received self._update_color(values) File "/usr/src/homeassistant/homeassistant/components/mqtt/light/schema_json.py", line 245, in _update_color color_mode = values["color_mode"] KeyError: 'color_mode'` |
@Koenkk I have this error on 1.19.1-dev regarding this device now: Logger: homeassistant.components.mqtt.light.schema_json Invalid color mode received |
|
Is this in 1.20.0? I'm still getting this error with ikea bulbs |
So I found my issue. The bulbs that were causing the issue had defaulted to |
@nashant can I ask how you edited the state "color_mode": "xy" and changed it to "color_mode": "color_temp" I have a number of GLEDOPTO GL-C-007 giving this error |
The error occurred for my Z2M light group of 3 ikea bulbs. How to resolve? |
What happened
Hi,
With the latest DEV build color parameter being sent for non-RGB bulbs.
For example:
The same issue is present also for Zigbee groups.
zigbee2mqtt/Entrance Bedroom Light': '{"brightness":254,"color":{"x":0.4587,"y":0.4077},"last_seen":"2021-04-27T08:07:46.250Z","linkquality":60,"state":"OFF","update":{"state":"idle"},"update_available":false}
As the result it causing an issue on the Home Assistant side.
What did you expect to happen
color shouldn't be sent.
How to reproduce it (minimal and precise)
Turn bulb on or off through Home Assistant.
Zigbee2MQTT will send a device status message update to MQTT Broker.
Debug info
Zigbee2MQTT version: 1.18.2-dev commit: 71d77ac
Adapter hardware: Slaesh's CC2652RB stick
Adapter firmware version: 20210120
The text was updated successfully, but these errors were encountered: