jhrcook / homebridge-controller

A program to execute custom Homebridge controlling programs.
0 stars 0 forks source link
homebridge raspberrypi rust

Personal Homebridge Controller

A program to execute custom Homebridge controlling programs.

Usage

Locally

For development:

. ./.secrets
RUST_LOG="debug" cargo run -- config.yaml

Deploy on Raspberry Pi

Download the 'compose.yaml' and 'Dockerfile' and run the container in the background:

# Docker files:
wget https://github.com/jhrcook/homebridge-controller/raw/main/Dockerfile
wget https://github.com/jhrcook/homebridge-controller/raw/main/compose.yaml

#> Set the secrets in the "compose.yaml" file.

# Configuration files:
wget https://github.com/jhrcook/homebridge-controller/raw/main/config.json
wget https://github.com/jhrcook/homebridge-controller/raw/main/log4rs.yaml

# Build docker
docker compose up -d

Programs

Global configuration:

Morning Light

Turn the light on gradually in the morning.

Configuration:

Turning off morning light

Turn the light off later in the morning.

Notes

Configuration:

Turning on light in the evening

Turn the light on in the evening.

Notes

Configuration