Create Status Change Alert for z-wave devices

I would like to build an alert automation that identifies if ANY of my 45 z-wave devices status changes to dead or unavailable. I am having trouble finding a way to use wildcards or globs to define the trigger without having to enter every z-wave device.

Thank you.

There’s a post in the community site about ‘pinging dead ZWave nodes’. Somewhere in that post (near the end) is a template sensor for dead nodes.

here is a sensor that will tell you how many dead nodes there are and the node names themselves will be in the attributes.

  - platform: template
        friendly_name: "ZwaveJS Failed Nodes"
        value_template: >
          {% set dead_count = states | selectattr("entity_id", "search", "node_status") |
             selectattr('state', 'in', 'dead, unavailable, unknown') |
             map(attribute='entity_id') | list | count %}
          {% set total = states | selectattr("entity_id", "search", "node_status") |
            map(attribute='entity_id') | list | count %}
          {{ dead_count }}/{{ total }}
          dead nodes: >
            {% set dead_list = states | selectattr("entity_id", "search", "node_status") |
               selectattr('state', 'in', 'dead, unavailable, unknown') |
               map(attribute='name') | list %}
            {{ dead_list }}

you need to be sure the node status entity is enabled for all the nodes since that entity is disabled by default.