Hi,
I am just a few days into HA on a new install (2020.12 then) and I need some pointers on how to make a template that takes 2 hours from a time (input_datetime) entity and sets a different entity to the result of the computation.
This is what I thought would work:
service: input_datetime.set_datetime
data:
time: >
{{ input_datetime.nar_ska_bilen_vara_uppvarmd_imorgon - timedelta( hours =
1, minutes = 0 ) }}
entity_id: input_datetime.gomd_nar_ska_motorvarmaren_faktiskt_starta
The error message I get says:
Error executing script. Unexpected error for call_service at pos 1: Error rendering data template:
UndefinedError: ‘input_datetime’ is undefined. While executing automation automation.ny_automation
I appreciate all the help I could get on this (probably something silly is wrong,.,)