Xiaomi MiIO switch - how to add multiple entries in configuration.yaml

I’m trying to add 1 plug and 2 strips with following configuration.yaml but I can only get 1 switch/strip to show up. Its me being noob user and I cant figure out what I’m missing.

switch:

  • platform: xiaomi_miio
    name: Switch 1
    host: IP Address
    token: YOUR_TOKEN
    model: chuangmi.plug.m1
    name: Switch 2
    host: IP Address
    token: YOUR_TOKEN
    model: zimi.powerstrip.v2
    name: Switch 3
    host: IP Address
    token: YOUR_TOKEN
    model: zimi.powerstrip.v2

Thanks

- platform: xiaomi_miio
  name: Switch 1
  host: IP Address
  token: YOUR_TOKEN
  model: chuangmi.plug.m1
- platform: xiaomi_miio
  name: Switch 2
  host: IP Address
  token: YOUR_TOKEN
  model: zimi.powerstrip.v2
- platform: xiaomi_miio
  name: Switch 3
  host: IP Address
  token: YOUR_TOKEN
  model: zimi.powerstrip.v2
1 Like