modulepackage
0.0.0-20241212001913-e0edc4a9ff35
Repository: https://github.com/legnoh/hap-switch-command.git
Documentation: pkg.go.dev
# README
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.
- Config sample:
sample/configs.yml
.
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
# Packages
No description provided by the author