Split RPI GPIO switches into separate groups

Hi,

I followed this documentation: https://www.home-assistant.io/integrations/rpi_gpio/ and created this configuration:

switch:
  - platform: rpi_gpio
    invert_logic: true
    ports:
      20: Amplifier - Sound
      21: Amplifier - Power
      22: Anchor Light
      23: IR Light

It works, but I don’t like the fact that all the switches are bundled together under the same block, so I tried the following:

switch:
  - platform: rpi_gpio
    invert_logic: true
    ports:
      20: Amplifier - Sound
      21: Amplifier - Power
  - platform: rpi_gpio
    invert_logic: true
    ports:
      22: Anchor Light
      23: IR Light

It still didn’t unbundle it. Putting two separate “Switch” sections doesn’t work at all.

In both cases above my UI looks like the Left hand side. What is the right config to achieve the right-hand-side?

Thanks!