Home Assistant 114 and RFTRX: Cannot send commands

Using HA 0.114.3 and a rfxrtx433xl on USB0, I managed (thanks to the discussion here: RFXCOM unavailable after upgrade to 0.113 ) to see some KAKU switches via RFTRX. Was able to get them from “entity” to “device”’.

However, using them as a switch gives the error:

File “/srv/homeassistant/lib/python3.7/site-packages/serial/serialposix.py”, line 531, in write
raise portNotOpenError
serial.serialutil.SerialException: Attempting to use a port that is not open"

in the log file.

What is wrong?

Solved. Had to address the device as /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_-if00-port0
rather than /dev/ttyUSB0