
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
homebridge-switchbot-bluetooth-platform
Advanced tools
A Homebridge platform Plugin for controlling SwitchBot bots using BLE (Bluetooth Low Energry)
The Homebridge SwitchBot Bluetooth Platform is a Homebridge plugin
that allows you to directly control your SwitchBot bot device from HomeKit
via BLE (Bluetooth Low Energy).
This plugin aims to provide the best performance and stability when controlling your SwitchBot bot via BLE.
The existing SwitchBot plugins did not provide the level of stability and feature-set that I was looking for.
This plugin aims to provide the best performance (around 30% faster BLE calls than other switchbot plugins), and best stabilty (support for retry mechanism, error handling and device details caching), assuring you that the plugin will stay stable upon usage, and the switchbot will respond as fast as possible.
This plugin also aims to provide several new features, such as support for bot battery status, and password-protected BLE communication.
Supported Devices:
To Be Supported Soon:
homebridge-switchbot-bluetooth-platform
npm install -g homebridge-switchbot-bluetooth-platform
Add a new platform to your homebridge config.json
file
"platforms": [
{
"platform": "SwitchBotBluetoothPlatform",
"name": "SwitchBotBluetoothPlatform"
}
]
under the new platform, add devices
field
"platforms": [
{
"platform": "SwitchBotBluetoothPlatform",
"name": "SwitchBotBluetoothPlatform",
"devices": [
{
"type": "bot",
"name": "Bedroom Bot",
"address": "a4:ee:45:10:fa:5d"
},
{
"type": "bot",
"name": "Living Room Bot",
"address": "c1:fe:61:33:sd:4f",
"scanDuration": 2000,
"scanRetries": 7,
"scanRetryCooldown:": 1000,
}
]
}
]
Upon defining a device in the devices
list, the following properties are available:
Mandatory Properties
name
- Device name. Must be unique (no duplications).type
- Type of device. (currently only bot
is supported).address
- MAC Address of the SwitchBot device. Learn how to find MAC Address.Optional Properties
scanDuration
- Time for scanning bluetooth devices (in miliseconds).
A longer time will increase chance of successfuly detecting new devices, but reduce response time.
Default is 5000
(5000 miliseconds)
scanRetries
- The Number of times that the plugin should attempt scanning for SwitchBot device, before failing.
Default is 5
(5 attempts)
scanRetryCooldown
- Time for waiting between attempts of scanning / connecting to SwitchBot device.
Default is 1000
(1000 miliseconds)
autoTurnOffInPressMode
- Automatically Sets button back to OFF state when bot is configured to be in 'Press' mode (Enabled by default for bots that are set to 'Press' mode)
Default is true
(enabled)
Device Info
BLE MAC
addressaddress
property of the device in the config.json
file (Your configuration)For any questions, assistance or feedback feel free to contact me here
If you want to buy me a coffee, you can do so here: https://paypal.me/galzo1 ♥️
FAQs
A Homebridge platform Plugin for controlling SwitchBot bots using BLE (Bluetooth Low Energry)
The npm package homebridge-switchbot-bluetooth-platform receives a total of 26 weekly downloads. As such, homebridge-switchbot-bluetooth-platform popularity was classified as not popular.
We found that homebridge-switchbot-bluetooth-platform 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.