Skip to content

Instantly share code, notes, and snippets.

View emanuelpsilva's full-sized avatar

emanuelpsilva

View GitHub Profile
@emanuelpsilva
emanuelpsilva / gist:97c4d2283c6b78ea59794bd7f7bfa827
Created August 11, 2023 15:31
No interaction detection with battery powered devices & notification
# Original reference: https://gist.github.com/sbyx/1f6f434f0903b872b84c4302637d0890
blueprint:
name: No interaction detection with battery powered devices & notification
description: Battery powered devices are prone to go from 50% battery to no communications without warning (i.e. deffective batteries) This blueprint find devices in your HASS installation were the last interaction is older than a defined threshold
domain: automation
input:
threshold:
name: Time since the last interaction
description: Amount of time since the last interaction with the device (in seconds)