frontend
frontend copied to clipboard
Undefined color temperature in light.turn_on service
The problem
In the light.turn_on service properties the “color temperature” shows *undefined:

Also, some errors are showing in the log, e.g.:
2022-04-21 19:59:22 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received 2022-04-21 19:59:25 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'int' got invalid input 'None' when rendering template '{{ [state_attr(light,"color_temp")|int - 50, 1]|max }}' but no default was specified. Currently 'int' will return '0', however this template will fail to render in Home Assistant core 2022.1 2022-04-21 19:59:25 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
What version of Home Assistant Core has the issue?
2022.4.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Light service
Link to integration documentation on our website
No response
Diagnostics information
2022-04-21 19:59:22 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received 2022-04-21 19:59:25 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'int' got invalid input 'None' when rendering template '{{ [state_attr(light,"color_temp")|int - 50, 1]|max }}' but no default was specified. Currently 'int' will return '0', however this template will fail to render in Home Assistant core 2022.1 2022-04-21 19:59:25 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode received
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
The “color temperature” section looks different for the light.turn_off service (no graphical bar shown)
Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
mqtt documentation mqtt source (message by IssueLinks)
Hi, any chance looking at this? Much appreciated!
Transferred this issue to the frontend, as it doesn't seem an Core issue.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.