Boredom strikes again. Total age counter for the family LOL

This commit is contained in:
2023-02-08 12:28:38 -05:00
parent 8e4051b5ae
commit 07075b4470

View File

@ -181,6 +181,21 @@
{% else %}
mdi:eye
{% 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
name: Basement TV Time