Hello,
I was realizing homekit accessory protocol. When add accessories to home with apple homekit app, the error 'HMErrorCodeAccessoryOutOfCompliance - 66' was throwed at the 'Get /accessories' step. The accessory attributes database in json was customized according to 'Hap Specification(non-commerical version)'. I'm very confused about this error. The accessory was only one light bulb, and The json data is like this:
{
"accessories": [
{
"aid": 1,
"services": [
{
"iid": 1,
"type": "3E",
"characteristics": [
{
"type": "23",
"value": "Light Bulb",
"perms": [
"pr"
],
"format": "string",
"iid": 2,
"description": null
},
{
"type": "20",
"value": "Test",
"perms": [
"pr"
],
"format": "string",
"iid": 3,
"description": null
},
{
"type": "30",
"value": "3A2B3C4D5E6D",
"perms": [
"pr"
],
"format": "string",
"iid": 4,
"description": null
},
{
"type": "21",
"value": "LEDBulb1,1",
"perms": [
"pr"
],
"format": "string",
"iid": 5,
"description": null
},
{
"type": "14",
"value": false,
"perms": [
"pw"
],
"format": "bool",
"iid": 6,
"description": null
}
],
"hidden": false,
"primary": true,
"linked": [
]
}
]
},
{
"aid": 2,
"services": [
{
"iid": 1,
"type": "43",
"characteristics": [
{
"type": "23",
"value": "Room Light",
"perms": [
"pr"
],
"format": "string",
"iid": 2,
"description": null
},
{
"type": "25",
"value": false,
"perms": [
"pr",
"pw",
"ev"
],
"format": "bool",
"iid": 3,
"description": null
}
],
"hidden": false,
"primary": false,
"linked": [
]
}
]
}
]
}
Does the data format was incorrect? Please help to check where the issue exist. I am looking forward to your reply.
Thanks very much!