Some workarounds for current sensor logic

This commit is contained in:
2022-04-21 14:11:38 -04:00
parent 73a7940113
commit 3b34204c4b

View File

@ -63,16 +63,8 @@ automation:
- service: input_boolean.turn_off - service: input_boolean.turn_off
entity_id: input_boolean.audible_notifications entity_id: input_boolean.audible_notifications
- id: b8d21d04-c263-4d33-9590-9fb1e76b0de8
alias: Kallen Nightly Report
trigger:
platform: time
at: input_datetime.kallen_nightly_briefing
action:
- service: script.kallen_nightly_briefing
- id: c772b54d-6448-4d74-a0c2-32998f49b17c - id: c772b54d-6448-4d74-a0c2-32998f49b17c
alias: Kallen Scheduling alias: Kallen Scheduling - Morning
trigger: trigger:
platform: time platform: time
at: '06:05:00' at: '06:05:00'
@ -86,6 +78,22 @@ automation:
{% else %} {% else %}
08:00 08:00
{% endif %} {% endif %}
- service: input_datetime.set_datetime
entity_id: input_datetime.kallen_morning_briefing
data_template:
time: >
{% if is_state('input_boolean.school_today', 'on') %}
07:40
{% else %}
10:00
{% endif %}
- id: 0335656c-b5cf-4983-bbac-a2d71ca2b74e
alias: Kallen Scheduling - Evening
trigger:
platform: time
at: '16:00:00'
action:
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
entity_id: input_datetime.kallen_bedtime entity_id: input_datetime.kallen_bedtime
data_template: data_template:
@ -104,18 +112,9 @@ automation:
{% else %} {% else %}
21:40 21:40
{% endif %} {% endif %}
- service: input_datetime.set_datetime
entity_id: input_datetime.kallen_morning_briefing
data_template:
time: >
{% if is_state('input_boolean.school_today', 'on') %}
07:40
{% else %}
10:00
{% endif %}
- id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db - id: 1c9f7e4b-2d5a-4b95-bd80-d9aa2244a6db
alias: House Scheduling alias: House Scheduling - Morning
trigger: trigger:
platform: time platform: time
at: '06:10:00' at: '06:10:00'
@ -129,6 +128,13 @@ automation:
{% else %} {% else %}
09:00 09:00
{% endif %} {% endif %}
- id: 55293e9a-ec3b-46bb-af47-94e95f3c9951
alias: House Scheduling - Evening
trigger:
platform: time
at: '16:05:00'
action:
- service: input_datetime.set_datetime - service: input_datetime.set_datetime
entity_id: input_datetime.audible_notification_off entity_id: input_datetime.audible_notification_off
data_template: data_template:
@ -147,6 +153,14 @@ automation:
action: action:
- service: script.kallen_morning_briefing - service: script.kallen_morning_briefing
- id: b8d21d04-c263-4d33-9590-9fb1e76b0de8
alias: Kallen Nightly Briefing
trigger:
platform: time
at: input_datetime.kallen_nightly_briefing
action:
- service: script.kallen_nightly_briefing
script: script:
reset_annc_switches: reset_annc_switches:
sequence: sequence: