Badges are widgets that sit at the top of a Lovelace panel, above all the cards.
The State Label badge allows you to display a state badge. This badge supports actions.
type: state-label entity: light.living_room
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.
If you define entities as objects instead of strings (by adding
entity: before entity ID), you can add more customization and configurations:
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:
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