mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
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) {
|
if (jsonflg) {
|
||||||
ResponseJsonEndEnd();
|
ResponseJsonEndEnd();
|
||||||
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
|
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
|
||||||
// EnergyMqttShow();
|
EnergyMqttShow();
|
||||||
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -787,7 +787,7 @@ void EnergyMarginCheck(void) {
|
|||||||
if (jsonflg) {
|
if (jsonflg) {
|
||||||
ResponseJsonEndEnd();
|
ResponseJsonEndEnd();
|
||||||
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
|
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
|
||||||
// EnergyMqttShow();
|
EnergyMqttShow();
|
||||||
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
Energy->margin_stable = 3; // Allow 2 seconds to stabilize before reporting
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user