How to alert me when devices have not report state within 2 days?

i found a Blueprint for reporting battery status, to remind me when to replace battery at 30%. sadly this works only for some devices. some of my zigbee just die without any warning.
my idea is to have an automation to alert me when a device not reporting within 2 days. how would i write an automation for around 30 devices, that usually report their states at least twice a day, to alert me when any one of them dont report within 2 days. the Telegram would list which devices too.
i thought there would be a Blueprint but could not find.
thanks

See my answer here:

…but if your devices are that unstable it might be worth trying to find out why.

it only stops when no battery life is life. but monitoring battery life % is not accurate for some device. so i think monitoring a device’s state change is much much more accurate

I use an automation to send me an alert when a device state becomes unavailable for over 5 minutes:

alias: Alarm offline
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.basement_door
      - binary_sensor.basement_window_1
      - binary_sensor.basement_window_2x
      - binary_sensor.cabana_door
      - binary_sensor.cabana_glass_break
      - binary_sensor.dining_room_door
      - binary_sensor.front_door
      - binary_sensor.front_door_glass_break
      - binary_sensor.game_room_glass_break
      - binary_sensor.garage_door
      - binary_sensor.kitchen_door
      - binary_sensor.living_room_deck_door
      - binary_sensor.living_room_glass_break
      - binary_sensor.living_room_rear_door
      - binary_sensor.mud_room_door
      - binary_sensor.2nd_floor_co
      - binary_sensor.basement_co
      - binary_sensor.first_floor_co
      - binary_sensor.attic_drip_pans
      - binary_sensor.sump_pump_wb2005
      - binary_sensor.mechanical_room_1_drip_pan
      - binary_sensor.mechanical_room_2_drip_pan
      - binary_sensor.boiler_room_drip_pan
      - binary_sensor.laundry_low_temperature
      - binary_sensor.basement_fire
      - binary_sensor.1st_floor_fire
      - binary_sensor.2nd_floor_fire
      - binary_sensor.kitchen_heat
      - binary_sensor.attic_heat
      - binary_sensor.laundry_heat
      - binary_sensor.garage_heat
      - binary_sensor.mechanical_room_2_heat
      - binary_sensor.mechanical_room_1_heat
      - binary_sensor.wine_cellar_open
      - binary_sensor.flo_sensor
      - switch.flo_shutoff_valve
      - binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
      - binary_sensor.philips_sml002_occupancy
      - cover.ratgdov25i_11e222_door
      - cover.ratgdov25i_11e237_door
      - binary_sensor.sump1_moisture
      - binary_sensor.sump2_moisture
      - binary_sensor.sump3b_moistureA
      - binary_sensor.motion_safe_motion
    for:
      minutes: 5
    to: unavailable
action:
  - service: notify.mobile_app_iphone_15_bmc
    data:
      title: Device offline!
      message: >
        📵 {{ state_attr(trigger.to_state.entity_id, 'friendly_name') }} is
        offline more than 5 minutes!
      data:
        channel: Notfall
        priority: high
        ttl: 0
        color: red
mode: parallel

thank you for sharing your code!

any idea what this symbol is?
image

when i paste your code into Notepad++, i get nonsense
image

That’s just a simple emoji. :smiley: You can take that right out or put in a substitute one instead.

Maybe have a look at this. It‘s my solution to find unresponsive devices.

https://community.home-assistant.io/t/detecting-unresponsive-devices/658030

1 Like