homebridge-rcswitch-gpiomem
v1.1.4
Published
Siri / HomeKit control of RF switches by way of homebridge. Fork of https://github.com/FWeinb/homebridge-rcswitch
Downloads
10
Maintainers
Readme
homebridge-rcswitch-gpiomem
http://n8henrie.com/2015/12/control-an-rf-outlet-with-siri-via-homebridge
Control RF outlets with HomeKit / Siri using rcswitch-gpiomem
Installation
- Install WiringPi
- Install homebridge:
npm install -g homebridge
- Install homebridge-rcswitch-gpiomem:
npm install --global homebridge-rcswitch-gpiomem
- Update your configuration file.
Configuration
See sample-config.json
Either onCode
and offCode
or systemcode
and unitcode
are required.
My switches use on and off codes, so that's what I recommend and all I can
really help with.
accessory
: Must beRCSwitch
(case sensitive)name
:: string :: What you want to call the switch. Keep in mind that Siri will prefer anything other than your homebridge switch if there's any confusion, so name it something uniqueonCode
,offCode
:: int or string- If int: Decimal RF code to turn switch on / off
- If string: Binary RF code to turn switch on / off
systemcode
:: string :: RF system code. I don't use this, please refer to other docs.unitcode
:: int :: RF unit code. I don't use this, please refer to other docs.pin
:: int, optional :: BCM pin connected to 433 mhz transmitter, defaults to17
pulseLength
:: int, optional :: RF pulse length, defaults to190
bitLength
:: int, optional :: bit length of RF code, only used if using decimal RF code, defaults to24
repeats
:: int, optional :: Number of times to repeat the transmission of the code, defaults to 10 (as per the original rcswitch code)
Changelog
20160727 :: 1.1.3
- Move
setRepeatTransmit
to just before callingswitchOn()
to facilitate multiple switches with different desired repeat counts
20160727 :: 1.1.2
- Move
setPulseLength
from initialization to just before callingswitchOn()
to facilitate multiple switches with different pulse lengths (closes #2).