Tweak my med report to clean it up a bit in text form

This commit is contained in:
2023-05-26 13:36:47 -04:00
parent b138924089
commit d280ff6e74

View File

@@ -44,6 +44,7 @@
{% macro tony_morning_meds(method) %} {% macro tony_morning_meds(method) %}
{% from 'time.jinja' import input_datetime_12hr, input_datetime_12hr_with_date, ct %} {% from 'time.jinja' import input_datetime_12hr, input_datetime_12hr_with_date, ct %}
{% set ct = ct() | int %} {% set ct = ct() | int %}
{% if is_state('binary_sensor.overnight','off') %}
{% if is_state('input_boolean.tony_morning_meds_taken','on') %} {% 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. 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 %} {% elif is_state('input_boolean.tony_morning_meds_taken','off') and ct >= 21600 %}
@@ -60,6 +61,7 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %}
{% endmacro %} {% endmacro %}
{% macro tony_night_meds(method) %} {% macro tony_night_meds(method) %}