|
发表于 2018-6-2 13:51:28
|
显示全部楼层
请教下,楼主。我第一次添加设备不行。报添加失败,看了下是states 参数为空, devices为空。是什么原因呢?
PHP message: INSERT INTO oauth_devices SET devices='', virtual='0', zone = '主卧',deviceName = '主卧灯',deviceId='light.master_rgb_led',jsonData='
{
"deviceId":"light.master_rgb_led",
"deviceName":"主卧灯",
"deviceType":"light",
"zone":"主卧",
"brand":"ailight",
"model":"rgb",
"icon":"https://home-assistant.io/demo/favicon-192x192.png",
"properties":[
{
"powerstate": "off"
},
{
"color": "Red"
},
{
"brightness": "1"
}
],
"actions":[
"TurnOn",
"TurnOff",
"SetBrightness",
"AdjustUpBrightness",
"AdjustDownBrightness",
"SetColor",
"QueryColor"
],
"extensions":{
"extension1":"",
"extension2":""
}
}
' |
|