Add meeting automations. Improve and combine AC automations

This commit is contained in:
2020-05-18 22:17:01 +03:00
parent 5c1485a5e2
commit 4af2953a6c
4 changed files with 53 additions and 49 deletions
+20
View File
@@ -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