Initial automations involving security system

This commit is contained in:
2022-06-04 04:33:48 -04:00
parent ad40692148
commit 3690d8f431
4 changed files with 146 additions and 72 deletions

View File

@ -96,7 +96,7 @@ automation:
alias: House Scheduling
trigger:
- platform: time
at: '06:10:00'
at: '06:00:00'
id: house-morning
- platform: time
at: '16:05:00'
@ -135,6 +135,15 @@ automation:
{% else %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% endif %}
- service: input_datetime.set_datetime
entity_id: input_datetime.morning_alarm_disarm
data_template:
time: >
{% if is_state('input_boolean.work_today','on') and is_state('input_boolean.school_today','off') %}
{{ (state_attr('input_datetime.tina_workday_end', 'timestamp') + 3600) | timestamp_custom('%H:%M', false) }}
{% else %}
08:00
{% endif %}
- if:
- condition: trigger
id: house-evening