mirror of https://github.com/arendst/Tasmota.git
EnergyMargins - always send MQTT telemetry message (#19397)
This commit is contained in:
parent
3ed1bead44
commit
dd8b85282a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue