Need help to setup RFXtrx. No devices are added

I’m trying to add RFXtrx remote devices (IMPULS and later Somfy). These are working in Domoticz.
I can’t get this integration to work in HA. Also not with the manual of the RFXrtx integartion. Maybe it is to complicated for me (I’m Dutch).

I’ve added RFXTRX (RFXCOM RFXtrx) integration:

  • Select: Serial
  • Select device: /dev/ttyUSB0 - RFXtrx433 - RFXtrx433, s/n: A13UQUT - RFXCOM

Integration is added with:

  • Automated adding enabled

  • Protocols: ac, arc, lighting4, x10

  • Enabled Debug logging in UI

  • added also in configuration.yaml lines (don’t know if this part is needed):

logger:
  default: warning
  logs:
    homeassistant.components.rfxtrx: debug
    RFXtrx: debug
  • Restart Home Assistant

After restart an doning nothing i see the following lines in Logging ‘Home Assistant Core’:

2023-03-11 16:15:15.124 DEBUG (SyncWorker_3) [homeassistant.components.rfxtrx] Using modes: ac,arc,lighting4,x10
2023-03-11 16:15:15.133 DEBUG (Thread-2 (_connect)) [RFXtrx] Send: 0x0d 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2023-03-11 16:15:15.763 DEBUG (Thread-2 (_connect)) [RFXtrx] Send: 0x0d 0x00 0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2023-03-11 16:15:15.783 DEBUG (Thread-2 (_connect)) [RFXtrx] Recv: 0x14 0x01 0x00 0x01 0x02 0x53 0x19 0x08 0x00 0x07 0x00 0x01 0x03 0x1c 0x04 0x52 0x46 0x58 0x43 0x4f 0x4d
2023-03-11 16:15:15.784 DEBUG (Thread-2 (_connect)) [RFXtrx] Send: 0x0d 0x00 0x00 0x00 0x03 0x53 0x1c 0x08 0x00 0x07 0x00 0x00 0x00 0x00
2023-03-11 16:15:16.055 DEBUG (Thread-2 (_connect)) [RFXtrx] Recv: 0x14 0x01 0x00 0x00 0x03 0x53 0x19 0x08 0x00 0x07 0x00 0x01 0x03 0x1c 0x04 0x52 0x46 0x58 0x43 0x4f 0x4d
2023-03-11 16:15:16.055 DEBUG (Thread-2 (_connect)) [RFXtrx] Send: 0x0d 0x00 0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2023-03-11 16:15:16.343 DEBUG (Thread-2 (_connect)) [RFXtrx] Recv: 0x14 0x01 0x00 0x01 0x02 0x53 0x19 0x08 0x00 0x07 0x00 0x01 0x03 0x1c 0x04 0x52 0x46 0x58 0x43 0x4f 0x4d
2023-03-11 16:15:16.343 DEBUG (Thread-2 (_connect)) [RFXtrx] Status: Status [subtype=433.92MHz, firmware=25, output_power=28, devices=['ac', 'arc', 'lighting4', 'x10']]
2023-03-11 16:15:16.347 DEBUG (Thread-2 (_connect)) [RFXtrx] Send: 0x0d 0x00 0x00 0x03 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
2023-03-11 16:15:16.651 DEBUG (Thread-2 (_connect)) [RFXtrx] Recv: 0x14 0x01 0x07 0x03 0x07 0x43 0x6f 0x70 0x79 0x72 0x69 0x67 0x68 0x74 0x20 0x52 0x46 0x58 0x43 0x4f 0x4d

Don’t know what this means. Is the integration working?

After pressing 2 times On and Off buttons (power switch goes 2 times On/Off) of the IMPULS remote controller nothing happens in HA. Also there is no extra logging.
I’m lost.

Before I used this RFXcom succesfully in Domoticz (on the same Raspberry PI).
For example I used the following setting in Domoticz to add:

  • Switch ype: On/Off
  • Type: Impuls
  • House Code: K
  • Unit Code: 13

Hope someone can give me an explanation to add (manually/automatic) these devices.
I’ve also 7 Somfy blinds to add (with the Somfy integration or RFXrtx? like in Domoticz).

Finally I figured it out myself. Did cost me al lot of time and frustration that no one had the answer. I’m replying with the answer so maybe someone else can use it.

Needed for my IMPULS switches codes. Like I said:

  • Switch ype: On/Off
  • Type: Impuls
  • House Code: K
  • Unit Code: 13

Help from sourced:

0x05: ‘IMPULS’
0x4B: ‘K’

Came also cross this site:

command should be:
generateId.py -t type -s subtype -p parameters
to generate a code for a Lighting1 type device using ARC subtype, set to housecode A unit code 3

python generateId.py -t Lighting1 -s IMPULS -p K,13
gives
071005004B0130000

This was not right!

id = ‘0710’ + TYPES[subType] + ‘00’ + HOUSECODES[args[0]] + ‘0’ + args[1] + ‘00’ + ‘00’

0 is not needed and number 13 to HEX:
K = 4B and 13 =0D so the correct code is:
071005004B0D0000

Switches are working know.

Also the Somfy blinds are added as RFY:
071a0000[id][unit_code]