kenhuang / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64 or Raspberry Pi (armhf).
https://hub.docker.com/r/kenhuang/docker-homebridge/
3 stars 1 forks source link

GitHub release Docker Build Status Travis Docker Pulls Slack Status

Docker Homebridge

Features

Quick Start

Step 1

docker run \
  --net=host \
  --name=homebridge \
  -e HOMEBRIDGE_DEBUG=1 \
  -e HOMEBRIDGE_CONFIG_UI=1 \
  -e HOMEBRIDGE_CONFIG_UI_PORT=8888 \
  -e PUID=1000 -e PGID=1000 \
  -e TZ=Pacific/Auckland \
  -e PACKAGES=ffmpeg,openssh \
  -v /homebridge:/homebridge \
  kenhuang/docker-homebridge:latest

docker run \
  --net=host \
  --name=homebridge \
  -e HOMEBRIDGE_DEBUG=1 \
  -e HOMEBRIDGE_CONFIG_UI=1 \
  -e HOMEBRIDGE_CONFIG_UI_PORT=8888 \
  -e PUID=1000 -e PGID=1000 \
  -e TZ=Pacific/Auckland \
  -e PACKAGES=ffmpeg,openssh \
  -v /homebridge:/homebridge \
  kenhuang/docker-homebridge:raspberry-pi  

Step 2

update /homebridge/config.json, sample-config.json

Step 3

restart container

Step 4

add HomeBridge to iOS home app, check container logs get the QR code then add it as accessory in iOS home app

Included plugins

Gear list

Usage

start homebridge container

docker run \
  --net=host \
  --name=homebridge \
  -e PUID=<UID> -e PGID=<GID> \
  -e TZ=<timezone> \
  -v </path/to/config>:/homebridge \
  kenhuang/docker-homebridge

Example:  
docker run \
  --net=host \
  --name=homebridge \
  -e PUID=1000 -e PGID=1000 \
  -e TZ=Pacific/Auckland \
  -v /homebridge:/homebridge \
  kenhuang/docker-homebridge

check homebridge container logs

docker logs -f homebridge

run command in homebridge container

docker exec -it homebridge sh

Configuration

Example config

sample-config.json

Alexa

Say "Alexa discovery devices" after start up the container, it should expose all the lights as Alexa supported devices

Siri

Trigger DoorBell

curl -X POST -d 'ding=dong&dong=ding' http://HOME_BRIDGE_IP:5005

MI IR Remote

for ChuangmiIRPlatform, you will need to find out the following information

Camera

Check tested camera configuration here: https://github.com/KhaosT/homebridge-camera-ffmpeg/wiki/Tested-Configuration

HomeKit Hub