Skip to content

legnoh/hap-switch-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hap-switch-cmd

Static Badge Static Badge

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