Home Assistant 2021.1.1
Operating System Version 5.4.79-v8
Home Assistant OS 5.10
Supervisor Version 2020.12.7
Hi there,
I recently bought a RPi4 4Gb RAM and installed HA onto it. I boot onto a USB key connected onto the USB3.0 port.
I have got a RFlink gateway connected onto the USB 2.0 port and i have the same problem than others, PI won’t boot until i disconnect the RFlink.
So i decided to use my old RPi3 with a minimal RaspberryOS on it with the RFlink gateway connected. I then run the following command so i can expose serial datas on ethernet
socat /dev/ttyACM0,b57600 TCP-LISTEN:8844,reuseaddr
Go back to HA on my Pi4 and i can see that the RFlink gateway is connected, logs are showing datas icoming. However, when i want to turn on one of my switch, i have some errors in the logs.
Sometime the “turn ON/OFF” command is received on the switch and sometimes, the “turn ON/OFF” command is not received, it depend how fast i click “ON” and then “OFF”. If i wait some seconds between ON and OFF, it seems to be OK (but not always). And each time i turn on or off the switch i got the following error on HA notification “Fail to call service switch turn_on” BUT the command is well send and receive on the switch (if, as previusly said, i wait some seconds between both commands)
The RFlink configuration is as follow :
rflink:
#port: '/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_5563931383235150D191-if00'
host: 192.168.35.110
port: 8844
wait_for_ack: true
ignore_devices:
- fineoffset_*
- rflink_*
- globaltronics_0047_*
- tunex_6501_*
And the logs :
2021-01-14 11:07:44 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: on to Rflink device: newkaku_010a722e_1
2021-01-14 11:07:44 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '010a722e', 'switch': '1', 'command': 'on'}
2021-01-14 11:07:44 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;010a722e;1;on;\r\n'
2021-01-14 11:07:44 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2021-01-14 11:07:45 DEBUG (MainThread) [rflink.protocol] received data: 20;86;OK;
2021-01-14 11:07:45 DEBUG (MainThread) [rflink.protocol] received data:
2021-01-14 11:07:46 DEBUG (MainThread) [homeassistant.components.rflink] Sending command: off to Rflink device: newkaku_010a722e_1
2021-01-14 11:07:48 DEBUG (MainThread) [rflink.protocol] received data: 20;87;Oregon Temp;ID=9410;TEMP=00cb;BAT=OK;
2021-01-14 11:07:48 DEBUG (MainThread) [rflink.protocol] received data:
2021-01-14 11:07:49 DEBUG (MainThread) [rflink.protocol] sending command: {'protocol': 'newkaku', 'id': '010a722e', 'switch': '1', 'command': 'off'}
2021-01-14 11:07:49 DEBUG (MainThread) [rflink.protocol] writing data: '10;newkaku;010a722e;1;off;\r\n'
2021-01-14 11:07:49 DEBUG (MainThread) [rflink.protocol] waiting for acknowledgement
2021-01-14 11:07:49 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547465224096]
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 561, in async_turn_on
await self._async_handle_command("turn_on")
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 498, in _async_handle_command
await self._async_send_command(cmd, self._signal_repetitions)
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 524, in _async_send_command
await self._protocol.send_command_ack(self._device_id, cmd)
File "/usr/local/lib/python3.8/site-packages/rflink/protocol.py", line 227, in send_command_ack
yield from asyncio.wait_for(
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
2021-01-14 11:07:50 DEBUG (MainThread) [rflink.protocol] received data: 20;88;OK;
2021-01-14 11:07:54 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547465224096]
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 565, in async_turn_off
await self._async_handle_command("turn_off")
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 498, in _async_handle_command
await self._async_send_command(cmd, self._signal_repetitions)
File "/usr/src/homeassistant/homeassistant/components/rflink/__init__.py", line 524, in _async_send_command
await self._protocol.send_command_ack(self._device_id, cmd)
File "/usr/local/lib/python3.8/site-packages/rflink/protocol.py", line 227, in send_command_ack
yield from asyncio.wait_for(
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
2021-01-14 11:07:56 DEBUG (MainThread) [rflink.protocol] received data: 20;89;Oregon TempHygro;ID=2DF7;TEMP=00b4;HUM=52;HSTATUS=0;BAT=OK;
Note that i do not have any network issue, both RPi4 and RPi3 are on same network / same switch
Does anybody have any ides on this issue ?
Thanks