Compare commits

...

2 Commits

Author SHA1 Message Date
873827376b Add new controls to climate admin panel 2025-09-02 02:44:59 -04:00
946e92689e Fix styling for meds 2025-09-02 02:44:41 -04:00
2 changed files with 22 additions and 8 deletions

View File

@@ -1006,6 +1006,13 @@ views:
int %} {% set roomtemp =
states('sensor.master_bedroom_temperature') | int %} {{
'Threshold Met' if roomtemp >= threshold else '' }}
- entity: input_number.master_bedroom_mode_switch_threshold
name: MBR Mode Switch
secondary_info: >
{% set threshold =
states('input_number.master_bedroom_mode_switch_threshold') |
int %} {% set high = states('sensor.todays_high_temp') | int
%} {{ 'Threshold Met' if high >= threshold else '' }}
- entity: input_boolean.master_bedroom_aircon_installed
name: Aircon Installed
- entity: input_boolean.master_bedroom_climate_protocol
@@ -1041,6 +1048,13 @@ views:
int %} {% set roomtemp =
states('sensor.emma_bedroom_temperature') | int %} {{
'Threshold Met' if roomtemp >= threshold else '' }}
- entity: input_number.emma_bedroom_mode_switch_threshold
name: EBR Mode Switch
secondary_info: >
{% set threshold =
states('input_number.emma_bedroom_mode_switch_threshold') |
int %} {% set high = states('sensor.todays_high_temp') | int
%} {{ 'Threshold Met' if high >= threshold else '' }}
- entity: input_boolean.emma_bedroom_aircon_installed
name: Aircon Installed
- entity: input_boolean.emma_bedroom_heater_installed

View File

@@ -4216,7 +4216,7 @@ views:
entity: input_boolean.tony_awake
state: 'on'
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') %}
var(--success-color)
{% elif counter >= 3 %}
@@ -4236,7 +4236,7 @@ views:
endif %}
icon: mdi:medication
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') %}
var(--success-color) {% elif counter >= 3 %} var(--error-color) {%
elif counter >= 1 %} var(--warning-color) {% else %} '' {% endif %}
@@ -4273,7 +4273,7 @@ views:
}} {% endif %}
icon: mdi:medication
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') %}
var(--success-color)
{% elif counter >= 3 %}
@@ -4307,14 +4307,14 @@ views:
- type: custom:mushroom-template-badge
content: >-
{% 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
{% else %} {{
input_datetime_read('input_datetime.tina_morning_meds_taken') }} {%
endif %}
icon: mdi:medication
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') %}
var(--success-color)
{% elif counter >= 3 %}
@@ -4354,7 +4354,7 @@ views:
}} {% endif %}
icon: mdi:medication
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') %}
var(--success-color)
{% elif counter >= 3 %}
@@ -4395,7 +4395,7 @@ views:
endif %}
icon: mdi:medication
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') %}
@@ -4450,7 +4450,7 @@ views:
endif %}
icon: mdi:medication
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') %}
var(--success-color)
{% elif counter >= 3 %}