-
-
Notifications
You must be signed in to change notification settings - Fork 19
garage Device
Erik Baauw edited this page Jul 22, 2023
·
1 revision
A garage
device exposes any switchable on/off device connected to a GPIO pin, like a relay, LED, or fan.
Homebridge RPi configures the GPIO pin for output.
Homebridge RPi configures pigpiod
to send real-time notifications when the GPIO state changes.
The device is exposed as a separate HomeKit accessory, with a Garage Door Opener service. Through setting Target Door State, you can control the GPIO output from HomeKit. Current Door State is updated automatically to Openening or Closing when setting Target Door State. After 5000ms, it changes to Open or Closed, matching the Target Door State.
The garage
device uses the following config.json keys:
key | type | Description |
---|---|---|
name |
string | The name for the device in HomeKit. |
gpio |
integer | The GPIO pin. |
reversed |
boolean | The device state is reversed, i.e. set or report the garage door as open when the GPIO state is low instead of high. |