From 0fce283532fefd1860f438ac4ac16c4e2dfef416 Mon Sep 17 00:00:00 2001 From: nicandris Date: Sat, 19 Sep 2020 14:34:16 +0200 Subject: [PATCH] included prefix3 in topic --- tasmota/xdrv_23_zigbee_2_devices.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_2_devices.ino b/tasmota/xdrv_23_zigbee_2_devices.ino index 26667786a..6951f626b 100644 --- a/tasmota/xdrv_23_zigbee_2_devices.ino +++ b/tasmota/xdrv_23_zigbee_2_devices.ino @@ -898,7 +898,7 @@ void Z_Devices::jsonPublishFlush(uint16_t shortaddr) { if (Settings.flag4.zigbee_distinct_topics) { if (Settings.flag4.zb_topic_fname && fname) { char frtopic[13 + strlen(fname)]; - snprintf_P(frtopic, sizeof(frtopic), PSTR("tele/%s/" D_RSLT_SENSOR), fname); + snprintf_P(frtopic, sizeof(frtopic), PSTR("%s/%s/" D_RSLT_SENSOR), SettingsText(SET_MQTTPREFIX3), fname); MqttPublish(frtopic, Settings.flag.mqtt_sensor_retain); } else { char subtopic[16];