homebridge-gpio-irrigationsystem

This plugin maps GPIO as Valve in HomeKit.

Usage no npm install needed!

<script type="module">
  import homebridgeGpioIrrigationsystem from 'https://cdn.skypack.dev/homebridge-gpio-irrigationsystem';
</script>

README

homebridge-gpio-irrigationsystem

With this plugin you can add GPIO controlled valves to Homebridge as an irrigation system.

GPIO

The GPIO control is done by the library onoff. You have to configure your raspberry pi so that onoff can access the GPIOs. Instructions see GPIO . Depending on the outlet device, you may want to invert the GPIO signal. This can be done in the configuration of each zone / valve.

Settings

Look at config.example.json or use the Homebridge Config UI X Plugin.

Scheduling

A time control for the valves is also included. It is possible to define times at which watering takes place for a certain time. The library cron is used. You can specify hour, minute and dayOfWeek as time pattern to start a zone / valve for a specified duration. See Scheduling Example for details.