项目作者: moritzmhmk

项目描述 :
control RF outlets with homebridge
高级语言: JavaScript
项目地址: git://github.com/moritzmhmk/homebridge-rfswitch.git
创建时间: 2017-01-03T23:20:22Z
项目社区:https://github.com/moritzmhmk/homebridge-rfswitch

开源协议:MIT License

下载


homebridge-rfswitch

control RF outlets with homebridge

Installation

  1. Install homebridge: npm install -g homebridge
  2. Install homebridge-rfswitch: npm install -g homebridge-rfswitch
  3. Update your config.json

Make sure that /dev/gpiomem exists and is writeable by you (usually by adding yourself to the gpio group).

If /dev/gpiomem exists but is not owned by the group gpio (e.g. on Arch Linux) see here.

Configuration

Configuration sample:

  1. {
  2. "bridge": {...},
  3. "description": "...",
  4. "accessories": [
  5. {
  6. "accessory": "RFSwitch",
  7. "name": "Switch C",
  8. "onCode": "0F00FFF0FF0F",
  9. "offCode": "0F00FFF0FF0F",
  10. }
  11. ]
  12. }

The accessory must be RFSwitch and name can be anything.

Every rfswitch option is valid and at least onCode and offCode must be provided.