Script doesn't run when called from homeassistant.start

Dear All,

I would like to get the following script executed every time Home Assistant starts:

viktors_office_ac_off:
  sequence:
    - service: mqtt.publish
      data:
        topic: "viktak/spiti/viktorsofficeir/cmnd"
        payload: '{"TOYOTOMI_CAR_27PAUN":"off"}'
    - service: timer.finish
      data_template:
        entity_id: timer.hvac_viktors_office

I created this automation:

- alias: HASSIO starting
  description: Request status of switches, lights, etc.
  trigger:
    platform: homeassistant
    event: start
  action:
    - service: telegram_bot.send_message
      data:
        title: "Home Assistant System Message"
        message: "Home Assistant started."

    - service: speedtestdotnet.speedtest

    - service: timer.start
      data:
        entity_id: timer.watchdog_pi_hole
        duration: '00:15:00'

    - service: script.viktors_office_ac_off
    

All the other “services” get activated as expected. The last service call (script.viktors_office_ac_off) doesn’t seem to happen. The order doesn’t seem to matter, I tried different orders but this script is the only one not working.

The script itself works correctly when called from elsewhere, i.e this automation:

- alias: "Switch off office AC after an hour"
  trigger:
    - platform: event
      event_type: timer.finished
      event_data:
        entity_id: timer.hvac_viktors_office
  action:
    - service: script.viktors_office_ac_off

Any idea why it doesn’t work?

Any pointers are greatly appreciated!

Well, it turns out, that another automation had the problem. Once I corrected that, this one started to work as well.