core: homekit_controller expects serial number to actually be unique and won't work if they aren't
The problem
Platform homekit_controller does not generate unique IDs. Not all sensors show up.
The device is a Sommer SomWeb to controll garage doors. It should report two doors but homeassistant just shows one of them.
What version of Home Assistant Core has the issue?
core-2021.11.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
HomeKit
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
cat homekit_controller-entity-map
{
"version": 1,
"key": "homekit_controller-entity-map",
"data": {
"pairings": {
"CF:A0:4D:F2:AF:13": {
"config_num": 3,
"accessories": [
{
"aid": 1,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"iid": 3,
"type": "00000020-0000-1000-8000-0026BB765291",
"value": "SOMMER Antriebs- und Funktechnik GmbH",
"perms": [
"pr"
],
"format": "string",
"description": "Manufacturer"
},
{
"iid": 4,
"type": "00000021-0000-1000-8000-0026BB765291",
"value": "SOMweb Hub",
"perms": [
"pr"
],
"format": "string",
"description": "Model"
},
{
"iid": 5,
"type": "00000023-0000-1000-8000-0026BB765291",
"value": "SOMweb",
"perms": [
"pr"
],
"format": "string",
"description": "Name"
},
{
"iid": 6,
"type": "00000030-0000-1000-8000-0026BB765291",
"value": "SN#E7C6323378F67045",
"perms": [
"pr"
],
"format": "string",
"description": "Serial Number"
},
{
"iid": 7,
"type": "00000014-0000-1000-8000-0026BB765291",
"perms": [
"pw"
],
"format": "bool",
"description": "Identify"
},
{
"iid": 8,
"type": "00000052-0000-1000-8000-0026BB765291",
"value": "2.6.1",
"perms": [
"pr"
],
"format": "string",
"description": "Firmware Revision"
},
{
"iid": 11,
"type": "000000A6-0000-1000-8000-0026BB765291",
"value": 1,
"perms": [
"pr",
"ev"
],
"format": "uint32",
"description": "Accessory flags"
}
]
},
{
"type": "000000A2-0000-1000-8000-0026BB765291",
"iid": 60,
"characteristics": [
{
"iid": 62,
"type": "00000037-0000-1000-8000-0026BB765291",
"value": "1.1.0",
"perms": [
"pr"
],
"format": "string",
"description": "Protocol Version"
}
]
}
]
},
{
"aid": 10002,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"iid": 3,
"type": "00000020-0000-1000-8000-0026BB765291",
"value": "SOMMER Antriebs- und Funktechnik GmbH",
"perms": [
"pr"
],
"format": "string",
"description": "Manufacturer"
},
{
"iid": 4,
"type": "00000021-0000-1000-8000-0026BB765291",
"value": "SOMweb Hub",
"perms": [
"pr"
],
"format": "string",
"description": "Model"
},
{
"iid": 5,
"type": "00000023-0000-1000-8000-0026BB765291",
"value": "Tor 2",
"perms": [
"pr"
],
"format": "string",
"description": "Name"
},
{
"iid": 6,
"type": "00000030-0000-1000-8000-0026BB765291",
"value": "SN#E7C6323378F67045",
"perms": [
"pr"
],
"format": "string",
"description": "Serial Number"
},
{
"iid": 7,
"type": "00000014-0000-1000-8000-0026BB765291",
"perms": [
"pw"
],
"format": "bool",
"description": "Identify"
},
{
"iid": 8,
"type": "00000052-0000-1000-8000-0026BB765291",
"value": "2.6.1",
"perms": [
"pr"
],
"format": "string",
"description": "Firmware Revision"
}
]
},
{
"type": "00000041-0000-1000-8000-0026BB765291",
"iid": 1498,
"primary": true,
"characteristics": [
{
"iid": 1500,
"type": "0000000E-0000-1000-8000-0026BB765291",
"value": 1,
"perms": [
"pr",
"ev"
],
"maxValue": 4,
"minStep": 1,
"minValue": 0,
"format": "uint8",
"description": "Current Door State"
},
{
"iid": 1501,
"type": "00000032-0000-1000-8000-0026BB765291",
"value": 1,
"perms": [
"pr",
"pw",
"ev"
],
"maxValue": 1,
"minStep": 1,
"minValue": 0,
"format": "uint8",
"description": "Target Door State"
},
{
"iid": 1502,
"type": "00000024-0000-1000-8000-0026BB765291",
"value": false,
"perms": [
"pr",
"ev"
],
"format": "bool",
"description": "Obstruction Detected"
},
{
"iid": 1505,
"type": "00000023-0000-1000-8000-0026BB765291",
"value": "Tor 2",
"perms": [
"pr"
],
"format": "string",
"description": "Name"
}
]
}
]
},
{
"aid": 10001,
"services": [
{
"type": "0000003E-0000-1000-8000-0026BB765291",
"iid": 1,
"characteristics": [
{
"iid": 3,
"type": "00000020-0000-1000-8000-0026BB765291",
"value": "SOMMER Antriebs- und Funktechnik GmbH",
"perms": [
"pr"
],
"format": "string",
"description": "Manufacturer"
},
{
"iid": 4,
"type": "00000021-0000-1000-8000-0026BB765291",
"value": "SOMweb Hub",
"perms": [
"pr"
],
"format": "string",
"description": "Model"
},
{
"iid": 5,
"type": "00000023-0000-1000-8000-0026BB765291",
"value": "Tor 1",
"perms": [
"pr"
],
"format": "string",
"description": "Name"
},
{
"iid": 6,
"type": "00000030-0000-1000-8000-0026BB765291",
"value": "SN#E7C6323378F67045",
"perms": [
"pr"
],
"format": "string",
"description": "Serial Number"
},
{
"iid": 7,
"type": "00000014-0000-1000-8000-0026BB765291",
"perms": [
"pw"
],
"format": "bool",
"description": "Identify"
},
{
"iid": 8,
"type": "00000052-0000-1000-8000-0026BB765291",
"value": "2.6.1",
"perms": [
"pr"
],
"format": "string",
"description": "Firmware Revision"
}
]
},
{
"type": "00000041-0000-1000-8000-0026BB765291",
"iid": 1498,
"primary": true,
"characteristics": [
{
"iid": 1500,
"type": "0000000E-0000-1000-8000-0026BB765291",
"value": 1,
"perms": [
"pr",
"ev"
],
"maxValue": 4,
"minStep": 1,
"minValue": 0,
"format": "uint8",
"description": "Current Door State"
},
{
"iid": 1501,
"type": "00000032-0000-1000-8000-0026BB765291",
"value": 1,
"perms": [
"pr",
"pw",
"ev"
],
"maxValue": 1,
"minStep": 1,
"minValue": 0,
"format": "uint8",
"description": "Target Door State"
},
{
"iid": 1502,
"type": "00000024-0000-1000-8000-0026BB765291",
"value": false,
"perms": [
"pr",
"ev"
],
"format": "bool",
"description": "Obstruction Detected"
},
{
"iid": 1505,
"type": "00000023-0000-1000-8000-0026BB765291",
"value": "Tor 1",
"perms": [
"pr"
],
"format": "string",
"description": "Name"
}
]
}
]
}
]
}
}
}
}%
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 46 (29 by maintainers)
Will take a look later today or tomorrow. Life is a bit busy today