RfxTrx Lighting4 PT2262

here is my solution for this kind of switches

first you have to create a code depending on the letter and the number

  • Go to home-assistant-IP:8123/dev-template
  • Use the following codes to generate an event (replace a and b1 on the last line) :
{% set Groups = {"a": "15","b": "45","c": "51","d": "54"} %}
{% set Buttons = {"b1": "15","b2": "45","b3": "51","b4": "54"} %}
{% set Cmd = {"on": "54","off": "57"} %}

09130001{{ Groups.a }}{{ Buttons.b1 }}57015E00

Then, add the given code to to Configuration >> Integrations and press Options on the RFXtrx card.

In the next window, enter the following values :

  • Check Enable device event
  • Let Off Delay empty
  • Set Signal repetitions to 3
  • Set data_bits to 16
  • Set command_on to 0x57
  • Set command_off to 0x54

You should now have a switch and a binary_sensor but the two are not linked.

I hope this will help some people