mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-15 12:34:42 +00:00
Add meeting automations. Improve and combine AC automations
This commit is contained in:
@@ -130,3 +130,23 @@ automation:
|
||||
data_template:
|
||||
message_id: "{{ trigger.event.data.message.message_id}}"
|
||||
chat_id: "{{ trigger.event.data.chat_id }}"
|
||||
|
||||
- alias: Speech · Disable when meeting starts
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.in_a_meeting
|
||||
from: "off"
|
||||
to: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
- alias: Speech · Enable when meeting is over
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.in_a_meeting
|
||||
from: "on"
|
||||
to: "off"
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.speech_notifications
|
||||
|
||||
Reference in New Issue
Block a user