-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to preserve Homekit Scenes, Automations, Rooms and Associations for knx accessories #183
Comments
It should. The |
Nope. It doesn't. ven if I later rollback the plugin, along with all the knx_config.json, persist and accessories files I still end up losing all my Homekit scenes, automations, rooms and associations related to these knx devices A a simple backup and restore of files (or even restoring the whole image) will not restore my lost/removed Homekit configs caused by homebridge-knx failed to start up properly |
That is strange though. I just moved my whole homebridge instance to a raspberry without loosing anything, even with a new IP address and hardware address on the new hardware. The homebridge instance was immediately recognized by HomeKit. |
Yes, that's true. Even if you rollback (recover your initial config), you will only recover the knx accessories themselves (which will now stay in the default room) - all your previous configurations (Rooms, scenes, automations, etc) related to those accessories will be completely lost Is there some way of backing up/restoring your Homekit config? |
That is right and can't be changed AFAIK. Because that is HomeKit clearing its database in the iCloud. |
This problem happend to me when I tried to upgrade homebridge to the lastest version 1.0.6 (needed for someother plugin) - However, this latest version of homebridge (in fact any version >= 1.0) does not support the knx plugin - so it just started up without registering the knx plugin So, boom - all my 200+ knx accessories were lost |
P.S: You should put a note stating not to upgrade to latest homebridge version (or at least the necessary configs updates before doing so) |
Anyway, so there's no way of backing up/restoring the HomeKit database in the iCloud? |
I am using the “Controller for Home” App, which allows to backup and restore to some extent. It is not flawless but works for most of the things and can safe some work when restoring... //Christof |
ref. migabc's comment Nov 12, 2020 I'm using homebridge v. 1.0.7 and have been struggling with the knx plugin [email protected]. What is the latest homebridge version to support knx plugin, and which knx plugin should be used? OK, fake news :-), it works with the above versions.... I found the solution, when adding platform in homebridge.config, from: #163 Anyway, thanks a lot the first Accessory is in place and working like a charm!!! |
@fred925 : Sorry I cannot support any forks like homebridge-knx-easy.
|
This happens because if homebridge starts without registering the homebridge-knx plugin it will remove all knx accessories from the cachedAccessories file I found a workaorund.
So now whenever an upgrade (example nodejs, etc) is done on the system that prevents homebridge from registering homebridge-knx, the homebridge when starting up will not remove the knx accessories from cachedAccessories and this way we have enough time to troubleshoot the issue and eventually rollback that upgrade that prevented the homebridge-knx plugin from registering without losing all our knx accessories Note:
After that the config.json or knx_config.json will get modified during runtime (only during the first start after the config change), so after that first start after you modified your config, you can then remove the write access on the cachedAccessories file again |
Is there an easy way to preserve my Homekit configuration (scenes, automations, rooms, associations, etc) for my knx accessories?
Every time I try to upgrade this plugin and something goes wrong (for whatever reason) even if I later rollback the plugin, along with all the knx_config.json, persist and accessories files I still end up losing all my Homekit scenes, automations, rooms and associations related to these knx devices
A a simple backup and restore of files (or even the whole image) will not preserve my Homekit configs
This quite frustrating as I have spent several hours tweeking all my Homekit configs :-(
This problem only only happens with this homebridge-knx plugin
This does not happen with my other homebridge plugins
The text was updated successfully, but these errors were encountered: