Badges
Badges are widgets that sit at the top of a panel, above all the cards.
State Label Badge
The State Label badge allows you to display a state badge. This badge supports actions.
type: state-label
entity: light.living_room
Configuration Variables
Overwrites icon or entity picture. You can use any icon from Material Design Icons. Prefix the icon name with mdi:
, ie mdi:home
.
Entity Filter Badge
This badge allows you to define a list of entities that you want to track only when in a certain state. Very useful for showing lights that you forgot to turn off or show a list of people only when they’re at home.
Options For Entities
If you define entities as objects instead of strings (by adding entity:
before entity ID), you can add more customization and configurations:
Configuration Variables
Overwrites icon or entity picture. You can use any icon from Material Design Icons. Prefix the icon name with mdi:
, ie mdi:home
.
Options For state_filter
If you define state_filter as objects instead of strings (by adding value:
before your state value), you can add more customization to your filter:
Examples
Show only active switches or lights in the house
type: entity-filter
entities:
- entity: light.bed_light
name: Bed
- light.kitchen_lights
- light.ceiling_lights
state_filter:
- "on"
Specify filter for a single entity
type: entity-filter
state_filter:
- "on"
- operator: ">"
value: 90
entities:
- sensor.water_leak
- sensor.outside_temp
- entity: sensor.humidity_and_temp
state_filter:
- operator: ">"
value: 50
attribute: humidity