Skip to content

Instantly share code, notes, and snippets.

View awolkers's full-sized avatar

A. Wolkers awolkers

View GitHub Profile
@awolkers
awolkers / companion_app_low_battery_notification.yaml
Last active October 9, 2023 13:30
Home Assistant Blueprint: Mobile device battery level notifications
blueprint:
name: Mobile device battery level notifications
description: "Sends notifications to a mobile device when the battery level is considered low or full based on a given threshold. Notification are automatically dismissed when you (un)plug the charging cable. Bare in mind that only devices that run the official [Home Assistant app](https://companion.home-assistant.io/) will work with this blueprint.\n\nYou'll need to [enable](https://companion.home-assistant.io/docs/core/sensors) the following battery sensors within the companion app:\n- Battery is charging (`is_charging`)\n- Battery level (`battery_level`) \n\nVersion 1.0\n"
source_url: https://gist.github.com/awolkers/fe519d12f3b19a06b362c083c1764341
domain: automation
input:
notify_device:
name: Device to notify
description: Device needs to run the official Home Assistant app to receive notifications