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-delayed-switches

v0.8.2

Published

A platform for delayed switches for HomeKit via Homebridge

Downloads

4

Readme

Update

A better implementation of this can be found at homebridge-automation-switches. I'm keeping this around for those that might want to keep using this.

Delayed Switch Platform

A platform that provides configurable, auto reseting delayed switches. This platform can be created to provide time delayed responses in HomeKit rules.

Why do we need this plugin?

HomeKit (as of iOS 11.1) does not provide a capability to delay the execution of rules. This platform provides delayed switches that can be used to build a set of rules that are delayed in execution by the run time duration of the switch.

In addition to the basic delay functionality, the delay itself can also be modified in rules to change the delay duration depending on external factors.

Installation instructions

After Homebridge has been installed:

sudo npm install -g homebridge-delayed-switches

Example config.json:

{
 "bridge": {
     ...
 },
 "platforms": [
   {
     "platform": "DelayedSwitches",
     "switches": [
       {
         "name": "Delayed Switch #1",
         "defaultDelay": 1800
       }
     ]
   }
 ]
}

The platform can provide any number of switches that have to be predefined in the homebridge config.json. Each switch supports the following attributes:

| Attributes | Usage | |------------|-------| | name | A unique name for the switch. Will be used as the accessory name. | | defaultDelay | The default delay of the switch in seconds. |

Accessory Services

Each delayed switch will expose two services:

  • Accessory Information Service
  • Switch Service

Accessory Switch Service Characteristics

The exposed switch service supports the following characteristics:

| Characteristic | UUID | Permissions | Usage | |---|---|---|---| | On | 00000025-0000-1000-8000-0026BB765291 | READ, WRITE, NOTIFY | Enables the delayed switch. After the delay expires this characteristic will be switched off. | | Delay | B469181F-D796-46B4-8D99-5FBE4BA9DC9C | READ, WRITE, NOTIFY | The delay of the switch in seconds. This value can be changed between 1s and 3600s. A change will only take effect the next time the switch is turned on. |

Supported clients

This platform and the delayed switches it creates have been verified to work with the Elgato Eve app.

Credits

This plugin was initially forked from and inspired by homebridge-delay-switch by @nitaybz