资料介绍
软件简介
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 示例设置 0次下载
- 软件示例:DA1468x 示例设置 0次下载
- Homebridge的Loxone插件 0次下载
- 热门的homebridge插件列表 1次下载
- 《我和 LabVIEW》示例程序分享 17次下载
- 基于多值输入多示例学习的颈椎健康状态评估 4次下载
- 机器学习必学的Python代码示例集 10次下载
- 一个脉搏血氧计的设计示例资料下载 18次下载
- MSP430F55xx示例代码 5次下载
- MSP430F41x2示例代码 2次下载
- MSP430F23x0示例代码 8次下载
- MSP430L092官方示例代码 21次下载
- MSP430F21x2示例代码 19次下载
- MSP430F20XX示例代码 6次下载
- F2812控制板结构图示例 8次下载
- 西门子博途示例:如何为下载设置内存保留而不重新初始化 245次阅读
- TIA博途分配设备名称示例 1193次阅读
- 开关二极管的使用示例 717次阅读
- 移动数据的编程示例 681次阅读
- MATLAB中特殊图形的绘制示例 470次阅读
- 20个MATLAB三维图像绘制的示例演示 1598次阅读
- 大型西门子PLC程序结构示例 705次阅读
- 如何对挑选出的demonstration示例进行排序 293次阅读
- Linux中的18个tar命令示例 573次阅读
- Django的简单应用示例 706次阅读
- STM32G0开发笔记:LED灯示例 932次阅读
- Hi3861其他驱动的开发示例 2879次阅读
- 热阻数据的TJ估算示例 2469次阅读
- 基于Keras搭建的深度学习网络示例 7904次阅读
- 从Flash和SRAM中触发中断的过程示例 2639次阅读
下载排行
本周
- 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次下载 | 免费
评论
查看更多