mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix compile standalone
This commit is contained in:
@@ -649,10 +649,12 @@ void Mqtt::ha_status() {
|
|||||||
|
|
||||||
// create the sensors - must match the MQTT payload keys
|
// create the sensors - must match the MQTT payload keys
|
||||||
// these are all from the heartbeat MQTT topic
|
// these are all from the heartbeat MQTT topic
|
||||||
|
#ifndef EMSESP_STANDALONE
|
||||||
if (!EMSESP::system_.ethernet_connected() || WiFi.isConnected()) {
|
if (!EMSESP::system_.ethernet_connected() || WiFi.isConnected()) {
|
||||||
publish_system_ha_sensor_config(DeviceValueType::INT, "WiFi RSSI", "rssi", DeviceValueUOM::DBM);
|
publish_system_ha_sensor_config(DeviceValueType::INT, "WiFi RSSI", "rssi", DeviceValueUOM::DBM);
|
||||||
publish_system_ha_sensor_config(DeviceValueType::INT, "WiFi strength", "wifistrength", DeviceValueUOM::PERCENT);
|
publish_system_ha_sensor_config(DeviceValueType::INT, "WiFi strength", "wifistrength", DeviceValueUOM::PERCENT);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
publish_system_ha_sensor_config(DeviceValueType::STRING, "EMS Bus", "bus_status", DeviceValueUOM::NONE);
|
publish_system_ha_sensor_config(DeviceValueType::STRING, "EMS Bus", "bus_status", DeviceValueUOM::NONE);
|
||||||
publish_system_ha_sensor_config(DeviceValueType::STRING, "Uptime", "uptime", DeviceValueUOM::NONE);
|
publish_system_ha_sensor_config(DeviceValueType::STRING, "Uptime", "uptime", DeviceValueUOM::NONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user