zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Invalid supported_color_modes for lights

Open LouisMT opened this issue 1 year ago β€’ 10 comments

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

LouisMT avatar Mar 01 '25 21:03 LouisMT

I think it's caused by #26545.

LouisMT avatar Mar 01 '25 21:03 LouisMT

I think it's caused by #26545.

It is. And you are correct, those modes are exclusive

hmmbob avatar Mar 01 '25 21:03 hmmbob

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 :) )

BaldKingy avatar Mar 01 '25 22:03 BaldKingy

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.

MerekW avatar Mar 01 '25 23:03 MerekW

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.

Chartreusito avatar Mar 01 '25 23:03 Chartreusito

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 avatar Mar 02 '25 01:03 fnordpojk

@fnordpojk - Are you running the Z2M Edge HA add-on?

MerekW avatar Mar 02 '25 01:03 MerekW

@fnordpojk - Are you running the Z2M Edge HA add-on?

No, just the normal one.

fnordpojk avatar Mar 02 '25 02:03 fnordpojk

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.

lordbah avatar Mar 02 '25 03:03 lordbah

Fixed in 2.1.3!

Koenkk avatar Mar 02 '25 08:03 Koenkk