however i migrated one from a device called ESP8266-co2 to a device called ESP32-co2 and noticed the co2 sensor was instantly working without being discovered as a new device.
It looks like MQTT AD does not use the name as part of the unique sensor id.
I also noticed that when i have a device with a plain name(without - in it) it is recognized differently
Question 1:does MQTT AD use devicename as part for creating unique id's (eg, when you rename de device it is discovered as a new device)
Question 2: could it be that the - in the device name/friendly name is causing this
Code: Select all
2025-12-30 15:41:49.416 Status: MQTT Auto Discovery Client Gateway: Discovered: douchelamp/douchelamp (unique_id: ESPlightdouchelamp) supported_color_modes: { color_temp, rgb }
2025-12-30 15:23:59.432 Status: MQTT Auto Discovery Client Gateway: Discovered: ESP32-Watermeter (Meterkast Temperatuur)/ESP32-Watermeter (Meterkast Temperatuur) (unique_id: ESPsensormeterkast_temperatuur)