Run flow on homeassistant restart

You can create a sensor for the HA uptime and use that as trigger for your automation.

- platform: uptime
  name: "HA Runtime"
  unit_of_measurement: minutes