I have 3 datetime helpers, 2 are defined and changed rarely but one changes daily.
I wish to compare the daily changing helper against the other 2 and then trigger a number of automations to run based on the result.
So far…
- The result from initial calculation I’m planning on storing in a 4th datetime helper so it can be used as a trigger.
- I have converted the datetime helpers to timestamps so I have 3 numbers, I’m trying to store these as variables but no success, surely I do not need to store the results in 3 numeric helpers ?
{{state_attr('input_datetime.sunset_next','timestamp')}}
Above takes the time and changes to a timestamp, using this to try and create a variable or a number helper generates an error on the comma so am unable to use.