在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:homebridge/homebridge开源软件地址:https://github.com/homebridge/homebridge开源编程语言:TypeScript 99.7%开源软件介绍:HomebridgeHomebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. It supports Plugins, which are community-contributed modules that provide a basic bridge from HomeKit to various 3rd-party APIs provided by manufacturers of "smart home" devices. Since Siri supports devices added through HomeKit, this means that with Homebridge you can ask Siri to control devices that don't have any support for HomeKit at all. For instance, using just some of the available plugins, you can say:
You can explore all available plugins at the NPM website by searching for the keyword CommunityThe official Homebridge Discord server and Reddit community are where users can discuss Homebridge and ask for help. HomeKit communities can also be found on both Discord and Reddit. InstallationThe Homebridge Wiki contains step-by-step instruction on how to install Node.js and setup Homebridge and the Homebridge UI as a service so it automatically starts on boot:
Adding Homebridge to iOS
If the bridge does not have any accessories yet, you may receive a message saying Additional Set-up Required, this is ok, as you add plugins they will show up in the Home app without the need to pair again (except for Cameras and TVs). Cameras and most TV devices are exposed as separate accessories and each needs to be paired separately. See this wiki article for instructions. Interacting with your DevicesOnce your device has been added to HomeKit, you should be able to tell Siri to control your devices. However, realize that Siri is a cloud service, and iOS may need some time to synchronize your device information with iCloud. One final thing to remember is that Siri will almost always prefer its default phrase handling over HomeKit devices. For instance, if you name your Sonos device "Radio" and try saying "Siri, turn on the Radio" then Siri will probably start playing an iTunes Radio station on your phone. Even if you name it "Sonos" and say "Siri, turn on the Sonos", Siri will probably just launch the Sonos app instead. This is why, for instance, the suggested Plugin DevelopmentThe https://developers.homebridge.io website contains the Homebridge API reference, available service and characteristic types, and plugin examples. The Homebridge Plugin Template project provides a base you can use to create your own platform plugin. There are many existing plugins you can study; you might start with the Homebridge Example Plugins or a plugin that already implements the device type you need. When writing your plugin, you'll want Homebridge to load it from your development directory instead of publishing it to npm link You can undo this using the Then start Homebridge in debug mode: homebridge -D This will start up Homebridge and load your in-development plugin. Note that you can also direct Homebridge to load your configuration from somewhere besides the default homebridge -D -U ~/.homebridge-dev This is very useful when you are already using your development machine to host a "real" Homebridge instance (with all your accessories) that you don't want to disturb. Common IssuesHome App Says Accessory Already AddedTo fix this, Reset Homebridge. My iOS App Can't Find HomebridgeTry the following:
Limitations
Why Homebridge?Technically, the device manufacturers should be the ones implementing the HomeKit API. And I'm sure they will - eventually. When they do, this project will be obsolete, and I hope that happens soon. In the meantime, Homebridge is a fun way to get a taste of the future, for those who just can't bear to wait until "real" HomeKit devices are on the market. CreditHomebridge was originally created by Nick Farina. The original HomeKit API work was done by Khaos Tian in his HAP-NodeJS project. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论