Two media players in the configuration

Hello,

I want to configure 2 media players in the configuration file.

I have this in configuration.yaml:

media_player: !include media_player.yaml

And this is my media_player.yaml:

- name: TVBox1
  platform: kodi
  host: 192.168.1.45

- name: TVBox2
  platform: kodi
  host: 192.168.1.46

Both devices are now in HA, but the name of the box just work for TVBox2, no for TVBox1.

Am I configure something wrong?

Kind regards.

What version of HA are you running? Configuration.yaml doesn’t appear to be supported anymore and each kodi should be discovered or configured via integrations -> + -> kodi.

Thanks Petro,

The version 2020.12.2 in a docker container.

The devices work perfect, the problem is the name of the tvbox, on one of them it doesn’t appers , maybe this is not the correcto way to declare the device name:

- name: TVBox1
  platform: kodi
  host: 192.168.1.45

- name: TVBox2
  platform: kodi
  host: 192.168.1.46

Regards.

I still recommend removing both of those and configuring via the UI.