I use a number of button cards. I have a card for lights inside and lights outside.
When both are active, one card is yellow and the other is blue. Is there a possibility to get the same colors?
in the picture below you see inside and outside lights are turned on. both differentiations colors…
tom_l
July 20, 2020, 8:23pm
2
Is the outside light a switch instead of a light?
If so you have two options.
use the state color option: https://www.home-assistant.io/lovelace/button/#state_color
Or
Turn your switch into a light domain entity with this: https://www.home-assistant.io/integrations/light.switch/ and use that in your button
They are both lighting groups with a number of different types of hue lights in each group.
No switches
You are right, I was talking about the lamps inside and outside, but there is indeed a group of Mancave.
All these groups only consist of Philips Hue lamps.
tom_l
July 21, 2020, 7:17am
6
Is one of the lights in your outside group set to a blue colour?
Hi Tom , no its not… All white lights…
You question triggers me… The lightgroup inside the house contains a Hue Lightstrip (Different colors) thats why the color is different i think…
tom_l
July 21, 2020, 9:41am
8
Well that is very odd. Normally a light group will be the average colour of the lights in the group when on and the icon inactive colour when off.
Can you post your group configs?
tom_l
July 21, 2020, 10:05am
9
Ok, that explains it. If you really want to control the state colour of your buttons the custom button card is the go:
Button card
Lovelace Button card for your entities. -> github
[all]
Features
works with any toggleable entity
3 actions on tap toggle, more_info and service
state display (optional)
custom color for on and off state (optional)
custom state definition with customizable color (optional)
custom size (optional)
custom icon (optional)
custom css style (optional)
automatic color for light (optional)
custom default color for lights (when color cannot be determined) (optional)
2 color types
icon :…
1 Like