Hello,
I have a piece of code that works fine in the Template editor, returning a value like 06:45:00 but, it gives me an error in te automation: Unable to determine action @ data[0]
I cannot figure out why. The input_datetime helpers are set to Time only, triple checked that.
Can anyone give a hint how to make this work in the automation as well?
Using the latest HA build.
service: input_datetime.set_datetime
metadata: {}
data:
value: "{{ (strptime(states('input_datetime.vw_bathroom_friday_warm'), "%H:%M:%S") -
timedelta(minutes=states('input_number.bathroom_heatingtime_fr')|int)).strftime('%H:%M:%S') }}"
target:
entity_id: input_datetime.test_time_fr
2 posts - 2 participants