I have a Synology NAS (DS218+) on which I have HA (v2022.9.7) running inside a docker container.
I recently bought a RFXtrx433XL to control my Somfy RTS blinds.
Per the instructions on the HA website, I was able to program the RFXtrx433XL locally (using RFXmngr), being able to control my blinds from my laptop using the RFY-protocol (and assigning id’s/unit codes).
After connecting my RFXtrx433XL to the Synology, I tried to set up the integration (settings - integrations - add new - RFXTRX). I chose connection type ‘network’ and entered the host IP-adress/port (referring to my Synology; is that correct?). I then added the ‘event code’ as described (071a0000[id][unit_code]
).
I find it a bit odd I did not have specify the precise USB-port I am using (/dev/ttyUSB1)…
After setting this up, I see a new cover entry, with up/down/stop buttons. Clicking the buttons hower results in an [Errno32] Broken pipe-error.
Inspecting the logs, I find the following:
2022-10-15 13:21:13.084 DEBUG (SyncWorker_2) [RFXtrx] Send: 0x0c 0x1a 0x00 0x01 0x00 0x00 0x01 0x01 0x01 0x00 0x00 0x00 0x00
2022-10-15 13:21:13.087 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139923330813712] [Errno 32] Broken pipe
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/rfxtrx/cover.py", line 106, in async_open_cover
await self._async_send(self._device.send_open)
File "/usr/src/homeassistant/homeassistant/components/rfxtrx/__init__.py", line 551, in _async_send
await self.hass.async_add_executor_job(fun, rfx_object.transport, *args)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 139, in send_open
self.send_command(transport, 0x01)
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 131, in send_command
transport.send(pkt.data)
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 903, in send
self.sock.send(pkt)
BrokenPipeError: [Errno 32] Broken pipe
I used the following configuration.yaml
for HA:
# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
logger:
default: warning
logs:
homeassistant.components.rfxtrx: debug
RFXtrx: debug
Could anyone help me solve this issue/point me towards what is going wrong? Thank a lot in advance.