I’ve now been using home assistant for several years and most of the early challenges and learning-curves have been over-come. कैसे कभी, there has been a long-standing issue that is a constant frustration — removing old devices doesn’t have a standard approach and in some case is impossible from the जीयूआई. हालांकि एक रास्ता है.
उपकरण (and entities) हटाया जा सकता है (or modified) the manual way directly from home assistant system files. कुछ फ़ाइलें जिनकी आपको आवश्यकता हो सकती है उन्हें core.device_registry और core.config_entries core.entity_registry कहा जाता है. These are located in \config\.storage\ whcih (as a windows user) I access via the “Samba Share” supervisor add-on. If you don’t have supervisor you may need to access these files a different way.
I used this to remove a dead Drayton Wiser TRV from HA — by deleting the whole relevant section from core.device_registry…
{
"config_entries": [
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
],
"connections": [],
"identifiers": [
[
"wiser",
"iTRV-2"
]
],
"manufacturer": "Drayton Wiser",
"model": "iTRV",
"name": "Wiser iTRV-Dead",
"sw_version": "xxxxxxxx",
"entry_type": null,
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"via_device_id": null,
"area_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name_by_user": "Dead TRV",
"disabled_by": null,
"configuration_url": null
},
और भी 2 sections (के लिए 2 associated entities) core.entity_registry से (I haven’t shown these as they should be obvious — the format is the same as above with the sections enclosed by curly-braces)
अन्य उपयोग
मैंने बदलने के लिए core.config_entries में परिवर्तन का भी उपयोग किया है IP एक ऑनवीफ का पता IP camera which home assistant was refusing to connect to after the IP बदला हुआ. The same is no doubt possible for other devices.
धन्यवाद ! डीवीडी रिप!
On debian, use /usr/share/hassio/homeassistant/.storage
I have succesfully delete 7 old devices kept in agentdvr intégration