Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@switchbot/homebridge-switchbot-ble
Advanced tools
Homebridge integration for SwitchBot BLE series products
The @switchbot/homebridge-switchbot-ble is a nodejs module , and also a homebridge plug-in that directly controls SwitchBot products via BLE.
Now supports:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
See the document of the @abandonware/noble for other operating systems details.
sudo npm install -g @switchbot/homebridge-switchbot-ble
You can also install it on the homebridge plugins page.
Add this to your homebridge config.json
file
"platforms": [
{
"platform": "SwitchBotPlatform",
"name": "SwitchBotPlatform"
}
]
If it work, add devices.
"platforms": [
{
"platform": "SwitchBotPlatform",
"name": "SwitchBotPlatform",
"devices": [
{
"type": "bot",
"name": "Bot 2c",
"bleMac": "d4:cc:43:97:ae:2c"
},
{
"type": "bot",
"name": "Bot 51",
"bleMac": "e7:4d:36:cf:9e:51",
"scanDuration": 2000
},
{
"type": "curtain",
"name": "Curtain 11",
"bleMac": "ec:58:c5:d0:01:11",
"scanDuration": 2000,
"reverseDir": false,
"moveTime": 2000
},
{
"type": "meter",
"name": "Meter 84",
"bleMac": "d0:d5:64:14:43:84",
"scanDuration": 5000,
"scanInterval": 60000
}
]
}
]
Requird Settings
devices
- SwitchBot devices list.type
- Device type. Currently supports bot
, curtain
and meter
.name
- Device name.bleMac
- Device MAC address. You can find it in App settings.Optional Settings
scanDuration
- Scan timeout. BLE Central must first scan the advertising. Default is 1000
(unit: ms). Longer time to ensure device discovery but slower response.reverseDir
- Set to true
to exchange the "opened" and "closed" directions of Curtain after calibration. Default is false
. So you can swap the directions without recalibration.moveTime
- Set the actual running time of Curtain, which is also the time to switch from running state to opened/closed state in the Home APP. Default is 2000
(unit: ms).scanInterval
60000
(unit: ms).60000
(unit: ms) when idle.openCloseThreshold
- Set the threshold before/after which the curtain is reported as fully open/closed to HomeKit. Default is 5
, so any position under 5% is reported as fully open and above 95% as fully closed.Please note that:
name
cannot be the same.FAQs
Homebridge integration for SwitchBot BLE series products
The npm package @switchbot/homebridge-switchbot-ble receives a total of 7 weekly downloads. As such, @switchbot/homebridge-switchbot-ble popularity was classified as not popular.
We found that @switchbot/homebridge-switchbot-ble demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.