Skip to content

Commit

Permalink
EnergyMargins - always send MQTT telemetry message (#19397)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteWers authored Aug 27, 2023
1 parent 3ed1bea commit dd8b852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_03_energy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_03_esp32_energy.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit dd8b852

Please # to comment.