I have to save the next_dusk and next_dawn datetime values from the sun integration in two helpers with an automation running every day at 03:00.
I create two input_datetime helpers:
input_datetime.sun_today_dawn
input_datetime.sun_today_dusk
alias: Sun Heutige Werte festhalten
description: ""
trigger:
- platform: time
at: "03:00:00"
condition: []
action:
- service: input_datetime.set_datetime
data_template:
date: "{{ states('sensor.sun_next_dusk') }}"
target:
entity_id: input_datetime.sun_today_dusk
mode: single
When I test the action I got: āCould not parse date for dictionary value @ data[ādateā]. Got Noneā.
What am I doing wrong?