Hi there,
I created a group of light of my home into settings → helpers of home assistant including all domotic lights of my home.
Than I created a button card which counts the number of lights in on-state:
type: custom:button-card
entity: sensor.luci_accese
name: LUCI ACCESE
layout: icon_name_state2nd
show_state: true
styles:
card:
- padding-top: 2%
- padding-bottom: 2%
- height: 80px
- width: 300px
state:
- font-size: 140%
- font-weight: bold
- justify-self: start
- align-self: center
name:
- font-size: 85%
- justify-self: start
- color: var(--secondary-text-color)
state:
- value: 0
operator: '>'
styles:
icon:
- color: var(--paper-item-icon-active-color)
tap_action:
action: none
But the state value operator (bottom of the script) doesn’t work.
Indeed the color icon is blue:
Previously I created a simple button card with only one light as a test, and when I turn it on it colors of yellow like this:
that is the default color of light entities.
So I’d like the icon group also assumes the same color.
I thought that the group inheritances the single light properties, but I obviously did something wrong.