Hello,
recently my SD card in Raspberry Pi crashed and I had to restore Home Assistant from backup - I restored whole SD card from old backup (unfortunately I did not perform whole SD card backup in a while) and restored HA from most recent backup (HA backups I was doing every month). After that everything worked except my Zigbee devices. I’ve removed ZHA and installed it again, however it keeps throwing config errors:
Logger: homeassistant.config_entries
Source: util/json.py:42
First occurred: 15:04:44 (1 occurrences)
Last logged: 15:04:44Error setting up entry ConBee II, s/n: DE2252106 - dresden elektronik ingenieurtechnik GmbH for zha
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/util/json.py”, line 32, in load_json
with open(filename, encoding=“utf-8”) as fdesc:
OSError: [Errno 6] No such device or address: ‘/config/.storage/zha.storage’The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 313, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/zha/init.py”, line 102, in async_setup_entry
await zha_gateway.async_initialize()
File “/usr/src/homeassistant/homeassistant/components/zha/core/gateway.py”, line 133, in async_initialize
self.zha_storage = await async_get_registry(self._hass)
File “/usr/src/homeassistant/homeassistant/components/zha/core/store.py”, line 143, in async_get_registry
return cast(ZhaStorage, await task)
File “/usr/src/homeassistant/homeassistant/components/zha/core/store.py”, line 138, in _load_reg
await registry.async_load()
File “/usr/src/homeassistant/homeassistant/components/zha/core/store.py”, line 94, in async_load
data = await self._store.async_load()
File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 114, in async_load
return await self._load_task
File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 123, in _async_load
return await self._async_load_data()
File “/usr/src/homeassistant/homeassistant/helpers/storage.py”, line 141, in _async_load_data
data = await self.hass.async_add_executor_job(
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/util/json.py”, line 42, in load_json
raise HomeAssistantError(error) from error
homeassistant.exceptions.HomeAssistantError: [Errno 6] No such device or address: ‘/config/.storage/zha.storage’
and:
Logger: homeassistant.util.json
Source: util/json.py:32
First occurred: 15:04:43 (1 occurrences)
Last logged: 15:04:43JSON file reading failed: /config/.storage/zha.storage
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/util/json.py”, line 32, in load_json
with open(filename, encoding=“utf-8”) as fdesc:
OSError: [Errno 6] No such device or address: ‘/config/.storage/zha.storage’
I checked the “/usr/src” folder and there’s nothing in it. I also checked “/config” folder and did not found a “.storage” folder.
Is there any way to perform a ‘clean install’ of ZHA?
My config:
Raspberry Pi 4, RaspbianOS (Buster)
Home Assistant Docker install
HA version: 2021.12.8