Using virtual switches as configuration

I currently have two virtual switches that I use as configuration options:

  1. Settings/ChristmasLights
  2. Settings/BatteryPowered

I use these as conditions to essentially enable or disable certain automations. Unfortunately, it seems that they are cloud hosted which means any automation referencing them won’t run locally. Are there any options to do what I do but have the automation run locally?

How did you create the virtual switches?

If they are old you might perhaps have created them before the option of creating local ones became available.

1 Like

I’m using the ‘official’ labs/virtual switch feature.

Are there any other ways to create virtual switches since groove was deprecated?

You can use the ST Advanced Web App, ST CLI, or a community developed Edge driver like vEdge Creator.

1 Like

OK. That lets you create local switches by choosing to register them to a hub, as it puts it.

It actually creates devices of type VIRTUAL using the API. You can also do the same thing using the CLI. You can also use the Advanced Web App by choosing to create a device. You can also use your own choice of tool to make the API call.

There are also other ways of creating local virtual switches with community Edge drivers.

1 Like

Still had it installed!

I added two switches through it and switched to them. It now shows the automations as local. Thank you!