Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant demo server: fix demo light templates #10

Open
zehnm opened this issue Feb 27, 2023 · 2 comments
Open

Home Assistant demo server: fix demo light templates #10

zehnm opened this issue Feb 27, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@zehnm
Copy link
Contributor

zehnm commented Feb 27, 2023

After updating Home Assistant to the latest version the light template isn't fully working anymore:

Invalid config for [light.template]: [set_white_value] is an invalid option for [light.template].
Check: light.template->lights->sitting_room_chandellier->set_white_value.
(See /config/configuration.yaml, line 89). Please check the docs at https://www.home-assistant.io/integrations/template
@zehnm
Copy link
Contributor Author

zehnm commented Feb 27, 2023

They removed white_value: https://developers.home-assistant.io/blog/2022/08/18/light_white_value_removed/
and it was announced a while ago in the light entity description 🙈

@zehnm
Copy link
Contributor Author

zehnm commented Mar 18, 2023

I can't figure out how to write a Home Assistant light template which allows setting the white value with the new color_mode: white settings. It's probably obvious, but I'm not alone (and the official HA light template example still uses set_white_value):

Clarification: this is only about writing a demo light template for the included Home Assistant demo configuration in configuration.yaml.
Setting the white value with the API is done with a new command parameter white: {"service": "light.turn_on", "data": {"white":50}} (according to: home-assistant/core#51411)

@zehnm zehnm added the help wanted Extra attention is needed label Mar 18, 2023
zehnm added a commit that referenced this issue Mar 18, 2023
This is a workaround for the removed `set_white_value` action in HA 2022.9
Instead of white value this demo light offers now color temperature.

Relates to #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant