2024年11月23日星期六 下午10:37:33

How do I move Homekit data to a new install?

6 个月 前
#34164 引用
Add a new device  to “HomeKit Device” integration

Then, you can edit your core.config_entries which is inside the .storage folder. You need to add a new entry in the “entries” list. You can copy one of the domain=homekit_controller entry or use the example below. Probably safer to copy one of the entry and modify it, especially if you’re following this on version higher than 2023.11.2 which this was tested on.

This was the entry I added :



{
        "entry_id": "ab4e836e793fb05116ca5cf0f4dcdd92",
        "version": 1,
        "domain": "homekit_controller",
        "title": "HomePod mini Cuisine",
        "data": {
          "AccessoryPairingID": "A3:2A:F5:6B:BC:D7",
          "AccessoryLTPK": "67495108fe34abe8a4bfe1c47d272c1fe6e70b941af500e295dd2abf5e76",
          "iOSPairingId": "AF2E9A-0035-4C53-81F4-647F1BBA57",
          "iOSDeviceLTSK": "8af9906a7260534a4e7c7fb646ae19133a492036cbf5a6966d3f5ee4d964",
          "iOSDeviceLTPK": "5dee1803c6149c198bef18d342d558e90058544e6a1502294f80635654a5",
          "AccessoryIP": "10.0.0.105",
          "AccessoryPort": 56633,
          "Connection": "IP"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "zeroconf",
        "unique_id": "a3:2a:f5:6b:bc:d7",
        "disabled_by": null
      },



I had to modify

the “entry_id” value to put a new random value (change anything as long as it’s unique)
the “title” to identify your HomePod
the “data” dict should contain what you created in your pairing.json from HomeKit Python
the “unique_id” should be your AccessoryPairingID with lowercase letters (no idea if this is actually required)
Make sure you’re JSON file is valid with https://jsonlint.com 7 or whatever you prefer. If you’re already in your SSH session to edit files, you can now reboot your device and that should start HA again.

You’re done! There should be a new device unceremoniously added in the “HomeKit Device” integration. :tada:

https://community.home-assistant.io/t/homepod-mini-temperature-humidity-sensor-to-ha/521232/106?u=msly

https://community.home-assistant.io/t/homepod-mini-temperature-humidity-sensor-to-ha/521232/106?u=msly
0