
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
homebridge-plugin-command
Advanced tools
This Homebridge plugin enables you to create virtual switches that can run any custom command when it is turned on or off.
This Homebridge plugin enables you to create virtual switches that can run any custom command when it is turned on or off.
Under Plugins > Homebridge Plugin Command > Settings, add an accessory and fill in the form!
By default, check_status
assumes turned on if the exit code of the command is 0. Set invert_status
to true to flip it.
check_status
command is optional, and if not provided, it just alternates as you turn it on and off. You can enable polling the check status and automatically pushing the change by setting the poll_check
to number of seconds or in this format 1d2h3m4s
.
If you like a JSON config, see the sample below.
{
"accessory": "Command Accessory",
"name": "File switch",
"turn_on": "touch /tmp/testFile",
"turn_off": "rm /tmp/testFile",
"check_status": "ls /tmp/testFile",
"poll_check": "5",
"invert_status": false
}
FAQs
This Homebridge plugin enables you to create virtual switches that can run any custom command when it is turned on or off.
The npm package homebridge-plugin-command receives a total of 0 weekly downloads. As such, homebridge-plugin-command popularity was classified as not popular.
We found that homebridge-plugin-command demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.