Eu já uso o assistente doméstico há vários anos e muitos dos primeiros desafios e curvas de aprendizado foram superados. Entretanto, tem havido um problema de longa data que é uma frustração constante - a remoção de dispositivos antigos não tem uma abordagem padrão e, em alguns casos, é impossível do GUI. Há um caminho embora.
Devices (and entities) pode ser excluído (or modified) the manual way directly from home assistant system files. Alguns dos arquivos que você pode precisar são chamados de core.device_registry e 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
},
E também 2 sections (para o 2 associated entities) de 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)
Outros usos
Eu também usei mudanças em core.config_entries para mudar o IP endereço de um onvif IP camera which home assistant was refusing to connect to after the IP mudado. The same is no doubt possible for other devices.
O que você acha? Deixe-nos cair um comentário abaixo! Se você deseja se inscrever, use o link de inscrição no menu no canto superior direito. Você também pode compartilhar isso com seus amigos usando os links sociais abaixo. Felicidades.
Obrigado ! funciona para mim!
On debian, use /usr/share/hassio/homeassistant/.storage
I have succesfully delete 7 old devices kept in agentdvr intégration