frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Undefined color temperature in light.turn_on service

Open Papi77 opened this issue 3 years ago • 4 comments

The problem

In the light.turn_on service properties the “color temperature” shows *undefined: PNG image

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)

Papi77 avatar Apr 22 '22 06:04 Papi77

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!

Papi77 avatar May 03 '22 04:05 Papi77

Transferred this issue to the frontend, as it doesn't seem an Core issue.

frenck avatar May 03 '22 08:05 frenck

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.

github-actions[bot] avatar Aug 01 '22 09:08 github-actions[bot]

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.

github-actions[bot] avatar Oct 30 '22 11:10 github-actions[bot]