Improve current_time macro

This commit is contained in:
2023-11-06 12:51:54 -05:00
parent b863d7f004
commit 4b21639690
5 changed files with 35 additions and 32 deletions

View File

@ -146,8 +146,8 @@ automation:
entity_id: input_datetime.tina_morning_meds_taken
data:
datetime: >
{% from 'time.jinja' import set_datetime %}
{{ set_datetime(0) }}
{% from 'time.jinja' import current_time %}
{{ current_time('datetime',24) }}
- conditions:
- condition: and
conditions:
@ -172,8 +172,8 @@ automation:
entity_id: input_datetime.tina_night_meds_taken
data:
datetime: >
{% from 'time.jinja' import set_datetime %}
{{ set_datetime(0) }}
{% from 'time.jinja' import current_time %}
{{ current_time('datetime',24) }}
script:
tina_work_today: