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

NovaGL/homebridge-http-advanced: Plugin for Homebridge to connect any device tha ...

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

开源软件名称:

NovaGL/homebridge-http-advanced

开源软件地址:

https://github.com/NovaGL/homebridge-http-advanced

开源编程语言:

JavaScript 100.0%

开源软件介绍:

homebridge-http-advanced

Supports https devices on the HomeBridge Platform and provides a real time polling for getting the "On" and brightness level characteristics to Homekit. Includes Switch, Light, Door, Smoke and Motion sensor polling.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin by cloning this repo.
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

The configuration for this plugin is the same as homebridge-http but includes an additional method to read the power state of the device and the brightness level. Specify the status_url in your config.json that returns the status of the device as an integer (0 = off, 1 = on). Specify the brightnesslvl_url to return the current brighness level as an integer.

Switch handling and brightness handling support 3 methods, yes for polling on app load, realtime for constant polling or no polling

Configuration sample:

"accessories": [ 
   {
   	"accessory": "Http",
   	"name": "Alfresco Lamp",
   	"switchHandling": "realtime",
   	"http_method": "GET",
   	"on_url":      "http://localhost/controller/1700/ON",
   	"off_url":     "http://localhost/controller/1700/OFF",
   	"status_url":  "http://localhost/status/100059",
   	"service": "Light",
   	"brightnessHandling": "yes",
   	"brightness_url":     "http://localhost/controller/1707/%b",
   	"brightnesslvl_url":  "http://localhost/status/100054",
   	"sendimmediately": "",
   	"username" : "",
   	"password" : ""					    
      } 
   ]

Services

Each service shows up as a specific HomeKit device.

Service URL Type Data format Description
Lux brightnesslvl_url JSON: { "lightlevel": 94.00 } Ambient light sensor
Occupancy status_url Integer: 1 or 0 Occupancy Sensor
Motion status_url Integer: 1 or 0 Motion Sensor
Light status_url Integer: 1 or 0 Switch status for the light
Light brightnesslvl_url Integer: 0 to 100 Current brightness percentage for the light



鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
deadphoenix8091/homebrew.space发布时间:2022-06-14
下一篇:
pointlessone/homebrew-rust-nightly发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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