RFXtrx Switch: Device ID keep changeing

Well, after some troubleshooting I see that the switches do not change ID if I add them under “swich:”

switch:
  • platform: rfxtrx
    automatic_add: False
    devices:
    0b11002901365c2e0b000060: #17 Stue - Bryter Venstre
    name: rfxtrx_17_a
    0b11003501365c2e0c000060: #17 Stue - Bryter Høyre
    name: rfxtrx_17_b
    0b11003d013643d60b000060: #18 Soverom - Bryter Venstre
    name: rfxtrx_18_a
    0b110047013643d60c000060: #18 Soverom - Bryter Høyre
    name: rfxtrx_18_b
    0b11000a0134ff060b000050: #38 Stue/Sofa - Bryter Venstre
    name: rfxtrx_38_a
    0b11001a0134ff060c000040: #38 Stue/Sofa - Bryter Høyre
    name: rfxtrx_38_b

But how can I display the state in the GUI? If i add them they don’t display, not in normal UI and not in lovelace
EDIT: forgot to put switch. before entity name, works now