Skip to content

Instantly share code, notes, and snippets.

@gdgeist
gdgeist / offline-notification-for-sensors-with-last_seen.yaml
Last active April 14, 2023 19:57 — forked from Mr-Groch/offline-notification-for-sensors-with-last_seen.yaml
Home Assistant Blueprint: Forked Offline detection for Z2M devices with last_seen
blueprint:
name: Offline detection for Z2M devices with last_seen
description: Regularly test all sensors with 'last_seen' in name and 'timestamp' device_class
('last seen' Z2M sensors) to detect offline and if so execute an action.
domain: automation
input:
hours:
name: Hours not seen
description: Sensors not seen this amount of time are assumed to be offline.
default: 24