Invalid supported_color_modes for lights
What happened?
I'm getting the following error in Home Assistant 2025.3b2:
voluptuous.error.Error: Invalid supported_color_modes ['brightness', 'color_temp', 'xy']
This causes all the lights that support color or color temps to be unavailable in Home Assistant.
I'm not entirely sure, but I think according to the docs and code, the light should have either brightness or color_temp set, not both:
ColorMode.BRIGHTNESS | The light can be dimmed. This mode must be the only supported mode if supported by the light.
What did you expect to happen?
My lights to be available after updating to zigbee2mqtt 2.1.2.
How to reproduce it (minimal and precise)
Update to zigbee2mqtt 2.1.2, with lights that support color or color temps.
Zigbee2MQTT version
2.1.2
Adapter firmware version
20230507
Adapter
zzh!
Setup
Docker containers
Debug log
No response
I think it's caused by #26545.
Sharp analysis. Just upgraded and none of my color bulbs work in Home Assistant.
There used to be instructions how to downgrade to a specific version, I can't find it anymore. Any hints? (It's Saturday, normaly I backup the install directory, today I didn't :) )
Almost a complete contrast, I lost dimming functionality on some Zigbee bulbs/groups, but only in HA (mqtt dimmers are still there)? It's as if my non-colored Zigbee bulbs lost their brightness feature as far as HA is concerned!
*Update - I needed to roll HA Core back to 2025.2.5 to fix the condition. I'm running the Ege Version, so not sure what my path is to avoid this yet.
Thanks for pointing that out. I just replaced a bulb and was going crazy trying to troubleshoot this one. At least my backup binded remotes still works. Then i realized a good part of my lights were affected.
Yep, all my color/color temperature adjustable TrΓ₯dfri lights went unavailable with these log errors with 2.1.2. Rolled back to 2.1.1 and everything works fine again. I'm on HA 2025.2.5 but same same.
@fnordpojk - Are you running the Z2M Edge HA add-on?
Seeing this in HA 2025.2.5 and z2m 2.1.2-1. Too bad there isn't anything on the Exposes tab to just not expose X/Y and color temp, since I don't use them.
Fixed in 2.1.3!