No description
Find a file
Christian b5ac6e92ce Cleanup
2026-07-12 20:54:08 +02:00
.gitignore Cleanup 2026-07-12 20:54:08 +02:00
LICENSE Initial commit: Low Battery & Unavailable Check blueprint 2026-07-10 14:59:13 +00:00
low-battery-and-unavailable-check.yaml Initial commit: Low Battery & Unavailable Check blueprint 2026-07-10 14:59:13 +00:00
README.md Initial commit: Low Battery & Unavailable Check blueprint 2026-07-10 14:59:13 +00:00

🔋 Home Assistant Low Battery & Device Unavailable Check

A Home Assistant Blueprint that periodically checks a defined set of entities for:

  • Low battery numeric battery sensors below a configurable threshold
  • Binary battery sensors in state on (= low)
  • Unavailable devices (sensors, binary sensors, switches)

Sends a notification (or runs any action) listing all affected devices by name.


Features

  • Runs on a configurable time and optional weekday
  • Include list (Pflichtfeld): only the selected entities are checked — no accidental alerts from unrelated devices
  • Supports sensor, binary_sensor, and switch domains
  • Fully customizable action (notification, persistent alert, TTS, etc.)
  • Uses {{sensors}} variable in your action to list affected device names

📥 Installation

Option A Import via URL

Click the button below or copy the raw URL into
Settings → Automations & Scenes → Blueprints → Import Blueprint:

https://raw.githubusercontent.com/YOUR_USERNAME/ha-battery-blueprint/main/low-battery-and-unavailable-check.yaml

Option B Manual

  1. Copy low-battery-and-unavailable-check.yaml into:
    config/blueprints/automation/YOUR_FOLDER/low-battery-and-unavailable-check.yaml
    
  2. Reload automations in Home Assistant.

⚙️ Inputs

Input Description Default
Battery warning level Threshold in % below which a sensor is considered low 20 %
Time to test on Time of day the check runs 10:00:00
Weekday to test on 0 = every day, 1 = Monday … 7 = Sunday 0
Included Sensors (required) Only these entities are checked. Devices must be expanded to individual entities!
Actions What to do when issues are found use {{sensors}} for the list of affected devices

📋 Example Action (Mobile Notification)

service: notify.mobile_app_your_phone
data:
  title: "🔋 Battery Warning"
  message: "Low battery or unavailable: {{ sensors }}"

🙏 Credits

Based on the original blueprint by sbyx.
Extended with include-only filtering and unavailability checks for switches.


📄 License

MIT