ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

Support for Port Expander #57

Closed Frank-Friemel closed 4 years ago

Frank-Friemel commented 4 years ago

Just an idea: pin count of the raspi gpio port is very limited. The PCF8574 is a popular port expander with an I2C interface. It would be great if your homebridge plugin could forward this device. The config could then look like this:

{ "device": "light", "name": "Light", "gpio": { "PCF8574": 0, "port": 0 } }

Where "PCF8574" defines the bus address (up to 8 PCF8574 devices can be addressed) and "port" defines the port number of the addressed PCF8574

ebaauw commented 4 years ago

Sorry, I have no experience with SPI and I don't have the port expander.