Boredom strikes again. Total age counter for the family LOL
This commit is contained in:
@ -181,6 +181,21 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
mdi:eye
|
mdi:eye
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
# The sum of all the years of life in our household, because why not LOL
|
||||||
|
total_age_years:
|
||||||
|
friendly_name: Total Age Years
|
||||||
|
value_template: >
|
||||||
|
{% set tony = states('sensor.tony_current_age') | int %}
|
||||||
|
{% set tina = states('sensor.tina_current_age') | int %}
|
||||||
|
{% set kallen = states('sensor.kallen_current_age') | int %}
|
||||||
|
{% set emmalynn = states('sensor.emma_current_age') | int %}
|
||||||
|
{{ tony + tina + kallen + emmalynn }}
|
||||||
|
icon_template: >
|
||||||
|
{% if (states('sensor.birthdays_today') | int) > 0 %}
|
||||||
|
mdi:cake
|
||||||
|
{% else %}
|
||||||
|
mdi:eye
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
- platform: history_stats
|
- platform: history_stats
|
||||||
name: Basement TV Time
|
name: Basement TV Time
|
||||||
|
Reference in New Issue
Block a user