Page 1 of 1

Error when starting bridge device

PostPosted: Thu Jun 15, 2023 4:51 pm
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'

Error when starting bridge device

PostPosted: Thu Jun 15, 2023 5:18 pm
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

Re: Error when starting bridge device

PostPosted: Thu Jun 15, 2023 5:25 pm
by JBB
I'm running 0.6.15. Saw it as soon as I upgraded (after upgrading my home software through Apple).

Re: Error when starting bridge device

PostPosted: Thu Jun 15, 2023 7:49 pm
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

Re: Error when starting bridge device

PostPosted: Thu Jun 15, 2023 11:45 pm
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!

Re: Error when starting bridge device

PostPosted: Fri Jun 16, 2023 9:31 am
by JBB
Thank you.

Error when starting bridge device

PostPosted: Fri Jun 16, 2023 8:49 pm
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