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

plasticrake/homebridge-real-fake-garage-doors: Garage Door plugin for Homebridge

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

开源软件名称:

plasticrake/homebridge-real-fake-garage-doors

开源软件地址:

https://github.com/plasticrake/homebridge-real-fake-garage-doors

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-real-fake-garage-doors

NPM Version js-semistandard-style

Garage Door Opener plugin for Homebridge.

This is the Homebridge portion of my Real Fake Garage Doors project. The hardware portion of this project is RealFakeGarageDoors.

I opened a Linear Multi-Code 412001 garage door remote and attached an ESP8266 to trigger it to open the garage door. Since the ESP8266 doesn't have an easy way to encrypt traffic as a server I'm using SHA256-HMAC to send authenticated commands to the ESP8266.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-real-fake-garage-doors
  3. Update your configuration file. See the sample below.

Updating

  • npm update -g homebridge-real-fake-garage-doors

Configuration

key: SHA256-HMAC key that should match the key on the receiving microcontroller.

openCommand: Command to send to open the door.

closeAfter: (seconds) Set TargetDoorState to CLOSED after this many seconds.

simulateTimeOpening / simulateTimeOpen / simulateTimeClosing: (seconds) Since our controller is "dumb" we have no way of knowing the actual state of the door. So when we trigger the open command we simulate by changing the door CurrentDoorState to OPENING, OPEN, CLOSING, and CLOSED.

Sample Configuration

"accessories": [{
  "accessory": "RealFakeGarageDoorsAccessory",
  "name": "My Real Fake Garage Door",

  "host": "localhost",
  "port": 3893,

  "key": "wubbalubbadubdub",
  "openCommand": 2,
  "closeAfter": 28,
  "simulateTimeOpening": 13,
  "simulateTimeOpen": 15,
  "simulateTimeClosing": 12
}]



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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