MQTT broker only show 4 devices but I have 5 and they are exposed in discover topic!

Hi All,
It me again, sadly!
I installed 5 devices with MQTT connection, but only 4 of them shown on the MQTT integration:
image
I also set mqtt discovery in the configuration yaml under esphome.
And here is the details displayed on the MQTT explorer: It showed 5 devices:
image
and here
image
I tried delete all the topic and restart Mosquito broker and the same result happened. Only four out of five displayed with new device in, old device out of the list after deletion and restarting.
please advice with thanks!
Best
Ngoc

In HA, devices are associated to entities. You can have multiple entities per device.
So here the question is: do you see the entities in HA?

What you show is not proper MQTT discovery payload, btw.
What discovery_prefix did you set in HA? By default, it’s homeassistant, not esphome

Thanks Koying for your response!
The irony is: After my deletion of discovery message and restart the broker, the new device is coming in randomly and only allow 4 to be display!
What i wanted this time is the 192168100133 to be appeared, but it is not
image
And here


And here what is shown on my HA:

Where Tầng 1 and Tầng 2 is the name of 192168100131 and 192168100132.
If i remove the Tầng 1 (192168100131) and turnoff the device, the 192168100133 jumped in.
Please advice me with thanks!
Best
ngoc

You didn’t answer any of my questions…
If 2 entities are linked to the same device, somehow, it’s normal you would see 5 entities but 4 devices.

Thanks Christ for your question! I missed your question anyhow.
There are no entity linked to the same device. I have 5 with different entity on them!
Let’s me try for this time to change the entity id to make them different in naming to see how it go!
The entity for 192168100133 are here:

type: entities
entities:
  - entity: switch.tang_3_den_1
    name: Đèn 1
  - entity: switch.tang_3_den_2
    name: Đèn 2
  - entity: switch.tang_3_den_3
    name: Đèn 3
  - entity: switch.tang_3_den_4
    name: Đèn 4
title: Tầng 3

And here for Tầng 2 (floor 2)

type: entities
entities:
  - entity: switch.tang_2_den_1
    name: Đèn 1
  - entity: switch.tang_2_den_2
    name: Đèn 2
  - entity: switch.tang_2_den_3
    name: Đèn 3
  - entity: switch.tang_2_den_4
    name: Đèn 4
title: Tầng 2

I removed MQTT from Tầng 2 and burn new esphome, the missing one (Tầng 3) is jumped in successfully for now: But still, only 4 devices out of 5!


I changed the entities totally and nothing worked at all. Only 4 out of five!
Best
Ngoc