This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/NeKapS9 on 2023-06-27 17:55:44+00:00.


Hello people,

I am trying to make a template for the full moon and would appreciate your help. It will be then sent as notification to some phone.

I got the below working and need to add 7 days to when the moon phase changed to ‘waxing_gibbous’.

{% if is_state('sensor.moon', 'waxing_gibbous') %}
  Full moon in {{(as_timestamp(states.sensor.moon.last_changed) | timestamp_custom('%D'))}}
{% else %}
    There is time!
{% endif %}