The international space station is above us now and there are {{ states.binary_sensor.iss.attributes['number_of_people_in_space'] }} people in space right now. [include an ISS fact at the end]
{% endif -%}
{%- endmacro -%}
{%- macro moon() -%}
{%- macro moon() -%}
{% if (now().hour == 17) %}
{% if (now().hour == 17) %}
Current Moon phase:{{states('sensor.moon') }} [Give a fact and mention today's phase]
Current Moon phase:{{states('sensor.moon') }} [Give a fact and mention today's phase]
@ -245,10 +239,10 @@
{% set time = current_date.strftime('%I:%M %p') %}
{% set time = current_date.strftime('%I:%M %p') %}
Current date time:{{month }} {{ day }}, {{ year }} {{ time }}
Current date time:{{month }} {{ day }}, {{ year }} {{ time }}
Residents:Location
Residents:Location
- Carlo (Dad):{{states('device_tracker.life360_carlo_costanzo') }} at {{ state_attr('device_tracker.life360_carlo_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_carlo_costanzo', 'place') != None else 'Away' }}
- Carlo (Dad):{{states('person.carlo') }} at {{ state_attr('device_tracker.life360_carlo_costanzo', 'place') | replace(' (Costanzo Family)', '') | replace(' (Desantis Family)', '') if state_attr('device_tracker.life360_carlo_costanzo', 'place') != None else 'Away' }}