Turn off automations for just one instance of Home Assistant

Hello

I’ve just set up my config files to be in git

I have a dev branch and a master branch

For testing on dev, I’ve spun up another instance of home assistant on my RPI3, my master instance runs on RPI4

Is there a way, without changing the config files (as I need to be able to merge changes from dev to master) to be able to turn off all automations on the dev instance?

call a service from UI? something like

automation.turn_off
  entity_id: all

?

Hi Ahmad

This does work, but was hoping for a more automated way, as this will require me to run it with each restart to the dev instance - which may be many times

Although i wouldn’t be able to do this as a automation on start up, as when I merge to master for the main instance, it would go over also

have you tried? I believe that automations restore their state after HA restart

1 Like

Hello

Yes just restarted and their all now back active

I know you can set an initial state on the automations, but that wouldnt work for my case

Hello

Sorry! My mistake, I disabled them on dev but then checked my master after restarting

They have remained off so will mark your original answer as the solution, thank you!

Cool. You don’t normally need to us initial_state nowadays :wink: