Automation: how to get a time of THIS start

Inside the automation, I wanna log a time of triggering (or manual start) of this automation.
Tried to use {{this.attributes.last_triggered}} - but seems that it keeps a time of the PREVIOUS start.

Make a variable using now()

Are variables initialized at the start?
Does that mean that my variable VAR=func(some sensor) will keep the value from the automation’s start even if this sensor changed?

Variables are initialized between trigger and conditions.

1 Like