Hi,
I have a question regarding the new template sensors. I have the following code:
- trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
above: 24
sensor:
- name: "Sun above 24 deg"
state: "{{ now() }}"
After a restart of Home Assistant, the state of the sensor is gone. Is there a way to keep this persistent?