在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:norman-thomas/homebridge-particle-io开源软件地址:https://github.com/norman-thomas/homebridge-particle-io开源编程语言:JavaScript 100.0%开源软件介绍:Particle.io device plugin for HomebridgeAs you all know in the new version of Homebridge, the plugin architecture is changed. In new Homebridge, plugins are published through NPM with name starts with homebridge-. Users can install the plugin using NPM. You can install it using NPM like all other modules, using:
In this version, I have made some changes from the older version. Mainly the plugin is now a Homebridge Platform. Also in this version accessories are defined in {
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:39",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file with one Particle platform and 3 accessories, two lights and a temperature sensor. You should replace the access token and device id placeholder with your access token and device id",
"platforms": [
{
"platform": "ParticleIO",
"name": "Particle Devices",
"access_token": "<<access token>>",
"cloud_url": "https://api.particle.io/v1/devices/",
"devices": [
{
"name": "Bedroom Light",
"type": "lightbulb",
"device_id": "<<device id>>",
"function_name": "onoff",
"args": "0={STATE}"
},
{
"name": "Kitchen Light",
"type": "lightbulb",
"device_id": "<<device id>>",
"function_name": "onoff",
"args": "1={STATE}"
},
{
"name": "Kitchen Temperature",
"type": "temperaturesensor",
"device_id": "<<device id>>",
"event_name": "tvalue",
"split_character": ":"
}
]
}
]
} As you can see from the above example this The
Particle Event Data FormatBy default it expects the event data as "key=value".
In order to parse JSON format, a custom |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论