资料介绍
软件简介
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插件列表
- 《我和 LabVIEW》示例程序分享 17次下载
- 了解-Oracle-ADF:入门示例
- 基于多值输入多示例学习的颈椎健康状态评估 4次下载
- 机器学习必学的Python代码示例集 14次下载
- F2812控制板结构图示例 8次下载
- ChipScope使用示例 7次下载
- ZWG系列本地配置示例
- 应用电路示例 pdf
- 什么是守护线程?守护线程的底层原理和使用示例 1155次阅读
- AMD Versal系列CIPS IP核建立示例工程 526次阅读
- TIA博途分配设备名称示例 3465次阅读
- 移动数据的编程示例 1131次阅读
- MATLAB中特殊图形的绘制示例 741次阅读
- 大型西门子PLC程序结构示例 1160次阅读
- 如何对挑选出的demonstration示例进行排序 465次阅读
- Linux中的18个tar命令示例 835次阅读
- Django的简单应用示例 933次阅读
- STM32G0开发笔记:LED灯示例 1258次阅读
- Hi3861其他驱动的开发示例 3303次阅读
- 热阻数据的TJ估算示例 2905次阅读
- 如何创建AXI CDMA Linux用户空间示例应用 2425次阅读
- 电源IC的封装选型时的热计算示例 2526次阅读
- 基于Keras搭建的深度学习网络示例 8150次阅读
下载排行
本周
- 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次下载 | 免费
评论
查看更多