Skip to content

Commit

Permalink
EnergyMargins - always send MQTT telemetry message
Browse files Browse the repository at this point in the history
  • Loading branch information
SteWers committed Aug 27, 2023
1 parent 3ed1bea commit eff9eed
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 eff9eed

Please sign in to comment.