This Homebridge plugin enables you to control 433mhz Etekcity switchs by a Raspberry Pi.
Clone or download
Christopher
Latest commit 6e9fe08 Jul 24, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs initial commit Dec 31, 2016
.gitignore initial commit Dec 31, 2016
CHANGELOG.md 📝 Updated Changelog Jul 24, 2017
README.md Update README.md Jan 20, 2017
index.js Requested changes Jul 19, 2017
package.json 1.0.3 Jan 20, 2017
sample-config.json initial commit Dec 31, 2016
sample-homebridge initial commit Dec 31, 2016

README.md

Homebridge RC433 Etekcity Plugin

This Homebridge plugin enables you to control 433mhz Etekcity switchs by a Raspberry Pi.

The plugin is based on the idea of FWeinb's rcswitch plugin. The Etekcity switches require a pulse length beside its controlling code given, therefore a basic rc433mhz implementation does not work.

Setup

  1. Wire a 433Mhz RF transmitter and receiver kit to your Raspberry Pi. You can find several instructions on the web (e.g. (German) Click here).

  1. Use wiring-pi and its rf sniffer to record the codes for your switches by launching the programm on your Raspberry Pi and controlling the switches by the remote control. Be aware of the fact that there are several implementations of the 433mhz protocol. The Etekcity switches require those which handle the pulse lenght.

  2. Follow the intstructions to install Homebridge on your Raspberry Pi

  3. Install this plugin

npm i -g homebridge-rc433-etekcity
  1. Rename the sample-config.json to config.json and integrate your switches in the accessories array. The pins of the Raspberry Pi require root rights to control them. Therefore you have to save your config file not in your users directory. Put it under /root/.homebridge/config.json. If you are already running homekit with other apps integrate the accessories switches into your config.json and move your config file to the path above.

  2. If you want to start homebrige as a service atomaticlly when the Raspberry is turned on copy over the file homebridge to /etc/init.d/ on your Raspberry.