mirror of
https://github.com/arendst/Tasmota.git
synced 2026-10-27 06:22:25 +00:00
EnergyMargins - always send MQTT telemetry message (#19397)
This commit is contained in:
1 parent
3ed1bead44
commit
dd8b85282a
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user