資料介紹
軟件簡介
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 示例設(shè)置
- Homebridge插件集成Shinobi
- 用于Away的homebridge插件
- Homebridge的Loxone插件
- homebridge-smartthings SmartThings插件
- homebridge miio平臺插件
- 熱門的homebridge插件列表
- 《我和 LabVIEW》示例程序分享 17次下載
- 了解-Oracle-ADF:入門示例
- 基于多值輸入多示例學(xué)習(xí)的頸椎健康狀態(tài)評估 4次下載
- 機(jī)器學(xué)習(xí)必學(xué)的Python代碼示例集 14次下載
- F2812控制板結(jié)構(gòu)圖示例 8次下載
- ChipScope使用示例 7次下載
- ZWG系列本地配置示例
- 應(yīng)用電路示例 pdf
- 什么是守護(hù)線程?守護(hù)線程的底層原理和使用示例 1155次閱讀
- AMD Versal系列CIPS IP核建立示例工程 526次閱讀
- TIA博途分配設(shè)備名稱示例 3465次閱讀
- 移動數(shù)據(jù)的編程示例 1131次閱讀
- MATLAB中特殊圖形的繪制示例 741次閱讀
- 大型西門子PLC程序結(jié)構(gòu)示例 1160次閱讀
- 如何對挑選出的demonstration示例進(jìn)行排序 465次閱讀
- Linux中的18個tar命令示例 835次閱讀
- Django的簡單應(yīng)用示例 933次閱讀
- STM32G0開發(fā)筆記:LED燈示例 1258次閱讀
- Hi3861其他驅(qū)動的開發(fā)示例 3303次閱讀
- 熱阻數(shù)據(jù)的TJ估算示例 2905次閱讀
- 如何創(chuàng)建AXI CDMA Linux用戶空間示例應(yīng)用 2425次閱讀
- 電源IC的封裝選型時的熱計算示例 2526次閱讀
- 基于Keras搭建的深度學(xué)習(xí)網(wǎng)絡(luò)示例 8150次閱讀
下載排行
本周
- 1山景DSP芯片AP8248A2數(shù)據(jù)手冊
- 1.06 MB | 532次下載 | 免費(fèi)
- 2RK3399完整板原理圖(支持平板,盒子VR)
- 3.28 MB | 339次下載 | 免費(fèi)
- 3TC358743XBG評估板參考手冊
- 1.36 MB | 330次下載 | 免費(fèi)
- 4DFM軟件使用教程
- 0.84 MB | 295次下載 | 免費(fèi)
- 5元宇宙深度解析—未來的未來-風(fēng)口還是泡沫
- 6.40 MB | 227次下載 | 免費(fèi)
- 6迪文DGUS開發(fā)指南
- 31.67 MB | 194次下載 | 免費(fèi)
- 7元宇宙底層硬件系列報告
- 13.42 MB | 182次下載 | 免費(fèi)
- 8FP5207XR-G1中文應(yīng)用手冊
- 1.09 MB | 178次下載 | 免費(fèi)
本月
- 1OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234315次下載 | 免費(fèi)
- 2555集成電路應(yīng)用800例(新編版)
- 0.00 MB | 33566次下載 | 免費(fèi)
- 3接口電路圖大全
- 未知 | 30323次下載 | 免費(fèi)
- 4開關(guān)電源設(shè)計實(shí)例指南
- 未知 | 21549次下載 | 免費(fèi)
- 5電氣工程師手冊免費(fèi)下載(新編第二版pdf電子書)
- 0.00 MB | 15349次下載 | 免費(fèi)
- 6數(shù)字電路基礎(chǔ)pdf(下載)
- 未知 | 13750次下載 | 免費(fèi)
- 7電子制作實(shí)例集錦 下載
- 未知 | 8113次下載 | 免費(fèi)
- 8《LED驅(qū)動電路設(shè)計》 溫德爾著
- 0.00 MB | 6656次下載 | 免費(fèi)
總榜
- 1matlab軟件下載入口
- 未知 | 935054次下載 | 免費(fèi)
- 2protel99se軟件下載(可英文版轉(zhuǎn)中文版)
- 78.1 MB | 537798次下載 | 免費(fèi)
- 3MATLAB 7.1 下載 (含軟件介紹)
- 未知 | 420027次下載 | 免費(fèi)
- 4OrCAD10.5下載OrCAD10.5中文版軟件
- 0.00 MB | 234315次下載 | 免費(fèi)
- 5Altium DXP2002下載入口
- 未知 | 233046次下載 | 免費(fèi)
- 6電路仿真軟件multisim 10.0免費(fèi)下載
- 340992 | 191187次下載 | 免費(fèi)
- 7十天學(xué)會AVR單片機(jī)與C語言視頻教程 下載
- 158M | 183279次下載 | 免費(fèi)
- 8proe5.0野火版下載(中文版免費(fèi)下載)
- 未知 | 138040次下載 | 免費(fèi)
評論
查看更多