Trying to Understand More - input_datetime.set_datetime us Service in Developer Tools

Good Day Community,
I am trying to understand more and more how HA actually works to also adapt the examples of the forum to the new way HA works since 0.115.

I am playing around a bit and need some help.
Using the input_datetime.set_datetime Service how can I set a variable to the current time?

I tried something like (in Developer Tools)
Service: input_datetime.set_datetime
Entity: entity_id: input_datetime.alarm_clock
Service Data (YAML, optional):
entity_id: input_datetime.alarm_clock
time: {{states.sensor.time.state}}

Using something like
time: ‘00:00:00’
works
time: {{states.sensor.time.state}}

If you are using Developer Tools > Services for experimenting, it’s my understanding that it doesn’t support templates.

thanks for the answer, as my understading of the new release 0.115 it should right?

Just tested it in 0.115 and confirmed you are correct. I guess I missed that enhancement in the release notes.

Be sure to enclose the template with quotes.

I am just in the chat and it seem that the it doesn’t work in developers part and does work as a script