Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:mushroom-chips-card
- chips:
- - type: template
- entity: group.light
- icon: >-
- {{ 'mdi:lightbulb-on-90' if is_state(entity, 'on') else
- 'mdi:lightbulb-off-outline' }}
- icon_color: '{{ ''orange'' if is_state(entity, ''on'') else ''grey'' }}'
- card_mod:
- style:
- .: |
- ha-card:after {
- content: "{{ expand(states.group.light) | selectattr( 'state', 'eq', 'on') | list | count }}";
- position: absolute;
- display: flex;
- justify-content: center;
- align-items: center;
- background: rgb(var(--rgb-orange));
- color: var(--card-background-color);
- font-weight: bolder;
- border-radius: 50%;
- top: -10px;
- right: -0px;
- width: 16px;
- height: 16px;
- font-size: 11px;
- }
- ha-card {
- --chip-background: rgba(var(--rgb-green), 0.2); /*Background color of chip */
- box-shadow: 0px 0px 8px 4px rgba(var(--rgb-state-person-home), 0.6) !important;
- /* border: solid 2px !important; */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement