在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:SLaweck/homebridge-tuya-smartlamp开源软件地址:https://github.com/SLaweck/homebridge-tuya-smartlamp开源编程语言:JavaScript 100.0%开源软件介绍:Homebridge plugin for Lohas/Tuya Led Smart Bulb and Teckin/Tuya Smart SocketExample "accessories": [
{
"accessory": "TuyaSmartDevice",
"name": "Kitchen Light",
"type": "lightbulb dimmable tunable",
"manufacturer": "LOHAS",
"model": "Smart Lamp",
"devId": "XXXXXXXXXX",
"localKey": "XXXXXXXXXXXXXX",
"brightMin": 11
}
] Example "accessories": [
{
"accessory": "TuyaSmartDevice",
"name": "Kitchen Light",
"type": "lightbulb dimmable tunable",
"manufacturer": "LOHAS",
"model": "Smart Lamp",
"devId": "XXXXXXXXXX",
"localKey": "XXXXXXXXXXXXXX",
"brightMin": 11
},
{
"accessory": "TuyaSmartDevice",
"name": "Bedroom Light",
"type": "lightbulb dimmable tunable color",
"manufacturer": "LOHAS",
"model": "Smart Lamp Multicolor",
"devId": "XXXXXXXXXX",
"localKey": "XXXXXXXXXXXXXX",
"enableColor": true
},
] Example "accessories": [
{
"accessory": "TuyaSmartDevice",
"name": "Coffee Machine",
"type": "outlet monitoring",
"manufacturer": "Teckin",
"model": "Smart Socket SP23",
"devId": "XXXXXXXXXX",
"localKey": "XXXXXXXXXXXXXX",
"interval": 15
}
] Example "accessories": [
{
"accessory": "TuyaSmartDevice",
"name": "PSB",
"type": "powerstrip",
"manufacturer": "China",
"model": "3A4U-UK",
"devId": "XXXXXXXXXX",
"localKey": "XXXXXXXXXXXXXX",
"switchNames": ["Plug1", "Plug2", "Plug3", "USB"],
"switchDPSs": [1, 2, 3, 4],
}
] To obtain the devId (hint: it has the MAC address in it), the localKey and the productKey, carefully read and review these procedures: Linking a Tuya Device Description of config structure:
Tested on the following Smart LED bulbs (Non affiliated links following) and Smart WiFi sockets:
This plugin should work with any Tuya based LED bulb that can be added to the Tuya or Smart Life apps, or even any Tuya based Samrt Switch (simply set type as an empty string). LOHAS is a popular brand and theirs products can be found on LOHAS Lights or on Amazon: LOHAS Lights on Amazon Work in progress... |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论