Fix scheduling for wife's morning meds reminder

#205
This commit is contained in:
2024-08-04 15:03:23 -04:00
parent 5fe5fc6916
commit 1f0b446184

View File

@ -587,8 +587,9 @@ script:
entity_id: input_datetime.tina_morning_meds_notify
data:
time: >
{% from 'time.jinja' import datetime_from_calendar %}
{% if is_state('input_boolean.work_today','on') %}
{{ (state_attr('input_datetime.tina_workday_start','timestamp') | int - 1800) | timestamp_custom('%H:%M', false) }}
{{ datetime_from_calendar('calendar.family_tinawork','start_time','set','subtract',0,0,30) }}
{% else %}
{{ states('input_datetime.master_bedroom_wakeup') }}
{% endif %}