I'm trying to find how to gather the ON DTS and then add variable period of time to calculate the Off time.
Below has been working while time = UTC , but following clock changes the calculation for Off is before the On time.
I don't believe it should be complicated but searching is not giving me the answer.
-
action: input_datetime.set_datetime
target:
entity_id: input_datetime.water_boiler_off
data:
time: >-
{{ (now().timestamp()+ state_attr('input_datetime.water','timestamp')) | timestamp_custom('%H:%M',false)}}