Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
6daed2edca
|
|||
|
01c81305c3
|
|||
|
fd184d6548
|
|||
|
f561a31487
|
|||
|
658cc3d821
|
|||
|
1d30d48784
|
|||
|
873827376b
|
|||
|
946e92689e
|
|||
|
c83cc465c8
|
|||
|
4d12204ae8
|
|||
|
721f28923a
|
|||
|
82b3f4d833
|
@@ -1006,6 +1006,13 @@ views:
|
|||||||
int %} {% set roomtemp =
|
int %} {% set roomtemp =
|
||||||
states('sensor.master_bedroom_temperature') | int %} {{
|
states('sensor.master_bedroom_temperature') | int %} {{
|
||||||
'Threshold Met' if roomtemp >= threshold else '' }}
|
'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
|
- entity: input_boolean.master_bedroom_aircon_installed
|
||||||
name: Aircon Installed
|
name: Aircon Installed
|
||||||
- entity: input_boolean.master_bedroom_climate_protocol
|
- entity: input_boolean.master_bedroom_climate_protocol
|
||||||
@@ -1041,6 +1048,13 @@ views:
|
|||||||
int %} {% set roomtemp =
|
int %} {% set roomtemp =
|
||||||
states('sensor.emma_bedroom_temperature') | int %} {{
|
states('sensor.emma_bedroom_temperature') | int %} {{
|
||||||
'Threshold Met' if roomtemp >= threshold else '' }}
|
'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
|
- entity: input_boolean.emma_bedroom_aircon_installed
|
||||||
name: Aircon Installed
|
name: Aircon Installed
|
||||||
- entity: input_boolean.emma_bedroom_heater_installed
|
- entity: input_boolean.emma_bedroom_heater_installed
|
||||||
|
|||||||
@@ -173,6 +173,25 @@ views:
|
|||||||
tap_action:
|
tap_action:
|
||||||
action: navigate
|
action: navigate
|
||||||
navigation_path: /lovelace/weather
|
navigation_path: /lovelace/weather
|
||||||
|
- type: custom:mushroom-template-card
|
||||||
|
primary: Lightning Warning
|
||||||
|
secondary: >-
|
||||||
|
{{
|
||||||
|
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
|
||||||
|
}} strikes in last hour!
|
||||||
|
icon: mdi:lightning-bolt
|
||||||
|
entity: binary_sensor.lightning_warning
|
||||||
|
color: var(--warning-color)
|
||||||
|
badge_icon: mdi:exclamation
|
||||||
|
badge_color: var(--error-color)
|
||||||
|
tap_action:
|
||||||
|
action: none
|
||||||
|
icon_tap_action:
|
||||||
|
action: none
|
||||||
|
visibility:
|
||||||
|
- condition: state
|
||||||
|
entity: binary_sensor.lightning_warning
|
||||||
|
state: 'on'
|
||||||
column_span: 1
|
column_span: 1
|
||||||
- type: grid
|
- type: grid
|
||||||
cards:
|
cards:
|
||||||
@@ -425,6 +444,14 @@ views:
|
|||||||
BobEvans: at work
|
BobEvans: at work
|
||||||
- entity: timer.kallen_timer
|
- entity: timer.kallen_timer
|
||||||
- entity: person.kallen_stork
|
- entity: person.kallen_stork
|
||||||
|
name: Kallen Stork
|
||||||
|
content_template: '{{display_name}} is {{state}}'
|
||||||
|
remove_repeats: false
|
||||||
|
state_map:
|
||||||
|
not_home: traveling
|
||||||
|
Wal-Mart: at Wal-Mart
|
||||||
|
School: at school
|
||||||
|
Hospital: at the hospital
|
||||||
- entity: person.emmalynn_stork
|
- entity: person.emmalynn_stork
|
||||||
- entity: automation.family_has_arrived
|
- entity: automation.family_has_arrived
|
||||||
content_template: Family Arrived
|
content_template: Family Arrived
|
||||||
@@ -474,11 +501,12 @@ views:
|
|||||||
- entity: sensor.home_tempest_cloud_sensors_precipitation_intensity
|
- entity: sensor.home_tempest_cloud_sensors_precipitation_intensity
|
||||||
name: Precipitation Intensity
|
name: Precipitation Intensity
|
||||||
state_map:
|
state_map:
|
||||||
none: None
|
no_rain: None
|
||||||
very_light: Very Light
|
very_light: Very Light
|
||||||
light: Light
|
light: Light
|
||||||
moderate: Moderate
|
moderate: Moderate
|
||||||
heavy: Heavy
|
heavy: Heavy
|
||||||
|
very_heavy: Very Heavy
|
||||||
- entity: input_boolean.recliner_mode
|
- entity: input_boolean.recliner_mode
|
||||||
- entity: timer.washer_timer
|
- entity: timer.washer_timer
|
||||||
state_map:
|
state_map:
|
||||||
@@ -2046,14 +2074,25 @@ views:
|
|||||||
step: row
|
step: row
|
||||||
control:
|
control:
|
||||||
hvac:
|
hvac:
|
||||||
|
'off':
|
||||||
|
name: 'Off'
|
||||||
heat: false
|
heat: false
|
||||||
|
cool:
|
||||||
|
name: Cool
|
||||||
|
auto:
|
||||||
|
name: Auto
|
||||||
|
dry:
|
||||||
|
name: Dry
|
||||||
|
fan_only:
|
||||||
|
name: Fan Only
|
||||||
preset:
|
preset:
|
||||||
none:
|
none:
|
||||||
name: Eco Off
|
name: Eco Off
|
||||||
eco:
|
eco:
|
||||||
name: Eco On
|
name: Eco On
|
||||||
boost: false
|
boost: false
|
||||||
comfort: false
|
comfort:
|
||||||
|
name: Comfort
|
||||||
sleep: false
|
sleep: false
|
||||||
away: false
|
away: false
|
||||||
- type: custom:state-switch
|
- type: custom:state-switch
|
||||||
@@ -2420,14 +2459,25 @@ views:
|
|||||||
step: row
|
step: row
|
||||||
control:
|
control:
|
||||||
hvac:
|
hvac:
|
||||||
|
'off':
|
||||||
|
name: 'Off'
|
||||||
heat: false
|
heat: false
|
||||||
|
cool:
|
||||||
|
name: Cool
|
||||||
|
auto:
|
||||||
|
name: Auto
|
||||||
|
dry:
|
||||||
|
name: Dry
|
||||||
|
fan_only:
|
||||||
|
name: Fan Only
|
||||||
preset:
|
preset:
|
||||||
none:
|
none:
|
||||||
name: Eco Off
|
name: Eco Off
|
||||||
eco:
|
eco:
|
||||||
name: Eco On
|
name: Eco On
|
||||||
boost: false
|
boost: false
|
||||||
comfort: false
|
comfort:
|
||||||
|
name: Comfort
|
||||||
sleep: false
|
sleep: false
|
||||||
away: false
|
away: false
|
||||||
- type: custom:state-switch
|
- type: custom:state-switch
|
||||||
@@ -7252,6 +7302,7 @@ views:
|
|||||||
type: custom:multiple-entity-row
|
type: custom:multiple-entity-row
|
||||||
name: Warnings
|
name: Warnings
|
||||||
state_header: Tornado
|
state_header: Tornado
|
||||||
|
icon: wi:tornado
|
||||||
entities:
|
entities:
|
||||||
- entity: binary_sensor.severe_thunderstorm_warning
|
- entity: binary_sensor.severe_thunderstorm_warning
|
||||||
name: Severe T-storm
|
name: Severe T-storm
|
||||||
@@ -7260,6 +7311,7 @@ views:
|
|||||||
name: Wind
|
name: Wind
|
||||||
format: precision1
|
format: precision1
|
||||||
state_header: Speed
|
state_header: Speed
|
||||||
|
icon: wi:windy
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.home_wind_direction_degrees
|
- entity: sensor.home_wind_direction_degrees
|
||||||
name: Bearing
|
name: Bearing
|
||||||
@@ -7271,11 +7323,13 @@ views:
|
|||||||
type: custom:multiple-entity-row
|
type: custom:multiple-entity-row
|
||||||
name: Moisture
|
name: Moisture
|
||||||
state_header: Humidity
|
state_header: Humidity
|
||||||
|
icon: wi:humidity
|
||||||
entities:
|
entities:
|
||||||
- entity: sensor.home_tempest_dew_point
|
- entity: sensor.home_tempest_dew_point
|
||||||
name: Dew Point
|
name: Dew Point
|
||||||
- entity: sensor.home_tempest_local_slp
|
- entity: sensor.home_tempest_local_slp
|
||||||
name: Barometric Pressure
|
name: Barometric Pressure
|
||||||
|
icon: wi:barometer
|
||||||
- entity: sensor.current_season
|
- entity: sensor.current_season
|
||||||
icon: mdi:leaf
|
icon: mdi:leaf
|
||||||
- entity: sensor.home_tempest_uv_index
|
- entity: sensor.home_tempest_uv_index
|
||||||
|
|||||||
@@ -524,294 +524,6 @@ views:
|
|||||||
icon: mdi:cellphone-information
|
icon: mdi:cellphone-information
|
||||||
navigation_path: /dashboard-mobile/mobile-devices
|
navigation_path: /dashboard-mobile/mobile-devices
|
||||||
columns: '4'
|
columns: '4'
|
||||||
- type: custom:timeflow-card
|
|
||||||
title: >-
|
|
||||||
{% set person_name = "Tony" %} {% set birth_year = 1988 %} {% set
|
|
||||||
birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set age = next_birthday.year - birth_year %} {{
|
|
||||||
person_name }}'s {{ age }}{{
|
|
||||||
'st' if age % 10 == 1 and age % 100 != 11 else
|
|
||||||
'nd' if age % 10 == 2 and age % 100 != 12 else
|
|
||||||
'rd' if age % 10 == 3 and age % 100 != 13 else
|
|
||||||
'th'
|
|
||||||
}} Birthday
|
|
||||||
target_date: >-
|
|
||||||
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {{ next_birthday.isoformat() }}
|
|
||||||
creation_date: >-
|
|
||||||
{% set current_date = now() %} {% set start_of_year =
|
|
||||||
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
|
|
||||||
microsecond=0) %} {{ start_of_year.isoformat() }}
|
|
||||||
show_days: true
|
|
||||||
show_hours: true
|
|
||||||
show_minutes: true
|
|
||||||
show_seconds: false
|
|
||||||
expired_text: Happy Birthday Tony! 🎉
|
|
||||||
color: >-
|
|
||||||
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set days_until = (next_birthday -
|
|
||||||
current_date).days %} {% if days_until == 0 %}
|
|
||||||
#FF6B6B
|
|
||||||
{% elif days_until <= 7 %}
|
|
||||||
#4ECDC4
|
|
||||||
{% elif days_until <= 30 %}
|
|
||||||
#45B7D1
|
|
||||||
{% else %}
|
|
||||||
#96CEB4
|
|
||||||
{% endif %}
|
|
||||||
background_color: '#2C3150'
|
|
||||||
progress_color: '#D0CFCF'
|
|
||||||
aspect_ratio: 4/2
|
|
||||||
stroke_width: 6
|
|
||||||
card_mod:
|
|
||||||
style: |
|
|
||||||
ha-card .title {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
}
|
|
||||||
ha-card .subtitle {
|
|
||||||
font-size: 2.0rem;
|
|
||||||
}
|
|
||||||
visibility:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity: sensor.anniversary_tony_s_birthday
|
|
||||||
below: 8
|
|
||||||
- type: custom:timeflow-card
|
|
||||||
title: >-
|
|
||||||
{% set person_name = "Tina" %} {% set birth_year = 1988 %} {% set
|
|
||||||
birthday_month = 8 %} {% set birthday_day = 14 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set age = next_birthday.year - birth_year %} {{
|
|
||||||
person_name }}'s {{ age }}{{
|
|
||||||
'st' if age % 10 == 1 and age % 100 != 11 else
|
|
||||||
'nd' if age % 10 == 2 and age % 100 != 12 else
|
|
||||||
'rd' if age % 10 == 3 and age % 100 != 13 else
|
|
||||||
'th'
|
|
||||||
}} Birthday
|
|
||||||
target_date: >-
|
|
||||||
{% set birthday_month = 8 %} {% set birthday_day = 14 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {{ next_birthday.isoformat() }}
|
|
||||||
creation_date: >-
|
|
||||||
{% set current_date = now() %} {% set start_of_year =
|
|
||||||
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
|
|
||||||
microsecond=0) %} {{ start_of_year.isoformat() }}
|
|
||||||
show_days: true
|
|
||||||
show_hours: true
|
|
||||||
show_minutes: true
|
|
||||||
show_seconds: false
|
|
||||||
expired_text: Happy Birthday Tina! 🎉
|
|
||||||
color: >-
|
|
||||||
{% set birthday_month = 8 %} {% set birthday_day = 14 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set days_until = (next_birthday -
|
|
||||||
current_date).days %} {% if days_until == 0 %}
|
|
||||||
#FF6B6B
|
|
||||||
{% elif days_until <= 7 %}
|
|
||||||
#4ECDC4
|
|
||||||
{% elif days_until <= 30 %}
|
|
||||||
#45B7D1
|
|
||||||
{% else %}
|
|
||||||
#96CEB4
|
|
||||||
{% endif %}
|
|
||||||
background_color: '#2C3150'
|
|
||||||
progress_color: '#D0CFCF'
|
|
||||||
aspect_ratio: 4/2
|
|
||||||
stroke_width: 6
|
|
||||||
card_mod:
|
|
||||||
style: |
|
|
||||||
ha-card .title {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
}
|
|
||||||
ha-card .subtitle {
|
|
||||||
font-size: 2.0rem;
|
|
||||||
}
|
|
||||||
visibility:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity: sensor.anniversary_tina_s_birthday
|
|
||||||
below: 8
|
|
||||||
- type: custom:timeflow-card
|
|
||||||
title: >-
|
|
||||||
{% set person_name = "Kallen" %} {% set birth_year = 2012 %} {% set
|
|
||||||
birthday_month = 2 %} {% set birthday_day = 7 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set age = next_birthday.year - birth_year %} {{
|
|
||||||
person_name }}'s {{ age }}{{
|
|
||||||
'st' if age % 10 == 1 and age % 100 != 11 else
|
|
||||||
'nd' if age % 10 == 2 and age % 100 != 12 else
|
|
||||||
'rd' if age % 10 == 3 and age % 100 != 13 else
|
|
||||||
'th'
|
|
||||||
}} Birthday
|
|
||||||
target_date: >-
|
|
||||||
{% set birthday_month = 2 %} {% set birthday_day = 7 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {{ next_birthday.isoformat() }}
|
|
||||||
creation_date: >-
|
|
||||||
{% set current_date = now() %} {% set start_of_year =
|
|
||||||
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
|
|
||||||
microsecond=0) %} {{ start_of_year.isoformat() }}
|
|
||||||
show_days: true
|
|
||||||
show_hours: true
|
|
||||||
show_minutes: true
|
|
||||||
show_seconds: false
|
|
||||||
expired_text: Happy Birthday Kallen! 🎉
|
|
||||||
color: >-
|
|
||||||
{% set birthday_month = 2 %} {% set birthday_day = 7 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set days_until = (next_birthday -
|
|
||||||
current_date).days %} {% if days_until == 0 %}
|
|
||||||
#FF6B6B
|
|
||||||
{% elif days_until <= 7 %}
|
|
||||||
#4ECDC4
|
|
||||||
{% elif days_until <= 30 %}
|
|
||||||
#45B7D1
|
|
||||||
{% else %}
|
|
||||||
#96CEB4
|
|
||||||
{% endif %}
|
|
||||||
background_color: '#2C3150'
|
|
||||||
progress_color: '#D0CFCF'
|
|
||||||
aspect_ratio: 4/2
|
|
||||||
stroke_width: 6
|
|
||||||
card_mod:
|
|
||||||
style: |
|
|
||||||
ha-card .title {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
}
|
|
||||||
ha-card .subtitle {
|
|
||||||
font-size: 2.0rem;
|
|
||||||
}
|
|
||||||
visibility:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity: sensor.anniversary_kallen_s_birthday
|
|
||||||
below: 8
|
|
||||||
- type: custom:timeflow-card
|
|
||||||
title: >-
|
|
||||||
{% set person_name = "Emmalynn" %} {% set birth_year = 2022 %} {% set
|
|
||||||
birthday_month = 1 %} {% set birthday_day = 10 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set age = next_birthday.year - birth_year %} {{
|
|
||||||
person_name }}'s {{ age }}{{
|
|
||||||
'st' if age % 10 == 1 and age % 100 != 11 else
|
|
||||||
'nd' if age % 10 == 2 and age % 100 != 12 else
|
|
||||||
'rd' if age % 10 == 3 and age % 100 != 13 else
|
|
||||||
'th'
|
|
||||||
}} Birthday
|
|
||||||
target_date: >-
|
|
||||||
{% set birthday_month = 1 %} {% set birthday_day = 10 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {{ next_birthday.isoformat() }}
|
|
||||||
creation_date: >-
|
|
||||||
{% set current_date = now() %} {% set start_of_year =
|
|
||||||
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
|
|
||||||
microsecond=0) %} {{ start_of_year.isoformat() }}
|
|
||||||
show_days: true
|
|
||||||
show_hours: true
|
|
||||||
show_minutes: true
|
|
||||||
show_seconds: false
|
|
||||||
expired_text: Happy Birthday Emmalynn! 🎉
|
|
||||||
color: >-
|
|
||||||
{% set birthday_month = 1 %} {% set birthday_day = 10 %} {% set
|
|
||||||
current_date = now() %} {% set this_year_birthday =
|
|
||||||
current_date.replace(month=birthday_month, day=birthday_day,
|
|
||||||
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
|
||||||
this_year_birthday %}
|
|
||||||
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
|
||||||
{% else %}
|
|
||||||
{% set next_birthday = this_year_birthday %}
|
|
||||||
{% endif %} {% set days_until = (next_birthday -
|
|
||||||
current_date).days %} {% if days_until == 0 %}
|
|
||||||
#FF6B6B
|
|
||||||
{% elif days_until <= 7 %}
|
|
||||||
#4ECDC4
|
|
||||||
{% elif days_until <= 30 %}
|
|
||||||
#45B7D1
|
|
||||||
{% else %}
|
|
||||||
#96CEB4
|
|
||||||
{% endif %}
|
|
||||||
background_color: '#2C3150'
|
|
||||||
progress_color: '#D0CFCF'
|
|
||||||
aspect_ratio: 4/2
|
|
||||||
stroke_width: 6
|
|
||||||
card_mod:
|
|
||||||
style: |
|
|
||||||
ha-card .title {
|
|
||||||
font-size: 2.2rem;
|
|
||||||
}
|
|
||||||
ha-card .subtitle {
|
|
||||||
font-size: 2.0rem;
|
|
||||||
}
|
|
||||||
visibility:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity: sensor.anniversary_emmalynn_s_birthday
|
|
||||||
below: 8
|
|
||||||
- type: heading
|
- type: heading
|
||||||
icon: mdi:cctv
|
icon: mdi:cctv
|
||||||
heading: Cameras
|
heading: Cameras
|
||||||
@@ -4119,7 +3831,7 @@ views:
|
|||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: Emma has left her room! (Tap to silence)
|
content: Emma has left her room! (Tap to silence)
|
||||||
icon: mdi:alert
|
icon: mdi:alert
|
||||||
color: red
|
color: var(--error-color)
|
||||||
label: Toddler Alert
|
label: Toddler Alert
|
||||||
entity: button.emma_door_alert_cancel
|
entity: button.emma_door_alert_cancel
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4132,7 +3844,6 @@ views:
|
|||||||
content: Alert Disabled
|
content: Alert Disabled
|
||||||
icon: mdi:alert
|
icon: mdi:alert
|
||||||
entity: switch.emma_door_alert
|
entity: switch.emma_door_alert
|
||||||
color: yellow
|
|
||||||
label: Emma Door Alert
|
label: Emma Door Alert
|
||||||
tap_action:
|
tap_action:
|
||||||
action: toggle
|
action: toggle
|
||||||
@@ -4144,9 +3855,10 @@ views:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity: switch.emma_door_alert
|
entity: switch.emma_door_alert
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
color: var(--warning-color)
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: Tornado Possible
|
content: Tornado Possible
|
||||||
color: red
|
color: var(--error-color)
|
||||||
label: Stay Alert
|
label: Stay Alert
|
||||||
tap_action:
|
tap_action:
|
||||||
action: none
|
action: none
|
||||||
@@ -4166,12 +3878,7 @@ views:
|
|||||||
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
|
states('sensor.home_tempest_cloud_sensors_lightning_strikes_last_hour')
|
||||||
}} strikes in last hour!
|
}} strikes in last hour!
|
||||||
icon: mdi:lightning-bolt
|
icon: mdi:lightning-bolt
|
||||||
color: |-
|
color: var(--warning-color)
|
||||||
{% if is_state('binary_sensor.lightning_warning','on') %}
|
|
||||||
yellow
|
|
||||||
{% else %}
|
|
||||||
grey
|
|
||||||
{% endif %}
|
|
||||||
entity: binary_sensor.lightning_warning
|
entity: binary_sensor.lightning_warning
|
||||||
label: Lightning Warning
|
label: Lightning Warning
|
||||||
visibility:
|
visibility:
|
||||||
@@ -4188,12 +3895,7 @@ views:
|
|||||||
It is currently raining!
|
It is currently raining!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
icon: mdi:weather-rainy
|
icon: mdi:weather-rainy
|
||||||
color: |-
|
color: blue
|
||||||
{% if is_state('binary_sensor.raining','on') %}
|
|
||||||
blue
|
|
||||||
{% else %}
|
|
||||||
grey
|
|
||||||
{% endif %}
|
|
||||||
entity: binary_sensor.raining
|
entity: binary_sensor.raining
|
||||||
label: Rain Status
|
label: Rain Status
|
||||||
visibility:
|
visibility:
|
||||||
@@ -4203,7 +3905,7 @@ views:
|
|||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: 'Currently: {{ states(''sensor.doors_open'') }}'
|
content: 'Currently: {{ states(''sensor.doors_open'') }}'
|
||||||
icon: mdi:door-open
|
icon: mdi:door-open
|
||||||
color: red
|
color: var(--error-color)
|
||||||
entity: sensor.doors_open
|
entity: sensor.doors_open
|
||||||
label: Doors Open
|
label: Doors Open
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4219,7 +3921,7 @@ views:
|
|||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: 'Currently: {{ states(''sensor.windows_open'') }}'
|
content: 'Currently: {{ states(''sensor.windows_open'') }}'
|
||||||
icon: mdi:window-open
|
icon: mdi:window-open
|
||||||
color: red
|
color: var(--error-color)
|
||||||
entity: binary_sensor.windows
|
entity: binary_sensor.windows
|
||||||
label: Windows Open
|
label: Windows Open
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4235,7 +3937,7 @@ views:
|
|||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: Check light switches
|
content: Check light switches
|
||||||
icon: mdi:light-switch
|
icon: mdi:light-switch
|
||||||
color: red
|
color: var(--error-color)
|
||||||
label: Light Issue
|
label: Light Issue
|
||||||
visibility:
|
visibility:
|
||||||
- condition: state
|
- condition: state
|
||||||
@@ -4251,9 +3953,9 @@ views:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
color: |-
|
color: |-
|
||||||
{% if is_state(entity,'on') %}
|
{% if is_state(entity,'on') %}
|
||||||
red
|
var(--error-color)
|
||||||
{% else %}
|
{% else %}
|
||||||
green
|
var(--success-color)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
label: Emma Door Status
|
label: Emma Door Status
|
||||||
content: |-
|
content: |-
|
||||||
@@ -4301,11 +4003,11 @@ views:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
color: |-
|
color: |-
|
||||||
{% if is_state('input_boolean.school_cancelled','on') %}
|
{% if is_state('input_boolean.school_cancelled','on') %}
|
||||||
red
|
var(--error-color)
|
||||||
{% elif is_state('input_boolean.two_hour_delay','on') %}
|
{% elif is_state('input_boolean.two_hour_delay','on') %}
|
||||||
yellow
|
var(--warning-color)
|
||||||
{% else %}
|
{% else %}
|
||||||
green
|
var(--success-color)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
label: School Status
|
label: School Status
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4366,6 +4068,9 @@ views:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity: sensor.spc_outlook_day_1
|
entity: sensor.spc_outlook_day_1
|
||||||
state_not: No Risk
|
state_not: No Risk
|
||||||
|
- condition: state
|
||||||
|
entity: sensor.spc_outlook_day_1
|
||||||
|
state_not: General Thunderstorms Risk
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: '{{ states(entity) }}'
|
content: '{{ states(entity) }}'
|
||||||
icon: mdi:weather-windy
|
icon: mdi:weather-windy
|
||||||
@@ -4451,11 +4156,11 @@ views:
|
|||||||
label: Basement Status
|
label: Basement Status
|
||||||
color: |-
|
color: |-
|
||||||
{% if is_state(entity,'on') %}
|
{% if is_state(entity,'on') %}
|
||||||
red
|
var(--error-color)
|
||||||
{% elif is_state('input_boolean.studio_quiet','on') %}
|
{% elif is_state('input_boolean.studio_quiet','on') %}
|
||||||
yellow
|
var(--warning-color)
|
||||||
{% else %}
|
{% else %}
|
||||||
green
|
var(--success-color)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
icon: |-
|
icon: |-
|
||||||
{% if is_state(entity,'on') %}
|
{% if is_state(entity,'on') %}
|
||||||
@@ -4472,11 +4177,20 @@ views:
|
|||||||
double_tap_action:
|
double_tap_action:
|
||||||
action: none
|
action: none
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %}
|
||||||
{{ input_datetime_read('input_datetime.tony_morning_meds_taken') }}
|
|
||||||
|
{% if is_state('input_boolean.tony_morning_meds_reminder','on') %}
|
||||||
|
|
||||||
|
Waiting: {{ states('counter.tony_morning_meds_reminder_count') | int
|
||||||
|
}} reminders
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
{{ input_datetime_read('input_datetime.tony_morning_meds_taken') }}
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
|
||||||
entity: input_datetime.tony_morning_meds_taken
|
entity: input_datetime.tony_morning_meds_taken
|
||||||
label: Tony Morning Meds
|
label: Tony Morning Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4490,19 +4204,43 @@ views:
|
|||||||
users:
|
users:
|
||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.tony_morning_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.tony_morning_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.tony_morning_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity: input_boolean.tony_awake
|
entity: input_boolean.tony_awake
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
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
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.tony_afternoon_meds_taken') }}
|
is_state('input_boolean.tony_afternoon_meds_reminder','on') %}
|
||||||
|
Waiting: {{ states('counter.tony_afternoon_meds_reminder_count') | int
|
||||||
|
}} reminders {% else %} {{
|
||||||
|
input_datetime_read('input_datetime.tony_afternoon_meds_taken') }} {%
|
||||||
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
color: >-
|
||||||
entity: input_datetime.tony_morning_meds_taken
|
{% 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
|
||||||
label: Tony Afternoon Meds
|
label: Tony Afternoon Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
action: none
|
action: none
|
||||||
@@ -4515,19 +4253,37 @@ views:
|
|||||||
users:
|
users:
|
||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.tony_afternoon_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.tony_afternoon_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.tony_afternoon_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity: input_boolean.tony_awake
|
entity: input_boolean.tony_awake
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.tony_night_meds_taken') }}
|
is_state('input_boolean.tony_night_meds_reminder','on') %} Waiting: {{
|
||||||
|
states('counter.tony_night_meds_reminder_count') | int }} reminders {%
|
||||||
|
else %} {{ input_datetime_read('input_datetime.tony_night_meds_taken')
|
||||||
|
}} {% endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
color: |-
|
||||||
entity: input_datetime.tony_morning_meds_taken
|
{% 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
|
label: Tony Night Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
action: none
|
action: none
|
||||||
@@ -4540,15 +4296,34 @@ views:
|
|||||||
users:
|
users:
|
||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.tony_night_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.tony_night_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.tony_night_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.tina_morning_meds_taken') }}
|
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
|
icon: mdi:medication
|
||||||
color: ''
|
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
|
entity: input_datetime.tina_morning_meds_taken
|
||||||
label: Tina Morning Meds
|
label: Tina Morning Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4562,15 +4337,33 @@ views:
|
|||||||
users:
|
users:
|
||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.tina_morning_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.tina_morning_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.tina_morning_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.tina_night_meds_taken') }}
|
is_state('input_boolean.tina_night_meds_reminder','on') %} Waiting: {{
|
||||||
|
states('counter.tina_night_meds_reminder_count') | int }} reminders {%
|
||||||
|
else %} {{ input_datetime_read('input_datetime.tina_night_meds_taken')
|
||||||
|
}} {% endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
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
|
entity: input_datetime.tina_night_meds_taken
|
||||||
label: Tina Night Meds
|
label: Tina Night Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4584,15 +4377,44 @@ views:
|
|||||||
users:
|
users:
|
||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.tina_night_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.tina_night_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.tina_night_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.kallen_morning_meds_taken') }}
|
is_state('input_boolean.kallen_morning_meds_reminder','on') %}
|
||||||
|
Waiting: {{ states('counter.kallen_morning_meds_reminder_count') | int
|
||||||
|
}} reminders {% else %} {{
|
||||||
|
input_datetime_read('input_datetime.kallen_morning_meds_taken') }} {%
|
||||||
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
color: >-
|
||||||
|
{% set counter = states('counter.kallen_morning_meds_reminder_count') | int
|
||||||
|
%}
|
||||||
|
|
||||||
|
{% if is_state('input_boolean.kallen_morning_meds_taken','on') %}
|
||||||
|
|
||||||
|
var(--success-color)
|
||||||
|
|
||||||
|
{% elif counter >= 3 %}
|
||||||
|
|
||||||
|
var(--error-color)
|
||||||
|
|
||||||
|
{% elif counter >= 1 %}
|
||||||
|
|
||||||
|
var(--warning-color)
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
|
||||||
|
''
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
entity: input_datetime.kallen_morning_meds_taken
|
entity: input_datetime.kallen_morning_meds_taken
|
||||||
label: Kallen Morning Meds
|
label: Kallen Morning Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4607,18 +4429,37 @@ views:
|
|||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- 879b4c04e32841b3ad1d2763a11b4e70
|
- 879b4c04e32841b3ad1d2763a11b4e70
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.kallen_morning_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.kallen_morning_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.kallen_morning_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity: input_boolean.kallen_sleeping
|
entity: input_boolean.kallen_sleeping
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- type: custom:mushroom-template-badge
|
- type: custom:mushroom-template-badge
|
||||||
content: |-
|
content: >-
|
||||||
{% from 'time.jinja' import input_datetime_read %}
|
{% from 'time.jinja' import input_datetime_read %} {% if
|
||||||
{{ input_datetime_read('input_datetime.kallen_night_meds_taken') }}
|
is_state('input_boolean.kallen_night_meds_reminder','on') %} Waiting:
|
||||||
|
{{ states('counter.kallen_night_meds_reminder_count') | int }}
|
||||||
|
reminders {% else %} {{
|
||||||
|
input_datetime_read('input_datetime.kallen_night_meds_taken') }} {%
|
||||||
|
endif %}
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
color: ''
|
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
|
entity: input_datetime.kallen_night_meds_taken
|
||||||
label: Kallen Night Meds
|
label: Kallen Night Meds
|
||||||
tap_action:
|
tap_action:
|
||||||
@@ -4633,9 +4474,14 @@ views:
|
|||||||
- f387a983651a4321a7411ff8cf36f949
|
- f387a983651a4321a7411ff8cf36f949
|
||||||
- c3909d27048140729f002aaef0391775
|
- c3909d27048140729f002aaef0391775
|
||||||
- 879b4c04e32841b3ad1d2763a11b4e70
|
- 879b4c04e32841b3ad1d2763a11b4e70
|
||||||
- condition: state
|
- condition: or
|
||||||
entity: input_boolean.kallen_night_meds_taken
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity: input_boolean.kallen_night_meds_taken
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity: input_boolean.kallen_night_meds_reminder
|
||||||
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity: input_boolean.kallen_sleeping
|
entity: input_boolean.kallen_sleeping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@@ -7141,6 +6987,84 @@ views:
|
|||||||
modules:
|
modules:
|
||||||
- default
|
- default
|
||||||
- popup_timer_card
|
- popup_timer_card
|
||||||
|
- type: grid
|
||||||
|
cards:
|
||||||
|
- type: heading
|
||||||
|
heading: Birthday Countdown Cards
|
||||||
|
heading_style: title
|
||||||
|
icon: mdi:calendar
|
||||||
|
- type: custom:timeflow-card
|
||||||
|
title: >-
|
||||||
|
{% set person_name = "Tony" %} {% set birth_year = 1988 %} {% set
|
||||||
|
birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
||||||
|
current_date = now() %} {% set this_year_birthday =
|
||||||
|
current_date.replace(month=birthday_month, day=birthday_day,
|
||||||
|
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
||||||
|
this_year_birthday %}
|
||||||
|
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
||||||
|
{% else %}
|
||||||
|
{% set next_birthday = this_year_birthday %}
|
||||||
|
{% endif %} {% set age = next_birthday.year - birth_year %} {{
|
||||||
|
person_name }}'s {{ age }}{{
|
||||||
|
'st' if age % 10 == 1 and age % 100 != 11 else
|
||||||
|
'nd' if age % 10 == 2 and age % 100 != 12 else
|
||||||
|
'rd' if age % 10 == 3 and age % 100 != 13 else
|
||||||
|
'th'
|
||||||
|
}} Birthday
|
||||||
|
target_date: >-
|
||||||
|
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
||||||
|
current_date = now() %} {% set this_year_birthday =
|
||||||
|
current_date.replace(month=birthday_month, day=birthday_day,
|
||||||
|
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
||||||
|
this_year_birthday %}
|
||||||
|
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
||||||
|
{% else %}
|
||||||
|
{% set next_birthday = this_year_birthday %}
|
||||||
|
{% endif %} {{ next_birthday.isoformat() }}
|
||||||
|
creation_date: >-
|
||||||
|
{% set current_date = now() %} {% set start_of_year =
|
||||||
|
current_date.replace(month=1, day=1, hour=0, minute=0, second=0,
|
||||||
|
microsecond=0) %} {{ start_of_year.isoformat() }}
|
||||||
|
show_days: true
|
||||||
|
show_hours: true
|
||||||
|
show_minutes: true
|
||||||
|
show_seconds: false
|
||||||
|
expired_text: Happy Birthday Tony! 🎉
|
||||||
|
color: >-
|
||||||
|
{% set birthday_month = 9 %} {% set birthday_day = 8 %} {% set
|
||||||
|
current_date = now() %} {% set this_year_birthday =
|
||||||
|
current_date.replace(month=birthday_month, day=birthday_day,
|
||||||
|
hour=0, minute=0, second=0, microsecond=0) %} {% if current_date >
|
||||||
|
this_year_birthday %}
|
||||||
|
{% set next_birthday = this_year_birthday.replace(year=this_year_birthday.year + 1) %}
|
||||||
|
{% else %}
|
||||||
|
{% set next_birthday = this_year_birthday %}
|
||||||
|
{% endif %} {% set days_until = (next_birthday -
|
||||||
|
current_date).days %} {% if days_until == 0 %}
|
||||||
|
#FF6B6B
|
||||||
|
{% elif days_until <= 7 %}
|
||||||
|
#4ECDC4
|
||||||
|
{% elif days_until <= 30 %}
|
||||||
|
#45B7D1
|
||||||
|
{% else %}
|
||||||
|
#96CEB4
|
||||||
|
{% endif %}
|
||||||
|
background_color: '#2C3150'
|
||||||
|
progress_color: '#D0CFCF'
|
||||||
|
aspect_ratio: 4/2
|
||||||
|
stroke_width: 6
|
||||||
|
card_mod:
|
||||||
|
style: |
|
||||||
|
ha-card .title {
|
||||||
|
font-size: 2.2rem;
|
||||||
|
}
|
||||||
|
ha-card .subtitle {
|
||||||
|
font-size: 2.0rem;
|
||||||
|
}
|
||||||
|
visibility:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity: sensor.anniversary_tony_s_birthday
|
||||||
|
below: 8
|
||||||
header:
|
header:
|
||||||
layout: responsive
|
layout: responsive
|
||||||
badges_position: bottom
|
badges_position: bottom
|
||||||
|
|||||||
Reference in New Issue
Block a user