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

matterbridge-ttlock

v1.1.5

Published

Matterbridge TTlock Plugin

Downloads

14

Readme

Matterbridge TTLock Plugin

A Matterbridge plugin for controlling TTLock smart locks via the TTLock API. This plugin integrates TTLock devices with Luligu's Matterbridge, allowing you to control your TTLock devices through Matter.

Features

  • Discover and control TTLock devices through Matterbridge
  • Lock and unlock TTLock devices
  • Seamless integration with Matter-compatible smart home systems
  • Support for both username/password and access token authentication

Prerequisites

  • Matterbridge installed and running
  • Node.js 18 or higher
  • TTLock account with API access (client ID and client secret)

Installation

# Install the plugin globally
npm install -g matterbridge-ttlock

# Or install a specific version from a local file
npm install -g /path/to/matterbridge-ttlock-1.0.8.tgz

Configuration

Add the following to your Matterbridge configuration file:

{
  "platforms": [
    {
      "platform": "matterbridge-ttlock",
      "ttlock_client_id": "YOUR_TTLOCK_CLIENT_ID",
      "ttlock_client_secret": "YOUR_TTLOCK_CLIENT_SECRET",
      "ttlock_username": "YOUR_TTLOCK_USERNAME",
      "ttlock_password": "YOUR_TTLOCK_PASSWORD"
    }
  ]
}

Alternatively, you can use an access token instead of username/password:

{
  "platforms": [
    {
      "platform": "matterbridge-ttlock",
      "ttlock_client_id": "YOUR_TTLOCK_CLIENT_ID",
      "ttlock_client_secret": "YOUR_TTLOCK_CLIENT_SECRET",
      "ttlock_access_token": "YOUR_TTLOCK_ACCESS_TOKEN"
    }
  ]
}

Configuration Options

| Option | Type | Required | Description | |--------|------|----------|-------------| | ttlock_client_id | String | Yes | Your TTLock API client ID | | ttlock_client_secret | String | Yes | Your TTLock API client secret | | ttlock_username | String | No* | Your TTLock account username | | ttlock_password | String | No* | Your TTLock account password | | ttlock_access_token | String | No* | Your TTLock API access token | | ttlock_api_base_url | String | No | Custom API base URL (defaults to https://api.sciener.com) |

* Either username/password OR access_token must be provided

Usage

After installation and configuration:

  1. Restart Matterbridge
  2. The plugin will automatically discover your TTLock devices
  3. Your TTLock devices will appear as door locks in your Matter-compatible smart home system
  4. You can now control your TTLock devices through Matter

Troubleshooting

Plugin Not Loading

If you encounter issues with the plugin not loading, check the Matterbridge logs for error messages. Common issues include:

  • Incorrect configuration format
  • Missing required configuration parameters
  • Plugin installation issues

Authentication Issues

If the plugin loads but cannot discover devices:

  • Verify your TTLock API credentials
  • Check your internet connection
  • Ensure your TTLock account has API access enabled

Development

Building from Source

# Clone the repository
git clone https://github.com/yourusername/matterbridge-ttlock.git
cd matterbridge-ttlock

# Install dependencies
npm install

# Build the plugin
npm run build

# Create a package
npm pack

License

ISC License - See LICENSE for details.

Changelog

See CHANGELOG.md for release history.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.