@ehc wrote:
I have created a sensor for storing the last boot date and time:
input_datetime.boot_time
But I am unable to load the time and date using the service “set_datetime”
- platform: time_date display_options: - 'time' - 'date' - 'date_time' - 'time_date' - 'time_utc' - service: input_datetime.set_datetime data_template: entity_id: input_datetime.boot_time datetime: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
could someone tell me what i am doing wrong?
Posts: 1
Participants: 1