Fix styling for meds
This commit is contained in:
@@ -4216,7 +4216,7 @@ views:
|
|||||||
entity: input_boolean.tony_awake
|
entity: input_boolean.tony_awake
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color: |-
|
color: |-
|
||||||
{% set counter = states('counter.tony_morning_meds_reminder_count') %}
|
{% set counter = states('counter.tony_morning_meds_reminder_count') | int %}
|
||||||
{% if is_state('input_boolean.tony_morning_meds_taken','on') %}
|
{% if is_state('input_boolean.tony_morning_meds_taken','on') %}
|
||||||
var(--success-color)
|
var(--success-color)
|
||||||
{% elif counter >= 3 %}
|
{% elif counter >= 3 %}
|
||||||
@@ -4236,7 +4236,7 @@ views:
|
|||||||
endif %}
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: >-
|
color: >-
|
||||||
{% set counter = states('counter.tony_afternoon_meds_reminder_count')
|
{% set counter = states('counter.tony_afternoon_meds_reminder_count') | int
|
||||||
%} {% if is_state('input_boolean.tony_afternoon_meds_taken','on') %}
|
%} {% if is_state('input_boolean.tony_afternoon_meds_taken','on') %}
|
||||||
var(--success-color) {% elif counter >= 3 %} var(--error-color) {%
|
var(--success-color) {% elif counter >= 3 %} var(--error-color) {%
|
||||||
elif counter >= 1 %} var(--warning-color) {% else %} '' {% endif %}
|
elif counter >= 1 %} var(--warning-color) {% else %} '' {% endif %}
|
||||||
@@ -4273,7 +4273,7 @@ views:
|
|||||||
}} {% endif %}
|
}} {% endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: |-
|
color: |-
|
||||||
{% set counter = states('counter.tony_night_meds_reminder_count') %}
|
{% set counter = states('counter.tony_night_meds_reminder_count') | int %}
|
||||||
{% if is_state('input_boolean.tony_night_meds_taken','on') %}
|
{% if is_state('input_boolean.tony_night_meds_taken','on') %}
|
||||||
var(--success-color)
|
var(--success-color)
|
||||||
{% elif counter >= 3 %}
|
{% elif counter >= 3 %}
|
||||||
@@ -4307,14 +4307,14 @@ views:
|
|||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: >-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %} {% if
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
is_state('input_boolean.tina_night_meds_reminder','on') %} Waiting: {{
|
is_state('input_boolean.tina_morning_meds_reminder','on') %} Waiting: {{
|
||||||
states('counter.tina_morning_meds_reminder_count') | int }} reminders
|
states('counter.tina_morning_meds_reminder_count') | int }} reminders
|
||||||
{% else %} {{
|
{% else %} {{
|
||||||
input_datetime_read('input_datetime.tina_morning_meds_taken') }} {%
|
input_datetime_read('input_datetime.tina_morning_meds_taken') }} {%
|
||||||
endif %}
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: |-
|
color: |-
|
||||||
{% set counter = states('counter.tina_morning_meds_reminder_count') %}
|
{% set counter = states('counter.tina_morning_meds_reminder_count') | int %}
|
||||||
{% if is_state('input_boolean.tina_morning_meds_taken','on') %}
|
{% if is_state('input_boolean.tina_morning_meds_taken','on') %}
|
||||||
var(--success-color)
|
var(--success-color)
|
||||||
{% elif counter >= 3 %}
|
{% elif counter >= 3 %}
|
||||||
@@ -4354,7 +4354,7 @@ views:
|
|||||||
}} {% endif %}
|
}} {% endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: |-
|
color: |-
|
||||||
{% set counter = states('counter.tina_night_meds_reminder_count') %}
|
{% set counter = states('counter.tina_night_meds_reminder_count') | int %}
|
||||||
{% if is_state('input_boolean.tina_night_meds_taken','on') %}
|
{% if is_state('input_boolean.tina_night_meds_taken','on') %}
|
||||||
var(--success-color)
|
var(--success-color)
|
||||||
{% elif counter >= 3 %}
|
{% elif counter >= 3 %}
|
||||||
@@ -4395,7 +4395,7 @@ views:
|
|||||||
endif %}
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: >-
|
color: >-
|
||||||
{% set counter = states('counter.kallen_morning_meds_reminder_count')
|
{% set counter = states('counter.kallen_morning_meds_reminder_count') | int
|
||||||
%}
|
%}
|
||||||
|
|
||||||
{% if is_state('input_boolean.kallen_morning_meds_taken','on') %}
|
{% if is_state('input_boolean.kallen_morning_meds_taken','on') %}
|
||||||
@@ -4450,7 +4450,7 @@ views:
|
|||||||
endif %}
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: |-
|
color: |-
|
||||||
{% set counter = states('counter.kallen_night_meds_reminder_count') %}
|
{% set counter = states('counter.kallen_night_meds_reminder_count') | int %}
|
||||||
{% if is_state('input_boolean.kallen_night_meds_taken','on') %}
|
{% if is_state('input_boolean.kallen_night_meds_taken','on') %}
|
||||||
var(--success-color)
|
var(--success-color)
|
||||||
{% elif counter >= 3 %}
|
{% elif counter >= 3 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user