Skip to content

Instantly share code, notes, and snippets.

@tpott
tpott / low-battery-level-detection-notification-for-all-battery-sensors-with-time-pattern.yaml Home Assistant Blueprint: Low battery level detection & notification for all battery sensors with Time Pattern
blueprint:
name: Low battery level detection & notification for all battery sensors with Time Pattern Detection
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action. Modified version to allow for Time-Pattern based detection.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').