You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the card to the latest version available
I cleared the cache of my browser
Describe the bug
I have a horizontal stack with two buttons to control lights (please see below YAML configuration and screenshot). The first light doesn't have a brightness attribute when it is turned off:
The second one has it:
Because of that, the button for the second light is filled in black color when in fact they don't have any difference in their real state -- they are both turned off:
The style for the first button: style="--button-card-light-color:var(--paper-card-background-color); --button-card-light-color-no-temperature:var(--paper-card-background-color);"
The style for the second button: style="--button-card-light-color:rgb(16, 16, 18); --button-card-light-color-no-temperature:rgb(16, 16, 18);"
If I manually update the state for the second light and delete the brightness attribute:
Both buttons start to have the same color:
And the same style: style="--button-card-light-color:var(--paper-card-background-color); --button-card-light-color-no-temperature:var(--paper-card-background-color);"
Checklist
Describe the bug
I have a horizontal stack with two buttons to control lights (please see below YAML configuration and screenshot). The first light doesn't have a brightness attribute when it is turned off:
The second one has it:
Because of that, the button for the second light is filled in black color when in fact they don't have any difference in their real state -- they are both turned off:
The style for the first button:
style="--button-card-light-color:var(--paper-card-background-color); --button-card-light-color-no-temperature:var(--paper-card-background-color);"
The style for the second button:
style="--button-card-light-color:rgb(16, 16, 18); --button-card-light-color-no-temperature:rgb(16, 16, 18);"
If I manually update the state for the second light and delete the brightness attribute:
Both buttons start to have the same color:
And the same style:
style="--button-card-light-color:var(--paper-card-background-color); --button-card-light-color-no-temperature:var(--paper-card-background-color);"
Version of the card
Version: 3.3.6
To Reproduce
This is the configuration I used:
Expected behavior
Ignore the brightness of the turned-off light when computing the color for the button.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: