Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-delay-switch

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-delay-switch

Delay switches for Homebridge: https://github.com/nfarina/homebridge

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

"Delay Switches" Plugin

Example config.json:

   "accessories": [
       {
         "accessory": "DelaySwitch",
         "name": "DelaySwitch",
         "delay": 5000
       }   
   ]

Why do we need this plugin?

With this plugin, you can create any number of fake switches that will do nothing when turned on (and will automatically turn off after the delay time set in the config, simulating a stateless switch). This can be very useful for advanced automation with HomeKit scenes - when a delayed action is required.

For example, when using smart wall switch (to turn on) and RGB light bulb (to switch color) together on the same scene can cause no action on the bulb since the bulb might not even be on when the command has been sent from homebridge.

I'm using RF wall switches and a MiLight RGBW bulbs with that switch. When coming home, I wish to turn on the switch and change the color of the bulb, using it on the same scene (or even another scene connected with dummy switch) causing the RGB bulb not to change cause the command is faster than the bulb actually turning on. therefore, a delay switch is needed.

Also it can be use with any device that require a certain delay time from other devices (TV + RPi-Kodi / PC + SSH / etc...)

How it works

Basically, all you need to do is:

  1. Set the desired delay time in the config file (in milliseconds).
  2. Use this switch in any scene or automation.
  3. Set an automation to trigger when this switch is turned off - "EVE" app is very recommended to set this automation.

How to install

sudo npm install -g homebridge-delay-switch

Credits

This plugin was forked from and inspired by homebridge-dummy by @nfarina


Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate.

Click here to review more of my plugins.


Keywords

FAQs

Package last updated on 27 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc