Closed andy-st closed 4 years ago
Hi @andy-st,
Thanks for the reported issue. Unfortunately, sometimes I have the same problem. However, I do not know the root cause of it. Give me some time and try something. I will create a new version from the Elero lib. I will inform you when you can update the lib.
Thanks
@W00D00 : Many many thanks to you, it is much better now with the latest version!
I will continue testing it in the next days and give you feedback again. :-)
In my first test, I just had the following issue.
I clicked on "move down" for a group of 6 shutters. All shutters start moving down. Then after around 5 seconds I clicked on "stop". But only 1 shutter stopped moving and the others kept on moving.
I think this is the error message I get:
... 20019-12-10 15:02:05 ERROR (MainThread) [homeassistant.helpers.entity] Update for cover.wohnzimmerlinks fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 501, in read 'device reports readiness to read but returned no data ' serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 270, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 450, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/elero/cover.py", line 249, in update self.request_response(RESPONSE_LENGTH_INFO) File "/config/custom_components/elero/cover.py", line 312, in request_response self._transmitter.get_response(resp_length, self._channel) File "/config/custom_components/elero/init.py", line 453, in get_response ser_resp = self._read_response(resp_length, channel) File "/config/custom_components/elero/init.py", line 396, in _read_response ser_resp = self._serial.read(resp_length) File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 509, in read raise SerialException('read failed: {}'.format(e)) serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) 2019-12-10 15:02:06 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1880616592] read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 501, in read 'device reports readiness to read but returned no data ' serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, service_name, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call await getattr(entity, func)(data) File "/usr/src/homeassistant/homeassistant/components/group/cover.py", line 209, in async_stop_cover DOMAIN, SERVICE_STOP_COVER, data, blocking=True File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, service_name, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call await getattr(entity, func)(data) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/elero/cover.py", line 264, in stop_cover self.request_response(RESPONSE_LENGTH_SEND) File "/config/custom_components/elero/cover.py", line 312, in request_response self._transmitter.get_response(resp_length, self._channel) File "/config/custom_components/elero/init.py", line 453, in get_response ser_resp = self._read_response(resp_length, channel) File "/config/custom_components/elero/init.py", line 396, in _read_response ser_resp = self._serial.read(resp_length) File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 509, in read raise SerialException('read failed: {}'.format(e)) serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) 2019-12-10 15:02:23 ERROR (MainThread) [homeassistant.helpers.entity] Update for cover.wohnzimmerrechts fails Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 501, in read 'device reports readiness to read but returned no data ' serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 270, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 450, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/elero/cover.py", line 249, in update self.request_response(RESPONSE_LENGTH_INFO) File "/config/custom_components/elero/cover.py", line 312, in request_response self._transmitter.get_response(resp_length, self._channel) File "/config/custom_components/elero/init.py", line 453, in get_response ser_resp = self._read_response(resp_length, channel) File "/config/custom_components/elero/init.py", line 396, in _read_response ser_resp = self._serial.read(resp_length) File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 509, in read raise SerialException('read failed: {}'.format(e)) serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) 2019-12-10 15:02:27 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1880616592] read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 501, in read 'device reports readiness to read but returned no data ' serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service connection.context(msg), File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, service_name, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call await getattr(entity, func)(data) File "/usr/src/homeassistant/homeassistant/components/group/cover.py", line 195, in async_open_cover DOMAIN, SERVICE_OPEN_COVER, data, blocking=True File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, service_name, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call await getattr(entity, func)(data) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/elero/cover.py", line 259, in open_cover self.request_response(RESPONSE_LENGTH_SEND) File "/config/custom_components/elero/cover.py", line 312, in request_response self._transmitter.get_response(resp_length, self._channel) File "/config/custom_components/elero/init.py", line 453, in get_response ser_resp = self._read_response(resp_length, channel) File "/config/custom_components/elero/init.py", line 396, in _read_response ser_resp = self._serial.read(resp_length) File "/usr/local/lib/python3.7/site-packages/serial/serialposix.py", line 509, in read raise SerialException('read failed: {}'.format(e)) serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
...
For me, it is not that important, as the groups are now working much better. :-) So thank you a ton!
The errors I mentioned above do not only happen when sending commands to groups. They also happy from time to time when sending commands to single shutters and are also shown in the GUI.
They also lead to that my smartphone (Android) vibrites then...
I now used it the last days and can tell, that the initial issue is not fixed. So I've still the issue, that when I send the command "close" to a group of for example 6 shutters, then often only one is them is moved. And I get the error mentioned above then.
Hi @andy-st,
please try the new version after my commit c764e2d88adb92eb8a814153a10ef8444bed06b1. It is another try...
@W00D00: It is working very stable now! Thank you so so much! :-) :-) :-)
I often have the issue that when trying to control a complete group of shutters, only one or two shutters are moved and the rest not moving.
This is one of my groups:
This is what I can find in the logfile when I try to move a group of shutters (here all shutters from "WohnEssZimmer" are moved):
I feel that after a fresh reboot of the Home Assistant first it is working fine, but after a few commands more and more errors like this happen.
I am not really sure if this log file helps and/or if I've recorded it correctly, but at least there are some errors which have timestamps quite after having sent a command to the complete group.