Skip to content

YPyltiai/homebridge-dummy-cmd-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dummy Switch to Run Command Line Commands

A Homebridge plugin that allows you to create momentary switches executing custom command line commands.

Features

  • Executes a command line command when switch is triggered.
  • Stateless: switch will automatically revert back to its original "off" state, mimicking a button behavior.
  • Easy configuration via Homebridge UI.

Installation

sudo npm install -g homebridge-dummy-cmd-switch

Example Configuration

Can be configured via Homebridge UI or config.json:

{
  "accessories": [
    {
      "accessory": "DummyCmdSwitch",
      "name": "Server Reboot Switch",
      "commandOn": "sleep 5 && pkill -15 homebridge"
    }
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published