From 10ee56b9da6061f67ed48782c7d9a9d60077a275 Mon Sep 17 00:00:00 2001 From: Simon Hailes Date: Wed, 17 Feb 2021 10:47:34 +0000 Subject: [PATCH] change MQTT display of TRIGGERED sensors. --- tasmota/xsns_62_esp32_mi_ble.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/xsns_62_esp32_mi_ble.ino b/tasmota/xsns_62_esp32_mi_ble.ino index 5aaf238a4..7578dbae8 100644 --- a/tasmota/xsns_62_esp32_mi_ble.ino +++ b/tasmota/xsns_62_esp32_mi_ble.ino @@ -2835,7 +2835,8 @@ void MI32ShowTriggeredSensors(){ cnt++; ResponseAppend_P(PSTR(",")); - MI32GetOneSensorJson(sensor, 0); + // hide sensor name if HASS or option6 + MI32GetOneSensorJson(sensor, (maxcnt == 1)); int mlen = strlen(TasmotaGlobal.mqtt_data); // if we ran out of room, leave here.