From 6860a88df608e6d8074896456d139d31bdb54528 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 5 Mar 2025 17:25:15 -0500 Subject: [PATCH] Add meds taken badges to mobile dashboard --- mobile_dashboard.yaml | 156 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 156 insertions(+) diff --git a/mobile_dashboard.yaml b/mobile_dashboard.yaml index e045d9d..e1eebbc 100644 --- a/mobile_dashboard.yaml +++ b/mobile_dashboard.yaml @@ -3805,6 +3805,162 @@ views: - condition: state entity: binary_sensor.raining state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.tony_morning_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.tony_morning_meds_taken + label: Tony Morning Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - condition: state + entity: input_boolean.tony_morning_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.tony_afternoon_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.tony_morning_meds_taken + label: Tony Afternoon Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - condition: state + entity: input_boolean.tony_afternoon_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.tony_night_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.tony_morning_meds_taken + label: Tony Night Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - condition: state + entity: input_boolean.tony_night_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.tina_morning_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.tina_morning_meds_taken + label: Tina Morning Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - condition: state + entity: input_boolean.tina_morning_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.tina_night_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.tina_night_meds_taken + label: Tina Night Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - condition: state + entity: input_boolean.tina_night_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.kallen_morning_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.kallen_morning_meds_taken + label: Kallen Morning Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - 879b4c04e32841b3ad1d2763a11b4e70 + - condition: state + entity: input_boolean.kallen_morning_meds_taken + state: 'on' + - type: custom:mushroom-template-badge + content: |- + {% from 'time.jinja' import input_datetime_read %} + {{ input_datetime_read('input_datetime.kallen_night_meds_taken') }} + icon: mdi:medication + color: '' + entity: input_datetime.kallen_night_meds_taken + label: Kallen Night Meds + tap_action: + action: none + hold_action: + action: none + double_tap_action: + action: none + visibility: + - condition: user + users: + - f387a983651a4321a7411ff8cf36f949 + - c3909d27048140729f002aaef0391775 + - 879b4c04e32841b3ad1d2763a11b4e70 + - condition: state + entity: input_boolean.kallen_night_meds_taken + state: 'on' header: card: type: markdown