Platform: homeassistant event: start (and the new and improved fast start)

I love it that homeassistant improved the start-up time, but I also have a little issue now… I want to set a certain state when starting up and a condition is met. The problem is (I think) that at start-up that condition might not be set yet (because of the partial loading of components)

Is there a solution?

- alias: "do somthing smart"
  trigger:
    platform: homeassistant
    event: start

  condition:
    - condition: state
      entity_id: switch.smartness
      state: "on"

  action:
    - service: input_select.select_option
      data:
        entity_id: input_select.dumbness
        option: smart
automation:
  - alias: "do somthing smart"
    trigger:
      platform: template
      value_template: "{{ states('sensor.uptime') != '0.0' }}"

    condition:
      - condition: state
        entity_id: switch.smartness
        state: "on"

    action:
      - service: input_select.select_option
        data:
          entity_id: input_select.dumbness
          option: smart

This should trigger 14 mins 24 seconds after HA start

(corrected, I did say 7 mins, but it’s 0.01 of a day )

As I understand it, the homeassistant platform start event only triggers when it has fully started. At least that’s how it seems to work for me, as my automations which use that trigger don’t fire until after the “Home Assistant has started” notification.

1 Like

I’m I do want it to fire asap… I’m going to test it some more

Strange,maybe I need to look at it again.