Osram LED Strip changes color temperature without a (proper) reason.
Greetings all,
I don't know, whether this is a problem in z2m or simply in my head, but it looks weird to me.
In an Automation, I would like to switch on the Osram LED Strip and it should be a warm bright white. What happens is that the light turns on as planned but switches directly to a darker and cooler white. I wonder, where the second call is coming from.
The code is like (and this is called only once - I guess):
service: homeassistant.turn_on
entity_id: light.osram_light_strip_light
data:
brightness: 254
xy_color:
- 0.425311978171859
- 0.399745377726
In the log I can see:
Zigbee2MQTT:debug 2020-12-17 18:30:18: Received MQTT message on 'zigbee2mqtt/Osram Light Strip/set' with data '{"state": "ON", "color": {"x": 0.427, "y": 0.399}, "brightness": 253}'
Zigbee2MQTT:debug 2020-12-17 18:30:18: Publishing 'set' 'brightness' to 'Osram Light Strip'
Zigbee2MQTT:info 2020-12-17 18:30:19: MQTT publish: topic 'zigbee2mqtt/Osram Light Strip', payload '{"brightness":253,"color":{"x":0.481,"y":0.414},"color_temp":320,"linkquality":5,"state":"ON","update":{"state":"idle"},"update_available":false}'
Zigbee2MQTT:debug 2020-12-17 18:30:19: Publishing 'set' 'color' to 'Osram Light Strip'
Zigbee2MQTT:info 2020-12-17 18:30:20: MQTT publish: topic 'zigbee2mqtt/Osram Light Strip', payload '{"brightness":253,"color":{"x":0.427,"y":0.399},"color_temp":259,"linkquality":5,"state":"ON","update":{"state":"idle"},"update_available":false}'
Zigbee2MQTT:debug 2020-12-17 18:30:24: Saving state to file /share/zigbee2mqtt/state.json
So first the color temperature is fine and then it is somehow changed. I can change the color manually using the lovelace card - and it stays like that.
Zigbee2MQTT:debug 2020-12-17 18:32:14: Received MQTT message on 'zigbee2mqtt/Osram Light Strip/set' with data '{"state": "ON", "color_temp": 331}'
Zigbee2MQTT:debug 2020-12-17 18:32:14: Skipping state because of Home Assistant
Zigbee2MQTT:debug 2020-12-17 18:32:14: Publishing 'set' 'color_temp' to 'Osram Light Strip'
Zigbee2MQTT:info 2020-12-17 18:32:14: MQTT publish: topic 'zigbee2mqtt/Osram Light Strip', payload '{"brightness":253,"color":{"x":0.435513484728235,"y":0.403582310178768},"color_temp":331,"linkquality":5,"state":"ON","update":{"state":"idle"},"update_available":false}'
But instead of using the UI, I would like to trigger this using the automation. So I'm asking myself, why is there a second message in the log, saying that the color temperature should be changed and is this a bug or how can I directly set the temperature in the automation code.
It would be nice if someone could come up with an explanation.
Thanks in advance, Fridolin
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days