This is a Homebridge plugin to control open and close applications with the flick of a (virtual) switch.
This only works on macOS due to the use of node-osascript
to turn the applications on & off.
-
yarn global add homebridge-hermes-player
-
Add the following to
~/.homebridge/config.json
:
{
// ...
"accessories": [
// ...
{
"accessory": "AppSwitch",
"name": "VSC",
// This is the actual name of the application shown in macOS
"appName": "Visual Studio Code"
}
]
}
The name
can be whatever you want, but the accessory
must be "AppSwitch"
.