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

aschzero/homebridge-sesame:

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

开源软件名称:

aschzero/homebridge-sesame

开源软件地址:

https://github.com/aschzero/homebridge-sesame

开源编程语言:

TypeScript 98.1%

开源软件介绍:

homebridge-sesame

npm version

Control and monitor your Sesame smart lock with HomeKit integration.

Prerequisites

  • Installation of Homebridge
  • iOS 11 or later
  • Sesame lock with enabled cloud integration
  • Sesame Wifi Access Point

Functionality

  • Automatic discovery of all connected locks
  • Lock control
  • WebHook support
  • Reports battery percentage levels
  • Alerting when battery runs low

Installation

npm install -g homebridge-sesame

Obtain an API Token

This plugin now uses v3 of the Sesame API which requires an existing API token.

To create an API token, log into the Sesame Dashboard and click on "API Settings" in the sidebar. The token you create will be used in your homebridge config file.

Using WebHooks

This plugin can respond to WebHooks sent from the Sesame API which allows locks to update in the background when a lock or unlock action occurs outside of the Home app. Please note this requires the IP address of your homebridge host to be exposed to the outside world via port forwarding, etc.

Setting up the WebHook

  • Log into the Sesame Dashboard and click on "API Settings" in the sidebar.
  • Under "Services", click the edit button next to "Webhook" and select "POST" from the dropdown.
  • Enter the publicly-accessible IP address of your homebridge server and the port used by this plugin (default: 33892). For example: http://<IP address>:33892.

When the plugin receives a WebHook request, the corresponding lock in HomeKit will update its locked state accordingly.

Configuration

Example config

At a minimum, you just need to provide your API token in the token field:

{
  "platforms": [
    {
      "platform": "Sesame",
      "token": "YOUR_API_TOKEN"
    }
  ]
}

The plugin will discover your connected locks when homebridge is restarted.

Fields

Variable Description
token Your Sesame API token (required)
port The port of the WebHook listener (default: 33892)
debug Set to true to enable additional debug logging (default: false)

Example config changing default values

{
  "platforms": [
    {
      "platform": "Sesame",
      "token": "YOUR_API_TOKEN",
      "port": 55901,
      "debug": true
    }
  ]
}



鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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