zwaldowski / homebridge-satellite-fan

Plugin for homebridge that connects to a Satellite Fan control module: https://www.fan-light.com
MIT License
6 stars 1 forks source link

Homebridge Ceiling Fan

Homebridge plugin that controls a ceiling fan control module made by Satellite Electronic, Ltd. over Bluetooth Low-Energy.

Satellite Fan module

The MR101F module installs into the ceiling fan canopy, substituting the wiring connection between the fan and the house. It also comes with a suprisingly nifty RF remote. The module is rebranded and sold in the US as Harbor Breeze Ceiling Fan Remote Control (Lowe's).

The plugin was designed and tested on Raspberry Pi Zero W.

Prerequisites

# apt install nodejs-legacy npm bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
# setcap cap_net_raw+eip /usr/bin/nodejs

Installation

# npm install -g homebridge homebridge-satellite-fan

Update your configuration to include a satellite-fan accessory. See an example at sample-config.json.

Persistent Installation

See “Running Homebridge on Bootup”.

In condensed form, start with this gist and then:

# mkdir /var/lib/homebridge
# useradd --system homebridge
# usermod -a -G i2c homebridge
# systemctl daemon-reload
# systemctl enable homebridge
# systemctl start homebridge
$ systemctl status homebridge