Showing Unavailable Entities

Hello All,

I am trying to figure out how to show entities that have fallen off of the zigbee network. Code below is not real code, but it is along the lines I am thinking. I only really want to show entities that need some attention.

type: entity-filter
entities:
  - entity: sensor.zmoms01_linkquality
  - entity: sensor.zmoms_back_garden_linkquality
state_filter:
  - operator: =
    value: Unavailable
card:
  type: glance
  title: Missing Sensors

I am sure someone here must have already solved this problem. I think it could also be solved with a not seen in x amount of time but that feels overly complex.

Stuart

FYI

There’s an existing, popular Template Sensor designed to report unavailable entities.

Thanks Taras

Sorry to resurrect this however I was trying to the same thing and found that you can do this using the inbuilt tools in HA (you were however pretty close!), so to save any need to add any new templates, I used the following:

type: entity-filter
entities:
  - light.landing_light
  - light.big_light
  - light.back_light
  - light.hall_light
state_filter:
  - unavailable
card:
  type: glance
  title: Who switched off the lights?

I hope this helps anyone going forward, I certainly find it useful after anyone not used to smart lights and dumb switches has been staying in my house.

2 Likes