I usually use the speakers in my screen, but I have to switch to my soundsystem for music of watching movies. I have two batch files to do this. This is the one to switch on the edifier:
The last one opening the cast “knop” in a separate instance of Firefox.
It would be nice if I somehow could see that the switch would toggle and then close the window by itself. Even better would be to use a scripting tool or “Microsoft Internet Controls” (ieframe.dll) to accomplish this.
Have you ever tried the eWeLink keyboard shortcuts?
if you are on a PC, you can press the hot keys to control devices with eWeLink keyboard shortcuts https://keyboard.ewelink.cn/
what about webhook? you can create a webhook scene and paste the webhook link into a txt file (like curl http//:xxx )then name it like webhook.bat to make it a batch file, run the file and your scene/automation will be excuted.