Why this, is it a bug?
Have you sat an initial state for the automation in the config?
Nope, shall I!?
initial_state: True
or ‘on’
??
Then the last state should be restored after restart.
I do not know why that is not working for you.
Any errors in the log?
I will put the initial state, some automation I am glad are off
initial_state: 'on'
or
initial_state: true
?