diff --git a/tasmota/xsns_62_esp32_mi_ble.ino b/tasmota/xsns_62_esp32_mi_ble.ino index 44a475942956..8b7b760bae12 100644 --- a/tasmota/xsns_62_esp32_mi_ble.ino +++ b/tasmota/xsns_62_esp32_mi_ble.ino @@ -1941,9 +1941,21 @@ void MI32EverySecond(bool restart){ MI32TimeoutSensors(); if (MI32.option.MQTTType == 0){ + // show tas style sensor MQTT MI32ShowSomeSensors(); - } else { + } + + if (MI32.option.MQTTType == 1 +#ifdef USE_HOME_ASSISTANT + || + Settings.flag.hass_discovery +#endif + ) { + // these two share a counter + // discovery only sent if hass_discovery MI32DiscoveryOneMISensor(); + // show independent style sensor MQTT + // note - if !MQTTType, then this is IN ADDITION to 'normal' MI32ShowOneMISensor(); }