mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
add notification group
This commit is contained in:
@@ -4,15 +4,20 @@ notify:
|
|||||||
platform: telegram
|
platform: telegram
|
||||||
api_key: !secret telegram_token
|
api_key: !secret telegram_token
|
||||||
chat_id: !secret telegram_georgi_chat_id
|
chat_id: !secret telegram_georgi_chat_id
|
||||||
|
- name: all_phones
|
||||||
|
platform: group
|
||||||
|
services:
|
||||||
|
- service: mobile_app_titanium
|
||||||
|
- service: mobile_app_mayas_iphone
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Notification · Phone battery low
|
- alias: Notification · Phone battery low
|
||||||
trigger:
|
trigger:
|
||||||
platform: template
|
platform: template
|
||||||
value_template: "{{ states('sensor.carbon_battery_level') | int < 10 }}"
|
value_template: "{{ states('sensor.titanium_battery_level') | int < 10 }}"
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
entity_id: sensor.carbon_battery_state
|
entity_id: sensor.titanium_battery_state
|
||||||
state: "Not Charging"
|
state: "Not Charging"
|
||||||
action:
|
action:
|
||||||
- service: script.say
|
- service: script.say
|
||||||
|
|||||||
Reference in New Issue
Block a user