Tweak my med report to clean it up a bit in text form
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
{% macro tony_morning_meds(method) %}
|
||||
{% from 'time.jinja' import input_datetime_12hr, input_datetime_12hr_with_date, ct %}
|
||||
{% set ct = ct() | int %}
|
||||
{% if is_state('binary_sensor.overnight','off') %}
|
||||
{% if is_state('input_boolean.tony_morning_meds_taken','on') %}
|
||||
Tony took his morning meds at {{ input_datetime_12hr_with_date('input_datetime.tony_morning_meds_taken') }} today.
|
||||
{% elif is_state('input_boolean.tony_morning_meds_taken','off') and ct >= 21600 %}
|
||||
@@ -60,6 +61,7 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro tony_night_meds(method) %}
|
||||
|
||||
Reference in New Issue
Block a user