Duplicate AID in Homekit interface

Andy Poggio apoggio at pacbell.net
Mon Jun 20 21:36:14 EDT 2022


When I removed 3 of the 4 dups, HomeKit is working again.  When I re-add one of the dups, HOmeKit fails again withDup ID.

--andy


> On Jun 20, 2022, at 6:15 PM, Andy Poggio <apoggio at pacbell.net> wrote:
> 
> Hi James,
> 
> I did as you suggested and discovered that the hap.aid is the same for multiple of my units:
> 
> 6/20/22 6:01:20 PM      hap.aid.11BR3DKN=5
> 6/20/22 6:01:27 PM      hap.aid.11BR3DKN=6
> 6/20/22 6:01:36 PM      hap.aid.11BR3DKN=7
> 6/20/22 6:01:42 PM      hap.aid.11BR3DKN=8
> 6/20/22 6:01:48 PM      hap.aid.11BR3DKN=9
> 6/20/22 6:01:54 PM      hap.aid.11BR3DKN=10
> 6/20/22 6:02:01 PM      hap.aid.11BR3DKN=12
> 6/20/22 6:02:07 PM      hap.aid.11BR3DKN=12
> 6/20/22 6:02:14 PM      hap.aid.11BR3DKN=12
> 6/20/22 6:02:20 PM      hap.aid.11BR3DKN=12
> 
> I presume this is the cause of my Duplicate AID error.  What’s the easiest fix?
> 
> —andy
> 
> 
>> On Jun 10, 2022, at 5:32 AM, James Sentman <james at sentman.com> wrote:
>> 
>> 
>> Good morning Randy,
>> 
>> XTension assigns a unique ID to shared units that is randomized both for the interface or plugin instance, as well as the unit itself. This way the same unit could be shared over separate plugins over time or at the same time and not blow things up. I’m not sure what happens yet to make this happen as the id’s for both parts should be unique by definition. I suspect they may be getting removed or set to 0 or some such and that is why they are matching and calling out this error. I’ve had it happen once myself but then could not duplicate it after fiddling with it.
>> 
>> Can you collect 2 or 3 bits of information for me? First in the Interface List window please right click on your home kit interface instance while holding the option key down. There will be a new entry in the contextual menu for “log debug data” please select that and a bunch of stuff will get written to the log. Then find the Unit you think is causing the problem and do the same thing, right click on it while holding the option key down and select log debug data. Then do that once more for a Unit that is shared that you don’t think is the problem. Email me off the list all that output and I can compared the saved off ID’s with what the plugin configuration thinks are the ID’s and such. 
>> 
>> 
>>> On Jun 9, 2022, at 9:40 PM, Randy Carson <randycarson at gmail.com> wrote:
>>> 
>>> i have recently moved some units from Vera to Hubitat, and am now finding that I have some units that can no longer be shared in the Homekit interface, I get the following error in the log “ValueError: Duplicate AID found when attempting to add interface” and Homekit interface will not startup.
>>> 
>>> I have tried fully deleting the unit in question, but I have the same issue once it is re-created.
>>> 
>>> Has anyone else seen this, or have a hint as to how to resolve?
>> 
>> Thanks,
>> James
>> 
>> 
>> James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com
>> 
>> 
>> 
>> 
>> _______________________________________________
>> XTensionList mailing list
>> XTensionList at machomeautomation.com
>> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist



More information about the XTensionList mailing list