1ہوم اسسٹنٹ سے کوئی بھی ڈیوائس ہٹا دیں۔

I’ve now been using home assist­ant for sev­er­al years and most of the early chal­lenges and learn­ing-curves have been over-come. کس طرح کبھی, there has been a long-stand­ing issue that is a con­stant frus­tra­tion — remov­ing old devices does­n’t have a stand­ard approach and in some case is impossible from the GUI. اگرچہ ایک طریقہ ہے۔.

آلات (and entit­ies) حذف کیا جا سکتا ہے (or mod­i­fied) the manu­al way dir­ectly from home assist­ant sys­tem files. کچھ فائلیں جن کی آپ کو ضرورت ہو سکتی ہے core.device_registry اور core.config_entries core.entity_registry کہلاتی ہیں. These are loc­ated in \config\.storage\ whcih (as a win­dows user) I access via the “Samba Share” super­visor add-on. If you don’t have super­visor you may need to access these files a dif­fer­ent way.

I used this to remove a dead Drayton Wiser TRV from HA — by delet­ing the whole rel­ev­ant sec­tion 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 sec­tions (کے لئے 2 asso­ci­ated entit­ies) core.entity_registry سے (I haven’t shown these as they should be obvi­ous — the format is the same as above with the sec­tions enclosed by curly-braces)

دیگر استعمالات

میں نے core.config_entries میں تبدیلیوں کو تبدیل کرنے کے لیے بھی استعمال کیا ہے۔ آئی پی ایک onvif کا پتہ آئی پی cam­era which home assist­ant was refus­ing to con­nect to after the آئی پی تبدیل. The same is no doubt pos­sible for oth­er devices.

جواب چھوڑیں

One Comment