Scheduling rework

This commit is contained in:
2023-04-21 04:15:10 -04:00
parent 721f7d44e5
commit e2629aa1f7
3 changed files with 42 additions and 81 deletions

View File

@ -103,90 +103,51 @@ input_text:
################################################ ################################################
automation: automation:
- id: c772b54d-6448-4d74-a0c2-32998f49b17c - id: 82a3bfde-0c51-47cf-be17-aaf4fea47ee6
alias: Kallen Scheduling alias: Scheduler
trigger: trigger:
- platform: time - platform: time
at: '04:01:00' at: '04:00:00'
id: kallen-morning id: morning-scheduling
- platform: time - platform: time
at: '16:00:00' at: '16:00:00'
id: kallen-evening id: evening-scheduling
action: action:
- if: - choose:
- conditions:
- condition: trigger - condition: trigger
id: kallen-morning id: morning-scheduling
then: sequence:
- service: script.kallen_scheduling_morning - service: script.kallen_scheduling_morning
- if: - delay:
- condition: trigger seconds: 1
id: kallen-evening
then:
- service: script.kallen_scheduling_evening
- id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db
alias: House Scheduling
trigger:
- platform: time
at: '04:01:10'
id: house-morning
- platform: time
at: '16:00:10'
id: house-evening
action:
- if:
- condition: trigger
id: house-morning
then:
- service: script.house_scheduling_morning - service: script.house_scheduling_morning
- service: script.security_scheduling - delay:
- if: seconds: 1
- condition: trigger
id: house-evening
then:
- service: script.house_scheduling_evening
- id: 89470712-f94d-4c01-8215-ed15b3bc799a
alias: Master Bedroom Scheduling
trigger:
- platform: time
at: '04:02:00'
id: mrbedroom-morning
- platform: time
at: '16:00:20'
id: mrbedroom-evening
action:
- if:
- condition: trigger
id: mrbedroom-morning
then:
- service: script.master_bedroom_scheduling_morning - service: script.master_bedroom_scheduling_morning
- if: - delay:
- condition: trigger seconds: 1
id: mrbedroom-evening
then:
- service: script.master_bedroom_scheduling_evening
- id: a69d3d36-09d6-4ef3-a245-c564c7cb577c
alias: Emma Bedroom Scheduling
trigger:
- platform: time
at: '04:02:10'
id: emma-morning
- platform: time
at: '16:00:30'
id: emma-evening
action:
- if:
- condition: trigger
id: emma-morning
then:
- service: script.emma_bedroom_scheduling_morning - service: script.emma_bedroom_scheduling_morning
- if: - delay:
seconds: 1
- service: script.security_scheduling
- conditions:
- condition: trigger - condition: trigger
id: emma-evening id: evening-scheduling
then: sequence:
- service: script.kallen_scheduling_evening
- delay:
seconds: 1
- service: script.house_scheduling_evening
- delay:
seconds: 1
- service: script.master_bedroom_scheduling_evening
- delay:
seconds: 1
- service: script.emma_bedroom_scheduling_evening - service: script.emma_bedroom_scheduling_evening
- delay:
seconds: 1
- service: script.security_scheduling
- id: 7350300d-94d3-4ea3-97bb-b0673eafd71f - id: 7350300d-94d3-4ea3-97bb-b0673eafd71f
alias: Scheduling Reset alias: Scheduling Reset

View File

@ -279,7 +279,7 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
at: '04:00:10' at: '03:55:00'
action: action:
- if: - if:
- condition: template - condition: template

View File

@ -23,7 +23,7 @@ automation:
initial_state: true initial_state: true
trigger: trigger:
- platform: time - platform: time
at: '04:00:00' at: '03:55:00'
condition: condition:
- condition: state - condition: state
entity_id: input_boolean.tina_work_schedule_override entity_id: input_boolean.tina_work_schedule_override