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

homebridge-smartthings-routines

v0.1.0

Published

A homebridge implementation to trigger SmartThings routines

Readme

homebridge-smartthings-routine-triggers

A modified version of arcreative's homebridge-smartthings-routine to work even after recent API Changes. This is a little plugin to trigger SmartThings routines from Homebridge. The original script has been modified to automatically turn the Homekit switch back off after the delay period set in config.

Installation

  1. npm install -g ajvwhite/homebridge-smartthings-routines
  2. Install the homebridge-routine-triggers.groovy SmartApp in the API portal: European API Portal: SmartThings EU API Portal US API Portal: SmartThings Main API Portal (NOTE: If outside of Europe Replace instances of graph-eu01-euwest1.api.smartthings.com with graph.api.smartthings.com in homebridge-routine-triggers.groovy before adding.)
  3. Ensure when adding, to enable OAuth in the SmartApp configuration
  4. Save and Publish the app for your own account
  5. In the SmartThings app on your mobile device add the SmartApp by going to Marketplace > SmartApps > My Apps and selecting "Homebridge Routine Triggers"
  6. You will need to fetch the accesory config to place in your homebridge config from the newly installed SmartApp and place it in your homebridge config.json file
  7. For the script to work properly, add Delay into config.json as per the example below.
  8. Restart homebridge for it to pick up the routine triggers
  9. NOTE: If you add, modify or remove any routine you will need to update the config as per 6

config.json

{
      "accessory": "HomebridgeRoutineTrigger",
      "name": "from SmartApp",
      "smartAppId": "copy from SmartApp",
      "accessToken": "from SmartApp",
      "appServerUri": "from SmartApp",
      "delay": 500 //millisecond delay before Homekit switch auto turn off
  }

Usage

Just say "Turn [on] [routine name]" to trigger the routine. There is actually no "off" state to a routine and so will have no effect other than update it's status with HomeKit.

Credits

Credit to ajvwhite for providing most of the core index.js, and nitaybz for code extracts from homebridge-delay-switch.

Credit to jnewland for the original HelloHomeBridge.groovy file that HomebridgeRoutineTrigger.groovy is based on.

In addition thank you to arcreative for the original homebridge-smartthings-routine that this project is created from.