One trigger for all entities

Hi,

I’d like to send a notification to telegram whenever an entity goes unavailable. But i don’t know how tell this to hassio.

I write this automation:

alias: Notify unavailable entities
description: ''
trigger:
  - platform: state
    entity_id: group.all_devices
    to: Unavailable
condition: []
action:
  - service: notify.telegram
    data:
      message: '{{trigger.to_state.attributes.friendly_name}} non è più disponibile'
mode: parallel
max: 10

But group.all_devices doesn’t work

1 Like