A program to execute custom Homebridge controlling programs.
For development:
. ./.secrets
RUST_LOG="debug" cargo run -- config.yaml
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
Global configuration:
timezome
: number of hours after GMTip_addess
: Homebridge IP addressTurn the light on gradually in the morning.
Configuration:
start
: time to start the sequenceduration
: duration of fading-in brightness processfinal_brightness
: maximum brightnessstart_hue
: starting color huefinal_hue
: final color hueactive
: whether or not this process is activeTurn the light off later in the morning.
Notes
Configuration:
off_time
: time to turn the lights off in the morningduration
: duration of the dimming processactive
: whether or not this process is activeTurn the light on in the evening.
Notes
Configuration
hours_before_sunset_start
: number of hours before official sunset to start the sequencestart_brightness
: starting brightnessmax_brightness
: maximum brightnessfinal_brightness
: final brightnesshours_after_sunset_end
: number of hours after sunset to finishactive
: whether or not this process is active