
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-timer
Advanced tools
A way of adding timers into homebridge if built-in functionality doesn't exist
A timer component that exposes two motion sensors and a lightbulb that can start the timer.
First and foremost, the timer on this is pretty slick. Just turn on the the lightbulb and watch the brightness decrease as the timer goes. The "start" motion sensor goes off at the beginning of a timer and the "end" motion sensor goes off at the end of the timer.
The "active" time of day field describes when the motion sensors added by each timer can possibly go active. The times defined are inclusive and so with the below config, the motion sensors will activate between the hours of 10 PM and 6 AM. Outside of those hours, the timer will still count down, but the motion sensors will not active, allowing your automations to not have to take this into account. The library will automatically figure out whether the time period spans across two days. Not including the active field will just default to always being active.
Your config for this should look like:
{
"platforms": [
{
"platform" : "Timer",
"timers": [
{
"name": "Front Porch Light",
"seconds": 300,
"active": {
"start": "22:00",
"end": "06:00"
}
},
{
"name": "Sprinkler Zone 1",
"seconds": 600
]
}
]
}
To run this in dev mode, first install babel, then do:
npm install
npm run build # in its own terminal
homebridge -D -P /path/to/this/plugin
FAQs
A way of adding timers into homebridge if built-in functionality doesn't exist
We found that homebridge-timer 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.