WTH don't automations with missing entities have an easy to see indicator?

The automations list should have something, like a yellow ! symbol if an automation has a missing entity/device. Sometimes we all replace something for something better and maybe miss using the same entity name or the type changes. Scrolling though a huge list of automations and having a quick indicator for a missing item would be nice.

You could use Watchman and a card. I have a status dashboard with these things.
The possible issues section of this shows Watchman output:

Uses this code:

  - type: custom:auto-entities
    card:
      type: grid
      columns: 2
      square: false
    card_param: cards
    filter:
      template: >-
        {%- for item in
        state_attr("sensor.watchman_missing_entities","entities") -%}
          {{
            {
              'type': "custom:mushroom-template-card",
              'entity': item.id,
              'primary': item.id,
              'secondary': item.occurrences,
              'icon_color': "red" if item.state == "missing" else
        "orange" if item.state == "unavail" else "yellow",
              'icon': "mdi:cloud-alert" if item.state == "missing"
        else "mdi:cloud-off-outline" if item.state == "unavail" else
        "mdi:cloud-question"
              }
            }},
        {%- endfor -%}

Or if you use spook it will generate repair issues for missing entities in automations.

Hopefully this is one feature that will be moved from spook to the core eventually. Spook is used by Frenk to test out new features like this.

2 Likes

Thanks for noting those tips, but I think that also illustrates this should be a part of the core HA. We already have Red warnings in the entities list for unavailable ones. This seems like a natural extension for warnings about automations in the same way.