Possible to set an automation to disabled by default?

Hi,
I currently have an automation configured to turn on the lights when I arrive home. When I reboot my raspberry pi it “enables” that function by default. is there any why of disabling the “state” of this blue bar so its gray and disabled by default?

thanks!

Yes, take a look here:
You have to use initial_state: (true or false) in order to get the automation enabled or disabled by default.

# Example configuration.yaml entry
automation:
  alias: Turn on light when sun sets
  initial_state: true
  hide_entity: false
  trigger:
    platform: sun
    event: sunset
  action:
    service: light.turn_on
11 Likes

thanks m8!