hap-switch-cmd

This app provides homekit virtual switch devices executing local commands.
Usage
Install, init, and start. That's it !
All configs are provided from ~/.hap-switch-command/config.yml
file.
Create a configuration file with the following command and edit it.
macOS
# install
brew install legnoh/etc/hap-switch-command
# init & edit
hap-switch-command init
vi ~/.hap-switch-command/config.yml
# start
brew services start hap-switch-command
Docker
Warning
This app does not work when running in Docker for Mac or Docker for Windows due to this and this.
# pull
docker pull ghcr.io/legnoh/hap-switch-command
# init
docker run \
-v .:/root/.hap-switch-command/ \
ghcr.io/legnoh/hap-switch-command init
# edit
vi config.yml
# start
docker run \
--network host \
-v "./config.yml:/root/.hap-switch-command/config.yml" \
ghcr.io/legnoh/hap-switch-command