Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102441

Input_datetime not able to set values

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 102441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>