YAML issue when defining an RFLink swich

Hi!

I’m trying to set up my RFLink devices but I have a weird issue when I try to name a device.

According to the doc I should use this syntax :

switch:
  - platform: rflink
    devices:
      newkaku_021e8402_d:
        name: octopi
      newkaku_021e8402_5:
        name: MARC

However this configuration breaks HA and I end up in 404.

The config working is this one :

switch:
  - platform: rflink
    devices:
      newkaku_021e8402_d: {name: octopi}

However if I add another device with this syntax I end up again with a 404.

switch:
  - platform: rflink
    devices:
      newkaku_021e8402_d: {name: octopi}
      newkaku_021e8402_5: {name: MARC}

I’m sure it’s a yaml issue but I can’t figure out the solution.

Thanks for your help

Look further at the documentation and the yaml examples as they show this for multiple devices:

    devices:
      newkaku_0000c6c2_1:
        name: Ceiling fan
      conrad_00785c_0a:
        name: Motion sensor kitchen

Hi Rossk,

I saw this part of the doc and tried it but as I say, I end up in 404 error if I configure my yaml this way

PS : I just saw that I originally posted with the wrong syntax but my test were made with the one you sent rossk :slight_smile:

I opened an issue after my last test : https://github.com/home-assistant/core/issues/75433