Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
c1fc03250b
|
|||
|
16864d1cd3
|
|||
|
d9c620094e
|
|||
|
d3473f382f
|
@@ -1190,6 +1190,10 @@ views:
|
||||
name_template: >-
|
||||
{{ states('input_text.tony_custom_med_name_p1') + ' Notify'
|
||||
}}
|
||||
- entity: input_boolean.tony_custom_meds_reminder_p1
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_custom_meds_reminder_count_p1
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_custom_meds_tracker_p1
|
||||
@@ -1199,8 +1203,15 @@ views:
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: input_boolean.tony_ibuprofen_taken
|
||||
name: Ibuprofen Taken
|
||||
- entity: input_datetime.tony_ibuprofen_taken
|
||||
name: Ibuprofen Taken
|
||||
- entity: input_datetime.tony_ibuprofen_notify
|
||||
name: Ibuprofen Notify
|
||||
- entity: input_boolean.tony_ibuprofen_reminder
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_ibuprofen_reminder_count
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_ibuprofen_active
|
||||
@@ -1210,8 +1221,15 @@ views:
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: input_boolean.tony_tylenol_taken
|
||||
name: Tylenol Taken
|
||||
- entity: input_datetime.tony_tylenol_taken
|
||||
name: Tylenol Taken
|
||||
- entity: input_datetime.tony_tylenol_notify
|
||||
name: Tylenol Notify
|
||||
- entity: input_boolean.tony_tylenol_reminder
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_tylenol_reminder_count
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_tylenol_active
|
||||
|
||||
@@ -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
|
||||
@@ -5417,6 +5468,10 @@ views:
|
||||
name_template: >-
|
||||
{{ states('input_text.tony_custom_med_name_p1') + ' Notify'
|
||||
}}
|
||||
- entity: input_boolean.tony_custom_meds_reminder_p1
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_custom_meds_reminder_count_p1
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_custom_meds_tracker_p1
|
||||
@@ -5426,8 +5481,15 @@ views:
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: input_boolean.tony_ibuprofen_taken
|
||||
name: Ibuprofen Taken
|
||||
- entity: input_datetime.tony_ibuprofen_taken
|
||||
name: Ibuprofen Taken
|
||||
- entity: input_datetime.tony_ibuprofen_notify
|
||||
name: Ibuprofen Notify
|
||||
- entity: input_boolean.tony_ibuprofen_reminder
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_ibuprofen_reminder_count
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_ibuprofen_active
|
||||
@@ -5437,8 +5499,15 @@ views:
|
||||
show_header_toggle: false
|
||||
entities:
|
||||
- entity: input_boolean.tony_tylenol_taken
|
||||
name: Tylenol Taken
|
||||
- entity: input_datetime.tony_tylenol_taken
|
||||
name: Tylenol Taken
|
||||
- entity: input_datetime.tony_tylenol_notify
|
||||
name: Tylenol Notify
|
||||
- entity: input_boolean.tony_tylenol_reminder
|
||||
name: Reminders Active
|
||||
- entity: counter.tony_tylenol_reminder_count
|
||||
name: Reminder Count
|
||||
visibility:
|
||||
- condition: state
|
||||
entity: input_boolean.tony_tylenol_active
|
||||
@@ -6222,6 +6291,94 @@ views:
|
||||
- condition: state
|
||||
entity: input_boolean.master_bedroom_aircon_installed
|
||||
state: 'on'
|
||||
- type: heading
|
||||
icon: m3o:schedule
|
||||
heading: Scheduling
|
||||
heading_style: title
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_select.scheduled_climate_mode_master_bedroom_aircon
|
||||
name: Scheduled Mode - Aircon
|
||||
- entity: input_select.scheduled_climate_mode_master_bedroom_fan
|
||||
name: Scheduled Mode - Fan
|
||||
- entity: input_datetime.master_bedroom_cooling
|
||||
name: Cooling
|
||||
- entity: input_datetime.master_bedroom_fan
|
||||
name: Fan
|
||||
- entity: input_boolean.master_bedroom_climate_override
|
||||
name: Climate Schedule Override
|
||||
state_color: true
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: heading
|
||||
icon: m3of:data-thresholding
|
||||
heading: Thresholds
|
||||
heading_style: title
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_number.master_bedroom_aircon_run_threshold
|
||||
name: Run Threshold
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.master_bedroom_aircon_run_threshold') |
|
||||
int %} {% set low = states('sensor.tonights_low_temp') | int
|
||||
%} {{ 'Threshold Met' if low >= threshold else '' }}
|
||||
- entity: input_number.master_bedroom_aircon_mode_threshold
|
||||
name: Mode Threshold
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.master_bedroom_aircon_mode_threshold') |
|
||||
int %} {% set low = states('sensor.tonights_low_temp') | int
|
||||
%} {{ 'Threshold Met' if low >= threshold else '' }}
|
||||
- entity: input_number.master_bedroom_auto_cooling_threshold
|
||||
name: MBR Auto Cooling
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.master_bedroom_auto_cooling_threshold') |
|
||||
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_number.master_bedroom_fan_threshold
|
||||
name: MBR Fan
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.master_bedroom_fan_threshold') | int %}
|
||||
{% set low = states('sensor.tonights_low_temp') | int %} {{
|
||||
'Threshold Met' if low >= threshold else '' }}
|
||||
- entity: input_boolean.master_bedroom_aircon_installed
|
||||
name: Aircon Installed
|
||||
- entity: input_boolean.master_bedroom_climate_protocol
|
||||
name: Climate Automations
|
||||
visibility:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity: input_boolean.master_bedroom_aircon_installed
|
||||
state: 'on'
|
||||
- condition: user
|
||||
users:
|
||||
- c3909d27048140729f002aaef0391775
|
||||
show_header_toggle: false
|
||||
state_color: true
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
@@ -6267,6 +6424,87 @@ views:
|
||||
- condition: state
|
||||
entity: input_boolean.emma_bedroom_aircon_installed
|
||||
state: 'on'
|
||||
- type: heading
|
||||
icon: m3o:schedule
|
||||
heading: Scheduling
|
||||
heading_style: title
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_select.scheduled_climate_mode_emma_bedroom
|
||||
name: Scheduled Mode
|
||||
- entity: input_datetime.emma_bedroom_cooling
|
||||
name: Cooling
|
||||
- entity: input_boolean.emma_bedroom_climate_override
|
||||
name: Climate Schedule Override
|
||||
state_color: true
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- f387a983651a4321a7411ff8cf36f949
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: heading
|
||||
icon: m3of:data-thresholding
|
||||
heading: Thresholds
|
||||
heading_style: title
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
- c3909d27048140729f002aaef0391775
|
||||
- type: entities
|
||||
entities:
|
||||
- entity: input_number.emma_bedroom_aircon_run_threshold
|
||||
name: Run Threshold
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.emma_bedroom_aircon_run_threshold') | int
|
||||
%} {% set low = states('sensor.tonights_low_temp') | int %} {{
|
||||
'Threshold Met' if low >= threshold else '' }}
|
||||
- entity: input_number.emma_bedroom_aircon_mode_threshold
|
||||
name: Mode Threshold
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.emma_bedroom_aircon_mode_threshold') |
|
||||
int %} {% set low = states('sensor.tonights_low_temp') | int
|
||||
%} {{ 'Threshold Met' if low >= threshold else '' }}
|
||||
- entity: input_number.emma_bedroom_auto_cooling_threshold
|
||||
name: EBR Auto Cooling
|
||||
secondary_info: >
|
||||
{% set threshold =
|
||||
states('input_number.emma_bedroom_auto_cooling_threshold') |
|
||||
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
|
||||
name: Heater Installed
|
||||
- entity: input_boolean.emma_bedroom_climate_protocol
|
||||
name: Climate Automations
|
||||
- entity: switch.emma_bedroom_climate_watchdog
|
||||
name: Climate Watchdog
|
||||
visibility:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity: input_boolean.emma_bedroom_aircon_installed
|
||||
state: 'on'
|
||||
- condition: user
|
||||
users:
|
||||
- c3909d27048140729f002aaef0391775
|
||||
show_header_toggle: false
|
||||
state_color: true
|
||||
visibility:
|
||||
- condition: user
|
||||
users:
|
||||
|
||||
Reference in New Issue
Block a user