swttt / com.swttt.homekit

Homekit for Homey
https://apps.athom.com/app/com.swttt.homekit
GNU Affero General Public License v3.0
35 stars 20 forks source link

No response after 4.2.0 #243

Closed kimwf closed 1 year ago

kimwf commented 1 year ago

Hello. HomeyKit devices not responding in HK after updating to 4.2.0. When I try to downgrade to 4.1.10, HomeyKit app does not longer run on Homey. Disconnected AppleTV hub functionality, did not to anything. Native HK equipment and homebridge bridges running fine. Any tips for rectification?

BR Kim F

axelwathne commented 1 year ago

Same here, no response on 4.2.0, downgrading fails. I had forgotten I was on the beta channel.

Edit: I see the comment on the forum thread now regarding iOS 16.2. Maybe I can restore from backup tomorrow and change the app channel before it is upgraded

robertklep commented 1 year ago

If you want to downgrade, try removing the test version of app first, then install the regular version. A backup restore should also fix it (if not, the backup process of Homey is broken).

It wasn't my intention to block a downgrade, I'll have to look at why that happens 🤔

However, there's nothing in 4.2.0 that should inherently cause problems with versions of iOS before 16.2, it's just an update of an internal library. Before doing anything, try a PTP or perform a HomeyKit reset which you can do from the App Settings page.

robertklep commented 1 year ago

The issue is caused by 4.2.0 using a different format to store internal data. The current stable version (4.1.10) will crash when it encounters files with the changed format. I'll have to check if the internal storage directory of an app is removed when you remove an app.

axelwathne commented 1 year ago

A homeykit reset or uninstall will lose all devices from HomeKit I take it? In that case a Homey restore is probably less work.

robertklep commented 1 year ago

A reset will certainly cause all devices to be lost. However, I would suggest trying to see if the problem doesn't solve itself (with 4.2.0), perhaps after a while or (if you use them) toggle Home hubs off/on.

Sandor188 commented 1 year ago

@robertklep Robert

I use Homeykit and after the 4.2.0 update all devices are lost. And the app crashes.

I made a screenshot :

0069267E-CEB0-4341-B357-31579A5CACDA

robertklep commented 1 year ago

I will shortly push an updated test version of the app that will hopefully stop the crashes.

robertklep commented 1 year ago

Just pushed test version 4.2.1: https://homey.app/a/com.swttt.homekit/test/

Please let me know if it at least solves the crashing.

For people with non-responsiveness issues: you need to perform a reset.

If you want to go back to the stable version of the app, follow the first two steps of the previous process, then install the stable version of the app. You will have to set up HomeKit on your iOS device again.

The reason for all this is that I didn't realize the internal storage of the latest libraries is incompatible with the storage of the old libraries, and there doesn't seem to be a way to migrate the existing data 😭

axelwathne commented 1 year ago

No worries, Robert. We appreciate all your work, including that which breaks stuff 👍🏻

Restarting Apple hubs did not do the trick. I will try a restore.

axelwathne commented 1 year ago

Restore from backup did the trick, and I managed to switch to production channel before the app was updated. No repairing 45 devices today 💪🏻