There was an issue with the color lamps, specifically the NOUS/Philips Hue models. When I switched to the color mode in Homey, it automatically changed to the temperature mode. In Z2M, there are read-only settings where I've added a mapping:
color_mode: (val) => ['light_mode', val === 'xy' || val === 'hs' ? 'color' : 'temperature'],
I'm not entirely certain this handles every scenario, but I've aimed to maintain logic for lamps that don't support this settings + switched to 'hs' payload if lamp support it.
There was an issue with the color lamps, specifically the NOUS/Philips Hue models. When I switched to the color mode in Homey, it automatically changed to the temperature mode. In Z2M, there are read-only settings where I've added a mapping:
I'm not entirely certain this handles every scenario, but I've aimed to maintain logic for lamps that don't support this settings + switched to 'hs' payload if lamp support it.