Skip to content

Instantly share code, notes, and snippets.

View anklav24's full-sized avatar
💭
Learning Python

Aleksandr Lobanov anklav24

💭
Learning Python
View GitHub Profile
@anklav24
anklav24 / offline-notification-for-sensors-with-last_seen.yaml
Created February 16, 2024 23:52 — forked from Mr-Groch/offline-notification-for-sensors-with-last_seen.yaml
Home Assistant Blueprint: 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