Improve situations where wife worked today but is done now
This commit is contained in:
@ -4,6 +4,9 @@ input_boolean:
|
||||
work_today:
|
||||
name: Work Today
|
||||
icon: mdi:briefcase
|
||||
work_today_extended:
|
||||
name: Work Today Extended
|
||||
icon: mdi:briefcase-plus
|
||||
|
||||
input_datetime:
|
||||
tina_workday_start:
|
||||
@ -29,6 +32,9 @@ automation:
|
||||
entity_id: input_boolean.tina_work_schedule_override
|
||||
state: 'off'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.work_today_extended
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: >
|
||||
@ -69,7 +75,9 @@ script:
|
||||
{{ set_time_from_calendar('calendar.family_tinawork','end_time') }}
|
||||
- service: input_boolean.turn_on
|
||||
target:
|
||||
entity_id: input_boolean.work_today
|
||||
entity_id:
|
||||
- input_boolean.work_today
|
||||
- input_boolean.work_today_extended
|
||||
|
||||
tina_work_reset:
|
||||
alias: 'Tina Work Reset'
|
||||
@ -91,6 +99,9 @@ script:
|
||||
- service: script.tina_work_today
|
||||
else:
|
||||
- service: script.tina_work_reset
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.work_today_extended
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
|
Reference in New Issue
Block a user