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 GUI. اگرچہ ایک طریقہ ہے۔.
آلات (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 میں تبدیلیوں کو تبدیل کرنے کے لیے بھی استعمال کیا ہے۔ آئی پی ایک onvif کا پتہ آئی پی camera which home assistant was refusing to connect to after the آئی پی تبدیل. The same is no doubt possible for other devices.
شکریہ ! it works for me!
On debian, use /usr/share/hassio/homeassistant/.storage
I have succesfully delete 7 old devices kept in agentdvr intégration