Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moritzmhmk/homebridge-rfswitch
control RF outlets with homebridge
https://github.com/moritzmhmk/homebridge-rfswitch
control-rf-outlets homebridge homebridge-plugin
Last synced: 3 months ago
JSON representation
control RF outlets with homebridge
- Host: GitHub
- URL: https://github.com/moritzmhmk/homebridge-rfswitch
- Owner: moritzmhmk
- License: mit
- Created: 2017-01-03T23:20:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-29T17:05:13.000Z (about 5 years ago)
- Last Synced: 2024-11-13T12:45:03.891Z (3 months ago)
- Topics: control-rf-outlets, homebridge, homebridge-plugin
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/jperkin/node-rpio/blob/master/README.md#install).
## Configuration
Configuration sample:
```json
{
"bridge": {...},
"description": "...",
"accessories": [
{
"accessory": "RFSwitch",
"name": "Switch C",
"onCode": "0F00FFF0FF0F",
"offCode": "0F00FFF0FF0F",
}
]
}
```
The `accessory` must be `RFSwitch` and `name` can be anything.Every [rfswitch option](https://github.com/moritzmhmk/node-rfswitch#options) is valid and at least `onCode` and `offCode` must be provided.