自动化太多了,难免有疏忽。导致凌晨tts的闹鬼情况。写了个自动化定时关闭全部自动化。同时指定需要打开的自动化
#定时关闭全部自动化
- alias: Close All automation
initial_state: true
trigger:
platform: time
at: '23:08:00'
action:
- service: automation.turn_off
data_template:
entity_id: group.all_automations
- service: automation.turn_on
data_template:
entity_id: automation.open_all_automation
#定时打开全部自动化
- alias: Open All automation
initial_state: true
trigger:
platform: time
at: '07:58:00'
action:
- service: automation.turn_on
data_template:
entity_id: group.all_automations
|