Skip to content

valve Device

Erik Baauw edited this page Apr 16, 2021 · 2 revisions

valve Device

A valve 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 Valve service. Through this service, you can control the GPIO output from HomeKit.

The main difference from a Switch is that a Valve turns off automatically after a set duration. You can set this duration from HomeKit. HomeKit also shows the remaining duration.

The valve 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.