資料介紹
軟件簡介
homebridge-examples
This repo bundles some example implementations for homebridge plugins. They provide some example code to get started with. They are also published on npm like regular plugins, so you can easily run them in your local homebridge instance. Refer to the respective package.json
for the plugin name and install them as usual.
The examples are all written in Typescript and thus require at least homebridge v1.0.0
.
To build a plugin run the following commands in the respective plugin directory.
Run this command once to install all dependencies required by the plugin:
npm install
After that run the following command to compile the Typescript files into Javascript (repeat this step every time you change something in the code).
npm run build
If you need inspiration for a plugin written in Javascript you can just run the above commands and look at the generated Javascript code located in the ./dist
folder. You may need to ignore some code at the beginning of the file generated by the Typescript compiler.
Examples for different homebridge plugin types
Accessory Plugins
Accessory plugins are the most basic and simplest plugins for homebridge. They should be used if you only want to expose a single accessory and don't require any special functionality.
- Accessory Plugin: A simple Switch accessory.
Platform Plugins:
Platform plugins are able to expose multiple accessories. Additionally, they are required if you want to use the Controller API.
- Static Platform Plugin: Static platforms know which accessories they want to expose on start up. The set of accessories cannot change over the lifespan of the plugin.
- Dynamic Platform Plugin: Dynamic platforms can dynamically add or remove accessories at runtime. Accessories are fully stored to disk by homebridge, and the exact state is reconstructed on a reboot. The plugin can store additional context as well.
- Independent Platform Plugin: Independent platforms are typically used when the platform intends to only expose external accessories or provides other functionality while not exposing an accessory at all.
Other example plugins
- 軟件示例:DA1468x 示例設置
- Homebridge插件集成Shinobi
- 用于Away的homebridge插件
- Homebridge的Loxone插件
- homebridge-smartthings SmartThings插件
- homebridge miio平臺插件
- 熱門的homebridge插件列表
- Homebridge GPIO WiringPi平臺插件
- 《我和 LabVIEW》示例程序分享 18次下載
- 基于多值輸入多示例學習的頸椎健康狀態評估 4次下載
- 機器學習必學的Python代碼示例集 14次下載
- F2812控制板結構圖示例 8次下載
- ChipScope使用示例 7次下載
- ZWG系列本地配置示例
- 應用電路示例 pdf
- 編寫高效Testbench的指南和示例 345次閱讀
- 什么是守護線程?守護線程的底層原理和使用示例 1463次閱讀
- AMD Versal系列CIPS IP核建立示例工程 697次閱讀
- TIA博途分配設備名稱示例 4342次閱讀
- 移動數據的編程示例 1463次閱讀
- MATLAB中特殊圖形的繪制示例 914次閱讀
- 大型西門子PLC程序結構示例 1372次閱讀
- 如何對挑選出的demonstration示例進行排序 597次閱讀
- Linux中的18個tar命令示例 1015次閱讀
- Django的簡單應用示例 1080次閱讀
- STM32G0開發筆記:LED燈示例 1450次閱讀
- Hi3861其他驅動的開發示例 3555次閱讀
- 熱阻數據的TJ估算示例 3207次閱讀
- 電源IC的封裝選型時的熱計算示例 2685次閱讀
- 基于Keras搭建的深度學習網絡示例 8310次閱讀
下載排行
本周
- 1山景DSP芯片AP8248A2數據手冊
- 1.06 MB | 532次下載 | 免費
- 2RK3399完整板原理圖(支持平板,盒子VR)
- 3.28 MB | 339次下載 | 免費
- 3TC358743XBG評估板參考手冊
- 1.36 MB | 330次下載 | 免費
- 4DFM軟件使用教程
- 0.84 MB | 295次下載 | 免費
- 5元宇宙深度解析—未來的未來-風口還是泡沫
- 6.40 MB | 227次下載 | 免費
- 6迪文DGUS開發指南
- 31.67 MB | 194次下載 | 免費
- 7元宇宙底層硬件系列報告
- 13.42 MB | 182次下載 | 免費
- 8FP5207XR-G1中文應用手冊
- 1.09 MB | 178次下載 | 免費
本月
- 1OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234315次下載 | 免費
- 2555集成電路應用800例(新編版)
- 0.00 MB | 33566次下載 | 免費
- 3接口電路圖大全
- 未知 | 30323次下載 | 免費
- 4開關電源設計實例指南
- 未知 | 21549次下載 | 免費
- 5電氣工程師手冊免費下載(新編第二版pdf電子書)
- 0.00 MB | 15349次下載 | 免費
- 6數字電路基礎pdf(下載)
- 未知 | 13750次下載 | 免費
- 7電子制作實例集錦 下載
- 未知 | 8113次下載 | 免費
- 8《LED驅動電路設計》 溫德爾著
- 0.00 MB | 6656次下載 | 免費
總榜
- 1matlab軟件下載入口
- 未知 | 935054次下載 | 免費
- 2protel99se軟件下載(可英文版轉中文版)
- 78.1 MB | 537798次下載 | 免費
- 3MATLAB 7.1 下載 (含軟件介紹)
- 未知 | 420027次下載 | 免費
- 4OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234315次下載 | 免費
- 5Altium DXP2002下載入口
- 未知 | 233046次下載 | 免費
- 6電路仿真軟件multisim 10.0免費下載
- 340992 | 191187次下載 | 免費
- 7十天學會AVR單片機與C語言視頻教程 下載
- 158M | 183279次下載 | 免費
- 8proe5.0野火版下載(中文版免費下載)
- 未知 | 138040次下載 | 免費
評論