Enable Flux by default on startup?

Right now every time I restart home-assistant I need to turn on the Flux switch, is there any way to have it on by default?

By automation.

- action:
  - data:
      entity_id: switch.flux
    service: switch.turn_on
  alias: enable flux on platform start
  - event: start
    platform: homeassistant

Flux should use an entity names switch.flux, you better check and adjust this if required.


Thanks! I’ll try this

Tried this and can confirm that it works. Thanks!