light Device - ebaauw/homebridge-rpi GitHub Wiki
light Device
A light device exposes a PWM light connected to a GPIO pin.
Homebridge RPi configures the GPIO pin for output.
Currently, Homebridge RPi is hard-coded to use pigpiod's default frequency and range for PWM.
The device is exposed as a separate HomeKit accessory, with a Lightbulb service. Through this service, you can control the brightness from HomeKit.
The light device uses the following config.json keys:
| key | type | Description |
|---|---|---|
name |
string | The name for the device in HomeKit. |
gpio |
integer | The GPIO pin. |