RFlink: How can I add a kaku light without remote?

So when i put the switch / light or so in learning mode, can i sent than a generated code?
I could add one light with a code I found on the web, but is there a way to generate codes?

switch:

  • platform: rflink
    devices:
    #dummyswitches
    newkakuswitch_0000c6c2_1: {}

other codes aren`t working

You should be able to, I have plenty I just generated codes for. But they look like

newkaku_03a0b810_1

without the switch part.

ik must do something wrong, because now non of the codes are working correctly, and also after reboot my devices with remote are not working anymore till i once pressed the remote.