add notification group

This commit is contained in:
Georgi Gardev
2023-11-07 10:40:13 +02:00
parent 95a0cc3259
commit f88b4bcc4a
+7 -2
View File
@@ -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