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
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).
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.
Follow the intstructions to install Homebridge on your Raspberry Pi
Install this plugin
npm i -g homebridge-rc433-etekcity
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.
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.
请发表评论