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 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-open-sesame

v0.1.0

Published

n8n trigger node for SESAME smart lock events via AWS IoT MQTT

Downloads

101

Readme

n8n-nodes-open-sesame

A custom n8n trigger node that detects SESAME smart lock (CANDY HOUSE) lock/unlock events in real time.

It subscribes to Sesame device shadow updates via AWS IoT MQTT over WebSocket, enabling instant detection of lock/unlock events.

Installation

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Enter n8n-nodes-open-sesame and click Install

Alternatively, install via CLI:

# In your n8n installation directory
npm install n8n-nodes-open-sesame

Setup

1. Get Your Sesame Device UUID

Open the device settings in the Sesame app and find your UUID.

2. Configure Credentials in n8n

  1. Start n8n
  2. Go to Credentials > New > Sesame API
  3. Enter your device UUID(s) in Device UUID(s) (comma-separated for multiple devices)

3. Create a Workflow

  1. Add a Sesame Trigger node
  2. Select your Sesame API credential
  3. Choose an Event Filter:
    • All Events — both lock and unlock
    • Locked Only — lock events only
    • Unlocked Only — unlock events only
  4. Enable Emit Only On Change to trigger only when the state changes
  5. Connect downstream nodes (Slack, email, etc.)

Output Data

The trigger emits the following data:

{
  "event": "locked",
  "deviceUuid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
  "batteryVoltage": 5.92,
  "batteryPercentage": 95,
  "isBatteryCritical": false,
  "position": 123,
  "target": 0,
  "isInLockRange": true,
  "isInUnlockRange": false,
  "timestamp": "2026-02-09T12:00:00.000Z",
  "raw": {
    "mechst": "e803..."
  }
}

Field Reference

| Field | Type | Description | |---|---|---| | event | "locked" | "unlocked" | Lock state | | deviceUuid | string | Device UUID | | batteryVoltage | number | Battery voltage (V) | | batteryPercentage | number | Battery level (%) | | isBatteryCritical | boolean | Low battery warning | | position | number | Current lock position | | target | number | Target position | | timestamp | string | Event timestamp (ISO 8601) |

Slack Notification Example

Connect Sesame Trigger to a Slack node and use expressions like:

🔐 Sesame Lock Event
Event: {{ $json.event }}
Device: {{ $json.deviceUuid }}
Battery: {{ $json.batteryPercentage }}%
Time: {{ $json.timestamp }}

Testing

MQTT Subscribe Test

You can verify the AWS IoT connection and topic subscription without n8n:

npm install
npx tsx test/subscribe.ts <DEVICE_UUID>

The test runs through the following steps:

  1. Cognito Authentication — obtain temporary credentials
  2. MQTT Connection — WebSocket connection to the AWS IoT endpoint
  3. Topic Subscribe — subscribe to the device shadow topic

After a successful subscription, it enters a message-waiting state. Operating the lock via the Sesame app or physically will display lock state and battery information in real time. Press Ctrl+C to exit.

How It Works

  • Obtains temporary credentials from AWS Cognito Identity Pool (unauthenticated public access)
  • Subscribes to device shadow updates via AWS IoT MQTT over WebSocket
  • Automatically refreshes credentials before expiration
  • Parses the mechst payload to extract lock state and battery information

License

MIT