mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
fix publish ha command
This commit is contained in:
@@ -349,6 +349,7 @@ void EMSESP::show_sensor_values(uuid::console::Shell & shell) {
|
|||||||
void EMSESP::publish_all(bool force) {
|
void EMSESP::publish_all(bool force) {
|
||||||
if (force) {
|
if (force) {
|
||||||
publish_all_idx_ = 1;
|
publish_all_idx_ = 1;
|
||||||
|
reset_mqtt_ha();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (Mqtt::connected()) {
|
if (Mqtt::connected()) {
|
||||||
@@ -388,7 +389,7 @@ void EMSESP::publish_all_loop() {
|
|||||||
publish_other_values();
|
publish_other_values();
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
publish_sensor_values(true);
|
publish_sensor_values(true, true);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
system_.send_heartbeat();
|
system_.send_heartbeat();
|
||||||
|
|||||||
Reference in New Issue
Block a user