npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-glue

v3.0.6

Published

Glue Smart Lock integration for Homebridge

Downloads

9

Readme

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