I have an issue i can’t resolve. Also I did not find any solution in the community. I try to put the lights out at a time that the user puts in via a input_datetime. I have a seperate time in the weekend. I use the following components in configuration.yaml:
{{ states(‘input_datetime.sleeptime’) | timestamp_custom(’%H:%M:%S’, false) }} gives the correct time in the template editor. However it is not accepted in the time argument of input_datetime.set_datetime.
Do you have the editor in YAML mode? If not, then you will need to click the 3 dots in the top-right hand corner of the Action editor and select “Edit as YAML” from the menu.
Something I tend to do to make editing actions which use data_template easier to edit is to use service_template instead of service even if I don’t actually use a template for the service name. This prevents the editor from switching to the standard mode, as service_template is only available in YAML mode, so it saves me a click every time I edit the automation.