Error when starting bridge device

Posted on
Thu Jun 15, 2023 4:51 pm
JBB offline
Posts: 10
Joined: Apr 17, 2013

Error when starting bridge device

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'

Posted on
Thu Jun 15, 2023 5:18 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Error when starting bridge device

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

Posted on
Thu Jun 15, 2023 5:25 pm
JBB offline
Posts: 10
Joined: Apr 17, 2013

Re: Error when starting bridge device

I'm running 0.6.15. Saw it as soon as I upgraded (after upgrading my home software through Apple).

Posted on
Thu Jun 15, 2023 7:49 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Error when starting bridge device

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

Posted on
Thu Jun 15, 2023 11:45 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Re: Error when starting bridge device

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!

Posted on
Fri Jun 16, 2023 9:31 am
JBB offline
Posts: 10
Joined: Apr 17, 2013

Re: Error when starting bridge device

Thank you.

Posted on
Fri Jun 16, 2023 8:49 pm
GlennNZ offline
User avatar
Posts: 1573
Joined: Dec 07, 2014
Location: Central Coast, Australia

Error when starting bridge device

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 9 guests