1قم بإزالة أي جهاز من المساعد المنزلي

أستخدم الآن المساعد المنزلي لعدة سنوات وقد تم تجاوز معظم التحديات المبكرة ومنحنيات التعلم. ومع ذلك, كانت هناك مشكلة طويلة الأمد تمثل إحباطًا مستمرًا - إزالة الأجهزة القديمة ليس له نهج قياسي وفي بعض الحالات يكون مستحيلًا من واجهة المستخدم الرسومية. هناك طريقة بالرغم من ذلك.

الأجهزة (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) من السجل الأساسي (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 لتغيير ملف IP عنوان onvif IP cam­era which home assist­ant was refus­ing to con­nect to after the IP تغير. The same is no doubt pos­sible for oth­er devices.

اترك رد

واحد التعليق