Don't ignore wakeup disarm even on no school/no work days
This commit is contained in:
@ -117,8 +117,10 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.morning_alarm_disarm
|
at: input_datetime.morning_alarm_disarm
|
||||||
|
id: morning
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.master_bedroom_wakeup
|
at: input_datetime.master_bedroom_wakeup
|
||||||
|
id: wakeup
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.adults
|
entity_id: group.adults
|
||||||
@ -129,6 +131,12 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: morning
|
||||||
|
sequence:
|
||||||
- condition: or
|
- condition: or
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -137,7 +145,11 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_school_today
|
entity_id: input_boolean.kallen_school_today
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
- service: script.security_disarm
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: wakeup
|
||||||
|
sequence:
|
||||||
- service: script.security_disarm
|
- service: script.security_disarm
|
||||||
|
|
||||||
- id: f51eb02f-3f44-4b5d-a389-762b8ca88e2a
|
- id: f51eb02f-3f44-4b5d-a389-762b8ca88e2a
|
||||||
|
Reference in New Issue
Block a user