Hello,
I want to trigger an automation at specified times. These times are calculated from template sensors. But I cannot find the right formatting to feed them in the time trigger:
platform: time
at: "{{ (as_timestamp(states('sensor.sun_next_rising')) - (states('sensor.calculatedoffset1')|float(0)/2))|int | timestamp_custom('%H:%M:%S') }}"
The error I receive is:
Message malformed: Expected HH:MM, HH:MM:SS or Entity ID with domain ‘input_datetime’ or ‘sensor’ @ data[‘at’][0]
I tried with and without “”
If I use a template trigger where I compare the value above with output of now(function) I think I will put to much load on the HA server because it will have to run the comparison at every second.