Configuration MFI and SOlax

Hello, I am new to HA, I am trying integrace my home devices. On the internet i found solax integration

This integration is stored in the file solax.yaml.

In my configuration file I have line:

sensor: !include solax.yaml

Now I need add integration off UBNT MFI cotroller

Swtiches are ok - in the configuration.yaml I have:

switch:

  • platform: template
    switches:
    ewelink_virtual_switch:
    turn_on:
    service: switch.turn_on
    turn_off:
    service: switch.turn_off
  • platform: mfi
    host: mfi.logout.cz
    username: Admin
    password: xxxx
    verify_ssl: false

But I do not know where to add

sensor:

  • platform: mfi
    host: mfi.logout.cz
    username: Admin
    password: xxxx
    verify_ssl: false

It is not possible to add this to configuration.yaml - duplicate mapping key.

Can you help me ??

Hello,
I solved this myself

I split config into 2 yaml files in directory sensor and load it using:

sensor: !include_dir_merge_list sensors

configuration.yaml

Thanks