All automations on this side use initial_state: on if really needed and no chances are taken any system error will frustrate restore_state to take care of the automations setting.
iow, @TEDSv doesn’t need to set it to true, and ‘on’ should be perfectly fine.
Sorry to resurrect this old thread, but it resolved a problem I was having with the “for:” part of a trigger, but there may be an easier way.
I tried the solution @Mariusthvdb posted, adding minutes: and seconds:. Then I went into the GUI automation editor to see how it looked there. The editor changed it to one line:
for: '1:00:00'
That seems a lot easier than four lines. I posted this in case someone else missed that syntax in the documentation, but will find this thread, as I did.