zha-ng / zha-map

Build ZHA network topology map.
MIT License
57 stars 17 forks source link

Error in log #15

Closed macros0 closed 4 years ago

macros0 commented 4 years ago

`Logger: homeassistant.core First occured: 1:14:34 (4 occurences) Last logged: 10:01:17

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/zha_map/init.py", line 137, in build await self.scan_device(seed) File "/config/custom_components/zha_map/init.py", line 226, in scan_device nei = await Neighbour.scan_device(device) File "/config/custom_components/zha_map/neighbour.py", line 115, in scan_device await r.scan() File "/config/custom_components/zha_map/neighbour.py", line 123, in scan zdo_t.ZDOCmd.Mgmt_Lqi_req, idx, tries=3, delay=1 File "/usr/local/lib/python3.7/site-packages/zigpy/util.py", line 88, in retry r = await func() File "/usr/local/lib/python3.7/site-packages/zigpy/device.py", line 194, in request result = await asyncio.wait_for(req.result, timeout) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for raise futures.TimeoutError() concurrent.futures._base.TimeoutError Соединение потеряно. Повторное подключение ... `

`Logger: homeassistant.core First occured: 1 марта 2020 г., 20:59:33 (13 occurences) Last logged: 10:01:17

Error doing job: Exception in callback SerialTransport._read_ready() Traceback (most recent call last): File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.7/site-packages/serial_asyncio/init.py", line 106, in _read_ready self._protocol.data_received(data) File "/usr/local/lib/python3.7/site-packages/zigpy_cc/uart.py", line 140, in data_received self._api.data_received(frame) File "/usr/local/lib/python3.7/site-packages/zigpy_cc/api.py", line 180, in data_received obj = ZpiObject.from_unpi_frame(frame) File "/usr/local/lib/python3.7/site-packages/zigpy_cc/zpi_object.py", line 76, in from_unpi_frame payload = cls.read_parameters(frame.data, parameters) File "/usr/local/lib/python3.7/site-packages/zigpy_cc/zpi_object.py", line 149, in read_parameters res[name] = buffalo.read_parameter(type, options) File "/usr/local/lib/python3.7/site-packages/zigpy_cc/buffalo.py", line 69, in read_parameter elif type == ParameterType.LIST_UINT32: File "/usr/local/lib/python3.7/enum.py", line 349, in getattr raise AttributeError(name) from None AttributeError: LIST_UINT32 Соединение потеряно. Повторное подключение ... `

macros0 commented 4 years ago

CC2538 image image image

Adminiuga commented 4 years ago

Based on

File "/usr/local/lib/python3.7/site-packages/zigpy_cc/zpi_object.py", line 76, in from_unpi_frame
payload = cls.read_parameters(frame.data, parameters)
File "/usr/local/lib/python3.7/site-packages/zigpy_cc/zpi_object.py", line 149, in read_parameters
res[name] = buffalo.read_parameter(type, options)
File "/usr/local/lib/python3.7/site-packages/zigpy_cc/buffalo.py", line 69, in read_parameter
elif type == ParameterType.LIST_UINT32:
File "/usr/local/lib/python3.7/enum.py", line 349, in getattr
raise AttributeError(name) from None
AttributeError: LIST_UINT32

traceback, it looks like zigpy_cc is throwing an exception when decoding a received frame from the serial port. Report an issue in zigpy_cc as it looks like to being the root cause.

Adminiuga commented 4 years ago

Try with the latest zigpy-cc and reopen if the issue still persist an issue in zigpy-cc repo