Home Assistant Entity Status

Markdown card to display any entities that are unavailable/unknown. Add entities to a group called 'noise_ignore' to exclude from the list.
mail@pastecode.io avatar
unknown
yaml
a month ago
592 B
7
Indexable
Never
type: markdown
content: >-
  {% set noise_ign = expand('group.noise_ignore') 

  | map(attribute='entity_id') | list + ['group.noise_ignore'] %}

  {% for e in
  states|selectattr('domain','in',['binary_sensor','light','sensor','switch'])|selectattr('state','in',
  ['unknown', 'unavailable']) | rejectattr('entity_id','in', noise_ign) |
  map(attribute='name')|list %}

  {% if e | length != 0 %}

  Entities Requiring Attention:


  <ha-alert alert-type="warning">{{ e }}</ha-alert>

  {% else %}

  <ha-alert alert-type=success>All entities online</ha-alert>

  {% endif %}

  {% endfor %}
Leave a Comment