问一下如何重复使用自定义开关(就是要定义多个设备开关),我定义两个Custom段,代码检测通过,执行就出错,一个就可以。日志显示:Type Error: Cannot read property 'indexOf' of undefined
{
"type": "Custom",
"ip": "192.168.31.xx",
"token": "xxx",
"Name": "Custom-1",
"data": {
"on": {
"0": "0|xxx",
"1": "2|xxx",
"2": "5|xxx"
},
"off": {
"0": "1|xxx"
}
}
},
{
"type": "Custom",
"ip": "192.168.31.xx",
"token": "xxx",
"Name": "Custom-2",
"data": {
"on": {
"0": "0|xxx",
"1": "2|xxx",
"2": "5|xxx"
},
"off": {
"0": "1|xxx"
}
}
},
|