Error when starting bridge device

A plugin to integration Indigo devices into HomeKit (and Siri)
JBB
Posts: 10
Joined: Wed Apr 17, 2013 12:47 am

Error when starting bridge device

Post by JBB »

HomeKitLink Siri Checking for busy_state file with UniqueID of 776140
HomeKitLink Siri Restart all Bridges.
HomeKitLink Siri HomeKit Front has completed full Bridge, Driver and Bridge Thread Shutdown.
HomeKitLink Siri Error (accessory_driver.py: Function: persist line: 665): Exception : Message : Failed to persist accessory state
HomeKitLink Siri Error Traceback:
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 662, in persist
self.encoder.persist(file_handle, self.state)
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/encoder.py", line 65, in persist
str(client): bytes.hex(key) for client, key in state.uuid_to_bytes.items()

HomeKitLink Siri Error Error in plugin execution:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 662, in persist
self.encoder.persist(file_handle, self.state)
File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/encoder.py", line 65, in persist
str(client): bytes.hex(key) for client, key in state.uuid_to_bytes.items()
AttributeError: 'State' object has no attribute 'uuid_to_bytes'
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Error when starting bridge device

Post by GlennNZ »

Thanks.
That looks like an error in the new version 0.6.15?

Odd. Almost looks like have some incorrect version files:

Are you running 0.6.15?
When did you see it?

I’ll have a look asap :

Thanks
Have found the issue haven’t merged the 2 aspects (well merged and then deleted one aspect)
Odd I’m not seeing it on either system
JBB
Posts: 10
Joined: Wed Apr 17, 2013 12:47 am

Re: Error when starting bridge device

Post by JBB »

I'm running 0.6.15. Saw it as soon as I upgraded (after upgrading my home software through Apple).
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Error when starting bridge device

Post by GlennNZ »

GlennNZ wrote:Thanks.
That looks like an error in the new version 0.6.15?

Odd. Almost looks like have some incorrect version files:

Are you running 0.6.15?
When did you see it?

I’ll have a look asap :

Thanks
Have found the issue haven’t merged the 2 aspects (well merged and then deleted one aspect)
Odd I’m not seeing it on either system
Sorry!

It’s a silly error on my part.

Should have a fix up within a few hours - timeframe is getting to the PC more than anything else!


Sent from my iPhone using Tapatalk
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Error when starting bridge device

Post by GlennNZ »

Pre-release 0.6.16 replaces pre-release 0.6.15

Fix for merge error on my part.

https://github.com/Ghawken/HomeKitLink-Siri/releases

Thanks!
JBB
Posts: 10
Joined: Wed Apr 17, 2013 12:47 am

Re: Error when starting bridge device

Post by JBB »

Thank you.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Error when starting bridge device

Post by GlennNZ »

No problem - was a interesting issue.

On upgrading (a working 0.6.15 version) I struck a UUID error as the state files now had a incorrect entry. Manually editing the state files fixed - although that is tricky. Alternatively can delete bridge from HomeKit app, reset accessory bridge from plugin and then re-add it. (this replaces the state files which stores the security keys)

Hopefully the set of circumstances that lead to this is very rare (my other development system didn’t see it at all), and even more hopefully relates to events in the earlier unrealised versions which only I was running.

Let me know if see anything similar.

Glenn


Sent from my iPad using Tapatalk
Post Reply

Return to “HomeKitLink Siri”