Initial version of Notification module

This commit is contained in:
2020-04-20 16:34:56 +03:00
parent c13e91b1d6
commit 11f93fd9ef
5 changed files with 76 additions and 8 deletions
+21
View File
@@ -0,0 +1,21 @@
automation:
- alias: Notification · Phone battery low
trigger:
platform: template
value_template: "{{ states('sensor.carbon_battery_level') | int < 10 }}"
condition:
condition: state
entity_id: sensor.carbon_battery_state
state: "Not Charging"
action:
service: script.say
data_template:
title: "❕*Notification Module*"
message: >-
{{
[
"Hey, just wanted to let you know your phone needs charging!",
"Hey, your phone is running low on battery, put it on the charger!"
] | random
}}