Problem with creating two switches with 2 broadlink minis

My situation is i have 2 broadlink minis in two different rooms and a want to create 2 switches. 1 for each room.
This is my code in switches.yaml

- platform: broadlink
  mac: 'c8:f7:42:16:xx:xx'
  switches:
    - name: Text Tv Sovrummet
      command_on: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
      command_off: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
- platform: broadlink
  mac: 'c8:f7:42:82:xx:xx'
  switches:
    - name: Text Tv Lucas Rum
      command_on: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
      command_off: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F

The first one correctly creates the switch, but the second one doesnt… What on earth is going on? Are they not identical?

Try this

- platform: broadlink
  mac: 'c8:f7:42:16:xx:xx'
  switches:
    - name: Text Tv Sovrummet
      command_on: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
      command_off: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQ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xAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F

You are using twice ‘- platform: broadlink’
I think the second one must be removed
Different as nevermind mentioned i think the second MAC is still needed

So I think it must be:

- platform: broadlink
  mac: 'c8:f7:42:16:xx:xx'
  switches:
    - name: Text Tv Sovrummet
      command_on: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
      command_off: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
  mac: 'c8:f7:42:82:xx:xx'
  switches:
    - name: Text Tv Lucas Rum
      command_on: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F
      command_off: JgCIAQ0wDQAHwA4ABvQOOA0tEDwMAAatFTQMLBcrFDkGMQ85DTEPAAa0DnwNMA4ABq8TMhAyDy4UAAatFDUPMA4ABvIULBMzEjUNAAarFjcNLhEtEjETNA8tFS8RAAawFC4RLhYtEy8SMRQtFTQPAAQPUxAsECsQKxAsDywQKxAYDywQFxAYEBcQGC8LLxIwEqEVLRUuFSwUBg7FUxAsECsQKxAsDywQKxAYDywQGA8YEBcQGAADEVMQMQosECsQKxAsECsQFxAsEBcQGBAXEBgAAxNTECsQLA8sECsQKxAsDxgQKxAYEBcQGBAXAAMUUw8sECsQKxAsDywQKxAYDywQGA8YEBcQGMoUMRQrFQABsFMQLA8sECsQKxAsDywQFxAsDxgQGA8YEBgAAo0PKxQyWRArECsQLA8sECsQKxAYECsQGA8YEBgPGAAFShMzES0VLRUzECwQMxQ3CwAGsxEpFTEPMRH9Ey0SMBUABrEQAAd2Di4UAAe7DjATAAaxDn4MAAczDHIRAA0F

Mm, that would only make the one in my bedroom send signals. Second switch is for the one in my kids room to send a signal.

exactly, you are right

duplicated mapping key at line 7, column 3:
mac: ‘c8:f7:42:82:xx:xx’
^

Didnt work unfortunately

You removed the second paltform: broadlink?

Yeah i did

Strange.
Are there errors in your log?

No, nothing in the error logs either, the switch is simply not created.

I don’t understand to be honest.
Your sure your MAC adres is correct?

By the way I do use not quotes around my MAC adres:

switch:
  - platform: broadlink
    mac: C8:F7:42:62:XX:XX
    switches:

You can also try to use the “new” method?

Did you add your second device at integration?

Yeah, they are both shown in integrations. Trying without quotations now.

Edit: nope no luck

If you look in entities and devices both devices are showing up?