在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:zizi4n5/homebridge-switchbot-for-mac开源软件地址:https://github.com/zizi4n5/homebridge-switchbot-for-mac开源编程语言:TypeScript 88.9%开源软件介绍:Homebridge SwitchBotHomebridge SwitchBot is plugin for Homebridge that allows you to manage SwitchBot (the Bot) like a switch accessory on the Home app. Supported SwitchBot devicesSupported OS versionsmacOS
Big SurSet to manually grant Bluetooth access in System Preferences UI for Raspbian(Linux-based OS)
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev If @abandonware/noble is installed properly, this module might work well on other Linux-based OSes, such as Ubuntu, Debian and so on. See the document of the @abandonware/noble for details. Dependencies
InstallationInstall the npm package: sudo npm install -g --unsafe-perm homebridge-switchbot-for-mac How to UseFind your SwitchBot's MAC address (BLE MAC) with the official iOS/Android app, and add an accessory definition to e.g. Use one SwitchBot{
"accessories": [
{
"accessory": "SwitchBot-For-Mac",
"name": "Switch",
"delay": 5000,
"retries": 3,
"macAddress": "01:23:45:67:89:AB",
"ping": {
"ipAddress": "127.0.0.1",
"interval": 2000,
"retries": 1,
"timeout": 1000
}
}
]
} e.g. Use two SwitchBots{
"accessories": [
{
"accessory": "SwitchBot-For-Mac",
"name": "Switch",
"delay": 5000,
"retries": 3,
"on": {
"macAddress": "CD:E0:12:34:56:78"
},
"off": {
"macAddress": "9A:BC:DE:01:23:45"
},
"ping": {
"ipAddress": "127.0.0.1",
"interval": 2000,
"retries": 1,
"timeout": 1000
}
}
]
} Settings
Use one SwitchBot SettingsSettings for switching on/off using one SwitchBot.
Use two SwitchBots SettingsSettings for switching on/off using two SwitchBots.
Advanced - Ping SettingsSettings for update the status with ping communication.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论