Missing entities after moving them under MQTT

Warned by HA that my manually configured MQTT stuff such as covers, sensors and switches, stop working in version 2022.12.0, I was trying to amend my config but as soon as I move an entity under the new config I am no longer able to see it.In my configuration.yaml file I have:

mqtt: !include_dir_merge_list mqtt/

then in /config/mqtt for example I have a file named start-mac.yaml that contains:

sensor:
  - name: "Tensione"
    state_topic: "1694498882.V"
    unit_of_measurement: "V"
    force_update: true
    tate_class: measurement
    device_class: voltage
  - name: "Corrente"
    state_topic: "1694498882.A"
    unit_of_measurement: "A"
    force_update: true
    state_class: measurement
    device_class: current
  - name: "Potenza"
    state_topic: "1694498882.W"
    unit_of_measurement: "W"
    force_update: true
    state_class: measurement
    device_class: power
  - name: "Sfasamento"
    state_topic: "1694498882.PF"
    unit_of_measurement: "Cos phi"
    force_update: true
    state_class: measurement
  - name: "total_energy"
    state_topic: "1694498882.KWh"
    unit_of_measurement: "kWh"
    force_update: true
    state_class: total_increasing
    device_class: energy
    icon: mdi:transmission-tower

Browsing my mqtt broker I can regularly see the topics.

What I am missing?

Thanks

The structure of the contents of start-mac.yaml is a dictionary, not a list, so change this:

mqtt: !include_dir_merge_list mqtt/

to this:

mqtt: !include_dir_merge_named mqtt/

then restart Home Assistant.

1 Like

And it looks like you are missing a ā€œsā€ in the beginning.

Yes I realised the problem but this is a typo cutting and pasting here the config.