Я использую домашний помощник уже несколько лет, и большинство ранних проблем и кривых обучения преодолены.. Однако, существует давняя проблема, которая вызывает постоянное разочарование - удаление старых устройств не является стандартным подходом, а в некоторых случаях невозможно из Графический интерфейс пользователя. Хотя есть способ.
приборы (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 адрес onvif IP camera which home assistant was refusing to connect to after the IP измененный. The same is no doubt possible for other devices.
Нашел это полезным? Пожалуйста, дайте нам знать, оставив комментарий ниже. Дайте нам знать, комментируя ниже. Дайте нам знать, комментируя ниже. Дайте нам знать, комментируя ниже.
Спасибо ! меня устраивает!
On debian, используйте /usr/share/hassio/homeassistant/.storage
I have succesfully delete 7 old devices kept in agentdvr intégration