RFLINK Light smart plug

{'id': 'ab400d_4b_1', 'command': 'on'}  1_On  
{'id': 'ab400d_4b_1', 'command': 'off'} 1_Off
{'id': 'ab400d_4b_2', 'command': 'on'}  2_On
{'id': 'ab400d_4b_2', 'command': 'off'} 2_Off

The 1_On 1_Off information is a comment and is not part of the capture.

How do I integrate this into the YAML configuration? I’ve tried several configurations following the RFLINK documentation.:

light:
  - platform: rflink
    automatic_add: false
    devices:
        ab400d_4b_1:
            name: P1

So I still can’t see my entities. For your information, during automatic discovery, in developer mode, I saw this in the states:

light.ab400d_4b_1
État
onsupported_color_modes:
  - onoff
color_mode: null
friendly_name: P.1_OFF
supported_features: 0

I don’t know where this configuration is located, but it doesn’t seem to be possible to integrate it into the configuration.YAML file. How can I integrate it manually, please, with an On and an Off button?

Thanks for y’r response

Sorry for the language alert, it’s fixed now.

I try other form ;

light:
  - platform: rflink
    automatic_add: false
    devices:
      tristate_0888aa_0:
        name: P1
      tristate_0888aa_2:
        name: P1_Off
      tristate_088a2a_0:
        name: P2
      tristate_088a2a_2:
        name: P2_Off
      tristate_088a8a_0:
        name: P3
      tristate_088a8a_2:
        name: P3_Off

Here the result in device and service :


The device labels have reverted to the names of the automatically detected devices that I had deleted… I don’t understand!

Is there anything I need to delete from the old configuration?