Skip to content

Instantly share code, notes, and snippets.

@petersem
Created March 17, 2023 00:33
Show Gist options
  • Save petersem/d1dec3d02f18ddba2dbc65677022c376 to your computer and use it in GitHub Desktop.
Save petersem/d1dec3d02f18ddba2dbc65677022c376 to your computer and use it in GitHub Desktop.
Dashboard yaml & notification automation
# Dashboard
- type: vertical-stack
cards:
- type: custom:auto-entities
theme: ios-dark-mode
card:
type: custom:battery-state-card
title: Battery Levels
color_gradient:
- '#ff0000'
- '#ffff00'
- '#00ff00'
filter:
include:
- entity_id: sensor.*_battery
- entity_id: sensor.*_battery_level
exclude: []
sort:
method: state
reverse: false
numeric: true
#Automation - send to telegram
alias: Notify Check batteries < 20%
description: ""
use_blueprint:
path: Sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
input:
time: "19:00:00"
actions:
- service: telegram_bot.send_message
data:
title: Warning
message: Low batteries for {{sensors}}
threshold: 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment