From eff9eedc5fe8dcfdd43f2615e304369d3ba6ca97 Mon Sep 17 00:00:00 2001 From: SteWers Date: Sun, 27 Aug 2023 10:13:16 +0200 Subject: [PATCH] EnergyMargins - always send MQTT telemetry message --- tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino | 2 +- tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino index 7eec2f44b54a..aaa2d8ff0aed 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino @@ -564,7 +564,7 @@ void EnergyMarginCheck(void) { if (jsonflg) { ResponseJsonEndEnd(); MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN); -// EnergyMqttShow(); + EnergyMqttShow(); Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting } diff --git a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino index 665e64d2e011..f2e11e9b043e 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino @@ -787,7 +787,7 @@ void EnergyMarginCheck(void) { if (jsonflg) { ResponseJsonEndEnd(); MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN); -// EnergyMqttShow(); + EnergyMqttShow(); Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting }