As per my previous topic Observability, logging and MQTT I have enabled MQTT so that I can receive updates and store them centrally. I get all the “benefits” of using the API, however I don’t agree with them all and there are downsides also. I actually prefer MQTT myself. That said, I will be cutting back over to the API until the issue here is resolved.
It appears you can’t have multiple devices if you use MQTT since the uniq_id for all the entities is not actually unique. For example:
{
"pos_t": "garage-door-opener-car/cover/garage_door/position/state",
"set_pos_t": "garage-door-opener-car/cover/garage_door/position/command",
"name": "Garage Door",
"stat_t": "garage-door-opener-car/cover/garage_door/state",
"cmd_t": "garage-door-opener-car/cover/garage_door/command",
"avty_t": "garage-door-opener-car/status",
"uniq_id": "ESPcovergarage_door",
"dev":
{
"ids": "f412fa9c449c",
"name": "Garage Door Opener Car",
"sw": "esphome v2024.6.1 Jun 21 2024, 08:45:30",
"mdl": "esp32-s3-devkitc-1",
"mf": "espressif",
"sa": ""
}
}
and
{
"pos_t": "garage-door-opener-workshop/cover/garage_door/position/state",
"set_pos_t": "garage-door-opener-workshop/cover/garage_door/position/command",
"name": "Garage Door",
"stat_t": "garage-door-opener-workshop/cover/garage_door/state",
"cmd_t": "garage-door-opener-workshop/cover/garage_door/command",
"avty_t": "garage-door-opener-workshop/status",
"uniq_id": "ESPcovergarage_door",
"dev":
{
"ids": "34b7da6119d0",
"name": "Garage Door Opener Workshop",
"sw": "esphome v2024.6.1 Jun 21 2024, 08:36:25",
"mdl": "esp32-s3-devkitc-1",
"mf": "espressif",
"sa": ""
}
}
Also, I would recommend setting the two “name” fields to the same value so they are unique also.