/homebridge-app-switch

Use Homebridge to open and close apps

Primary LanguageJavaScript

Homebridge App Switch

This is a Homebridge plugin to control open and close applications with the flick of a (virtual) switch.

Installation

This only works on macOS due to the use of node-osascript to turn the applications on & off.

  1. yarn global add homebridge-hermes-player

  2. 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".