Pool sensor plugin for HomeBridge for Raspberry Pi with PiFace board.
This plugin is suitable for any digital temperature sensor interfaced with a PiFace Digital board.
This code is adapted from homebridge-garage-piface
Before installing this plug-in, you need:
- Download, build and install the C libraries:
sudo apt-get install automake libtool git
git clone https://github.com/thomasmacpherson/piface.git
cd piface/c
./autogen.sh && ./configure && make && sudo make install
sudo ldconfig
cd ../scripts
sudo ./spidev-setup
- Activate SPI
sudo raspi-config
-> Interfacing Options -> Enable SPI
npm -g install homebridge-pool-sensor-piface
config.json
"accessories": [
{
"accessory": "PoolPiFace",
"name": "Pool",
"refresh": 60 // optional
}
]