Just Home Assistant fucking around with formatting for no good reason
This commit is contained in:
@@ -4215,16 +4215,26 @@ views:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_awake
|
||||
state: 'on'
|
||||
color: |-
|
||||
{% set counter = states('counter.tony_morning_meds_reminder_count') | int %}
|
||||
color: >-
|
||||
{% set counter = states('counter.tony_morning_meds_reminder_count') |
|
||||
int %}
|
||||
|
||||
{% if is_state('input_boolean.tony_morning_meds_taken','on') %}
|
||||
|
||||
var(--success-color)
|
||||
|
||||
{% elif counter >= 3 %}
|
||||
|
||||
var(--error-color)
|
||||
|
||||
{% elif counter >= 1 %}
|
||||
|
||||
var(--warning-color)
|
||||
|
||||
{% else %}
|
||||
|
||||
''
|
||||
|
||||
{% endif %}
|
||||
- type: custom:mushroom-template-badge
|
||||
content: >-
|
||||
@@ -4236,8 +4246,9 @@ views:
|
||||
endif %}
|
||||
icon: mdi:medication
|
||||
color: >-
|
||||
{% set counter = states('counter.tony_afternoon_meds_reminder_count') | int
|
||||
%} {% if is_state('input_boolean.tony_afternoon_meds_taken','on') %}
|
||||
{% set counter = states('counter.tony_afternoon_meds_reminder_count')
|
||||
| int %} {% if
|
||||
is_state('input_boolean.tony_afternoon_meds_taken','on') %}
|
||||
var(--success-color) {% elif counter >= 3 %} var(--error-color) {%
|
||||
elif counter >= 1 %} var(--warning-color) {% else %} '' {% endif %}
|
||||
entity: input_datetime.tony_afternoon_meds_taken
|
||||
@@ -4272,16 +4283,26 @@ views:
|
||||
else %} {{ input_datetime_read('input_datetime.tony_night_meds_taken')
|
||||
}} {% endif %}
|
||||
icon: mdi:medication
|
||||
color: |-
|
||||
{% set counter = states('counter.tony_night_meds_reminder_count') | int %}
|
||||
color: >-
|
||||
{% set counter = states('counter.tony_night_meds_reminder_count') |
|
||||
int %}
|
||||
|
||||
{% if is_state('input_boolean.tony_night_meds_taken','on') %}
|
||||
|
||||
var(--success-color)
|
||||
|
||||
{% elif counter >= 3 %}
|
||||
|
||||
var(--error-color)
|
||||
|
||||
{% elif counter >= 1 %}
|
||||
|
||||
var(--warning-color)
|
||||
|
||||
{% else %}
|
||||
|
||||
''
|
||||
|
||||
{% endif %}
|
||||
entity: input_datetime.tony_night_meds_taken
|
||||
label: Tony Night Meds
|
||||
@@ -4307,22 +4328,32 @@ views:
|
||||
- type: custom:mushroom-template-badge
|
||||
content: >-
|
||||
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||
is_state('input_boolean.tina_morning_meds_reminder','on') %} Waiting: {{
|
||||
states('counter.tina_morning_meds_reminder_count') | int }} reminders
|
||||
{% else %} {{
|
||||
is_state('input_boolean.tina_morning_meds_reminder','on') %} Waiting:
|
||||
{{ states('counter.tina_morning_meds_reminder_count') | int }}
|
||||
reminders {% else %} {{
|
||||
input_datetime_read('input_datetime.tina_morning_meds_taken') }} {%
|
||||
endif %}
|
||||
icon: mdi:medication
|
||||
color: |-
|
||||
{% set counter = states('counter.tina_morning_meds_reminder_count') | int %}
|
||||
color: >-
|
||||
{% set counter = states('counter.tina_morning_meds_reminder_count') |
|
||||
int %}
|
||||
|
||||
{% if is_state('input_boolean.tina_morning_meds_taken','on') %}
|
||||
|
||||
var(--success-color)
|
||||
|
||||
{% elif counter >= 3 %}
|
||||
|
||||
var(--error-color)
|
||||
|
||||
{% elif counter >= 1 %}
|
||||
|
||||
var(--warning-color)
|
||||
|
||||
{% else %}
|
||||
|
||||
''
|
||||
|
||||
{% endif %}
|
||||
entity: input_datetime.tina_morning_meds_taken
|
||||
label: Tina Morning Meds
|
||||
@@ -4353,16 +4384,26 @@ views:
|
||||
else %} {{ input_datetime_read('input_datetime.tina_night_meds_taken')
|
||||
}} {% endif %}
|
||||
icon: mdi:medication
|
||||
color: |-
|
||||
{% set counter = states('counter.tina_night_meds_reminder_count') | int %}
|
||||
color: >-
|
||||
{% set counter = states('counter.tina_night_meds_reminder_count') |
|
||||
int %}
|
||||
|
||||
{% if is_state('input_boolean.tina_night_meds_taken','on') %}
|
||||
|
||||
var(--success-color)
|
||||
|
||||
{% elif counter >= 3 %}
|
||||
|
||||
var(--error-color)
|
||||
|
||||
{% elif counter >= 1 %}
|
||||
|
||||
var(--warning-color)
|
||||
|
||||
{% else %}
|
||||
|
||||
''
|
||||
|
||||
{% endif %}
|
||||
entity: input_datetime.tina_night_meds_taken
|
||||
label: Tina Night Meds
|
||||
@@ -4395,8 +4436,8 @@ views:
|
||||
endif %}
|
||||
icon: mdi:medication
|
||||
color: >-
|
||||
{% set counter = states('counter.kallen_morning_meds_reminder_count') | int
|
||||
%}
|
||||
{% set counter = states('counter.kallen_morning_meds_reminder_count')
|
||||
| int %}
|
||||
|
||||
{% if is_state('input_boolean.kallen_morning_meds_taken','on') %}
|
||||
|
||||
@@ -4449,16 +4490,26 @@ views:
|
||||
input_datetime_read('input_datetime.kallen_night_meds_taken') }} {%
|
||||
endif %}
|
||||
icon: mdi:medication
|
||||
color: |-
|
||||
{% set counter = states('counter.kallen_night_meds_reminder_count') | int %}
|
||||
color: >-
|
||||
{% set counter = states('counter.kallen_night_meds_reminder_count') |
|
||||
int %}
|
||||
|
||||
{% if is_state('input_boolean.kallen_night_meds_taken','on') %}
|
||||
|
||||
var(--success-color)
|
||||
|
||||
{% elif counter >= 3 %}
|
||||
|
||||
var(--error-color)
|
||||
|
||||
{% elif counter >= 1 %}
|
||||
|
||||
var(--warning-color)
|
||||
|
||||
{% else %}
|
||||
|
||||
''
|
||||
|
||||
{% endif %}
|
||||
entity: input_datetime.kallen_night_meds_taken
|
||||
label: Kallen Night Meds
|
||||
|
||||
Reference in New Issue
Block a user