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.

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

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

3 Likes

Thanks! I’ll try this

Tried this and can confirm that it works. Thanks!