From ae499eb73a5685a17eafec359309ae4abb28eb54 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Mon, 10 Jun 2024 10:42:02 +0200 Subject: [PATCH] MQTT is not reporting the correct LastChange (#21605) I assume this is just missing. I got some side effects on shutters where on MQTT commands the source is still the LAST one before the MQTT --- tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino b/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino index 6cde49eb3..298c0719c 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_02_9_mqtt.ino @@ -639,7 +639,8 @@ void MqttDataHandler(char* mqtt_topic, uint8_t* mqtt_data, unsigned int data_len if (XdrvCall(FUNC_MQTT_DATA)) { return; } ShowSource(SRC_MQTT); - + TasmotaGlobal.last_source = SRC_MQTT; + CommandHandler(topic, (char*)mqtt_data, data_len); if (Mqtt.disable_logging) {