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

Invert color_stops value > color to color > value #44

Open
acateon opened this issue Dec 15, 2021 · 0 comments · May be fixed by #78
Open

Invert color_stops value > color to color > value #44

acateon opened this issue Dec 15, 2021 · 0 comments · May be fixed by #78

Comments

@acateon
Copy link

acateon commented Dec 15, 2021

To make color_stops to work with config template card variables the variable needs to be the value in the yaml list.

This does not work:

  color_stops:
    "${states['sensor.electricity_price'].attributes.min_price}": 'green'
    "${states['sensor.electricity_price'].attributes.min_price}": 'blue'

Should be:

  color_stops:
    'green': "${states['sensor.electricity_price'].attributes.min_price}"
    'blue': "${states['sensor.electricity_price'].attributes.min_price}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants