Hello,
I have a problem with my Zigbee devices and ZHA, a few minutes after home assistant starts, they become unavailable and I have to restart again.
I have thoses errors in logs:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/zha/api.py", line 312, in websocket_get_device
device = zha_gateway.devices[ieee].zha_device_info
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 470, in zha_device_info
device_info.update(self.device_info)
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 419, in device_info
ATTR_DEVICE_TYPE: self.device_type,
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 227, in device_type
return self._zigpy_device.node_desc.logical_type.name
AttributeError: 'NoneType' object has no attribute 'name'
Logger: zigpy_zigate.zigbee.application
Source: /usr/local/lib/python3.9/site-packages/zigpy_zigate/zigbee/application.py:155
First occurred: July 25, 2021, 11:09:36 AM (15 occurrences)
Last logged: July 26, 2021, 11:43:35 AM
Unexpected message send failure
Logger: homeassistant
Source: components/zha/core/device.py:227
First occurred: July 25, 2021, 11:09:55 AM (1 occurrences)
Last logged: July 25, 2021, 11:09:55 AM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 458, in _async_add_entity
device_info = entity.device_info
File "/usr/src/homeassistant/homeassistant/components/zha/entity.py", line 88, in device_info
zha_device_info = self._zha_device.device_info
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 419, in device_info
ATTR_DEVICE_TYPE: self.device_type,
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 227, in device_type
return self._zigpy_device.node_desc.logical_type.name
AttributeError: 'NoneType' object has no attribute 'name'
Logger: homeassistant.components.sensor
Source: components/zha/core/device.py:227
Integration: Sensor (documentation, issues)
First occurred: July 25, 2021, 11:09:55 AM (1 occurrences)
Last logged: July 25, 2021, 11:09:55 AM
Error adding entities for domain sensor with platform zha
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 458, in _async_add_entity
device_info = entity.device_info
File "/usr/src/homeassistant/homeassistant/components/zha/entity.py", line 88, in device_info
zha_device_info = self._zha_device.device_info
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 419, in device_info
ATTR_DEVICE_TYPE: self.device_type,
File "/usr/src/homeassistant/homeassistant/components/zha/core/device.py", line 227, in device_type
return self._zigpy_device.node_desc.logical_type.name
AttributeError: 'NoneType' object has no attribute 'name'
Logger: zigpy.application
Source: /usr/local/lib/python3.9/site-packages/zigpy/application.py:84
First occurred: July 25, 2021, 11:09:35 AM (2 occurrences)
Last logged: July 25, 2021, 11:09:35 AM
Device is partially initialized: <IkeaTradfriRemote model='TRADFRI remote control' manuf='IKEA of Sweden' nwk=0xD37A ieee=58:8e:81:ff:fe:29:ab:be is_initialized=False>
Device is partially initialized: <ZiGateDevice model='ZiGate USB-TTL 3.1d' manuf='ZiGate' nwk=0x0000 ieee=00:15:8d:00:01:c6:1c:36 is_initialized=False>
Do someone have an idea ?
Thank you