• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Sunoo/homebridge-rpi-rf-switch: rpi-rf Plugin for Homebridge

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Sunoo/homebridge-rpi-rf-switch

开源软件地址:

https://github.com/Sunoo/homebridge-rpi-rf-switch

开源编程语言:

TypeScript 73.0%

开源软件介绍:

homebridge-rpi-rf-switch

npm npm verified-by-homebridge

rpi-rf Plugin for Homebridge

This plugin allows you to send 433MHz RF commands via HomeKit. I had no luck getting anything other than rpi-rf to communicate with my hardware. There are other plugins though, try those if this doesn't work for you.

Installation

  1. Install Homebridge using the official instructions.
  2. Install pip using sudo apt install python3-dev python3-pip.
  3. Install rpi-rf using sudo pip3 install rpi-rf.
  4. Install this plugin using sudo npm install -g homebridge-rpi-rf-switch --unsafe-perm.
  5. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [{
    "platform": "rfSwitch",
    "name": "RF Switch",
    "devices": [{
        "name" : "Outlet 1",
        "on_code": 999988851,
        "off_code": 999989622
    }, {
        "name" : "Outlet 2",
        "on_code":  379952729,
        "off_code": 379953500
    }]
}]
Fields Description Required
platform Must always be rfSwitch. Yes
name For logging purposes. No
gpio The BCM number of the pin your RF transmitter is connected to. (Default: 17) No
repeat RF code repeat cycles. (Default: 10) No
devices Array of switch config (multiple switches supported). Yes
|- name Name of your device. Yes
|- on_code RF code to turn on your device. Yes
|- off_code RF code to turn off your device. Yes
|- pulselength RF code pulse length. (Default: 350) No
|- protocol RF code protocol. (Default: 1) No
|- codelength RF code length. (Default: 24) No

Note on Getting RF Codes

I've had the best luck with RFSniffer from the 433Utils project. Your mileage may vary.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
homebridge/homebridge.io: The https://homebridge.io website.发布时间:2022-06-14
下一篇:
JokerSun/homebrew-my发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap