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

jeppesens/homebridge-glue: Homebridge plugin for Glue

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

开源软件名称:

jeppesens/homebridge-glue

开源软件地址:

https://github.com/jeppesens/homebridge-glue

开源编程语言:

TypeScript 69.6%

开源软件介绍:

homebridge-glue

Homebridge integration for Glue smart locks

Based on Glues new API Jan 2021.

Installation

install npm i -g homebridge-glue


Setup

Getting an API key is recommended because then you don't have to have username and password in the config.

# get an api key
curl --request POST 'https://user-api.gluehome.com/v1/api-keys' \
--header 'Content-Type: application/json' \
-u [email protected]:my_password \
--data-raw '{
    "name": "Homebridge Glue Key",
    "scopes": ["events.read", "locks.read", "locks.write"]
}'

# And copy the apiKey property for config

Configuration

config.json example

{
  ...
  "accessories": [
    ...
    {
      "accessory": "homebridge-glue.glue-lock",
      "name": "Front Door Lock", //OPTIONAL, default "Glue Lock"
      "lock-id": "432c7f7a-ea53-11e8-9f32-f2801f1b9fd1", // OPTIONAL
      "username": "[email protected]", // OPTIONAL, see below for more info
      "password": "EB1K^M0zBN2vRFK6", // OPTIONAL, see below for more info
      "api-key": "the api key from curl" // OPTIONAL
    }
  ]
}

Selecting Lock

If lock-id is undefined it will select the first available lock. If you only have one lock it will work without configuration. I you have more than one, please check the logs for the available lock ids.


Events

Glue have events that. This plugin checks those events every 5 seconds and updates the status accordingly.

Keep in mind that manually locking or unlocking the the normal Glue lock doesn't trigger an event unless you have the Pro version.


Good to know

If you do not use an api key this plugin will create and attempt to manage those keys for you instead. So it will create API keys with name homebridge-glue key and when restarting Homebridge it will delete all old keys with name homebridge-glue key.

A side effect of this is that you can only have ONE lock with this plugin if you opt for username and password solution!


Homebridge

https://github.com/nfarina/homebridge


Glue Smart Lock

https://www.gluehome.com




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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