Skip to content

Commit

Permalink
Merge pull request #2361 from proddy/dev
Browse files Browse the repository at this point in the history
include CPU temp in heartbeat MWTT topic for ESP32
  • Loading branch information
proddy authored Jan 19, 2025
2 parents 01793dd + 92d816b commit 6e29de4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ void Mqtt::ha_status() {
publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx writes", "txwrites", DeviceValueUOM::NONE);
publish_system_ha_sensor_config(DeviceValueType::INT8, "Tx fails", "txfails", DeviceValueUOM::NONE);

#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2
#if CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32
publish_system_ha_sensor_config(DeviceValueType::INT8, "CPU temperature", "temperature", DeviceValueUOM::DEGREES);
#endif

Expand Down
3 changes: 0 additions & 3 deletions src/core/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

#ifndef EMSESP_STANDALONE
#include <esp_wifi.h>
#if CONFIG_IDF_TARGET_ESP32
// #include <esp_bt.h>
#endif
#include <ETH.h>
#include <uuid/syslog.h>
#endif
Expand Down

0 comments on commit 6e29de4

Please sign in to comment.