From 8ee48027426bbecc0fbddf843596ea173b9c561d Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sat, 3 Jun 2023 13:22:48 -0400 Subject: [PATCH] Try to make my status report not be completely blank at any time --- custom_templates/status.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_templates/status.jinja b/custom_templates/status.jinja index 20d27a1..3931b2a 100644 --- a/custom_templates/status.jinja +++ b/custom_templates/status.jinja @@ -71,9 +71,9 @@ {% endmacro %} {% macro tony_night_meds(type,method) %} -{% if is_state('input_boolean.tony_night_meds_taken','on') and ct < 43200 %} +{% if is_state('input_boolean.tony_night_meds_taken','on') and (is_state('binary_sensor.overnight','on') or ct < 43200) %} Tony took his night meds at {{ input_datetime_read('input_datetime.tony_night_meds_taken','withdate') | trim }}. -{% elif is_state('input_boolean.tony_night_meds_taken','off') and (ct >= 82800 or ct <= 21600) %} +{% elif is_state('input_boolean.tony_night_meds_taken','off') and is_state('binary_sensor.overnight','on') %} Tony has not taken his night meds. {% if method == 'tts' %} {{ ['He will be reminded when he goes to bed.',