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

SFrost007/homebridge-superlights: Homebridge plugin to expose Superlights bulbs ...

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

开源软件名称:

SFrost007/homebridge-superlights

开源软件地址:

https://github.com/SFrost007/homebridge-superlights

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Homebridge-superlights

Plugin for Homebridge to support the Superlights/Jasgood Bluetooth light bulbs.

Installation

  1. Install Homebridge: npm install -g --unsafe-perm homebridge
  2. Install Noble: npm install -g noble
  3. Install homebridge-superlights: npm install -g homebridge-superlights
  4. Grant Node access to control BluetoothLE discovery: sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
  5. Configure the plugin

See the Homebridge installation section for more details.

Configuration

The configuration for this plugin is relatively straightforward; simply add the Bluetooth address of each lightbulb required as a separate accessory in the Homebridge config.json file:

{
  "bridge": {
    "name": "Raspberry Pi Zero",
    "username": "12:34:56:78:90:AB",
    "port": 51826,
    "pin": "012-34-567"
  },
  "description": "Raspberry Pi Zero Homebridge",

  "accessories": [
    {
      "accessory": "Superlight",
      "name": "Main Bedroom Light",
      "address": "ff:ee:dd:cc:bb:aa",
      "minBrightness": 10
    }
  ]
}

In the above:

  • "bridge" is your standard Homebridge configuration
  • "accessory" must be "Superlight"
  • "address" is the Bluetooth identifier of the bulb
  • "name" is a friendly name for the bulb, used by Homekit
  • "minBrightness" is an optional parameter to limit the minimum brightness sent to the bulb. Some bulbs turn off completely at low (<10%) brightness levels, so setting this parameter will adjust the requested brightness into the "settable" range.

Changelog

0.0.1

  • Initial version

1.0.0

  • Fixed issue where queries before the bulb is connected would cause a crash
  • Fixed issue where we would continue scanning for devices after the bulb is found
  • Fixed issue where incorrect values were returned from GET calls on characteristics
  • Fixed warning about possible memory leak due to multiple 'read' listeners
  • Added more useful debug information in logging messages
  • Added missing instruction to README regarding Node permissions for BLE access

1.0.1

  • Minor revision to remove testing script from package

1.0.2

  • Add config parameter for minimum bulb brightness
  • Minor text fixes



鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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