2 Commits

Author SHA1 Message Date
Proddy
a3df77171b Merge pull request #2898 from g6094199/patch-1
Update mqtt.cpp: use the same nomenclature as Tasmota and OpenBK uses…
2026-01-05 10:10:14 +01:00
g6094199
aa6f5c50b2 Update mqtt.cpp: use the same nomenclature as Tasmota and OpenBK uses for Homeassistant
to be compliant to the HA typical nomenclatura use the same wording.

since we are anyway connecting via wifi or ethernet the wording of "WIFI rssi" is redundant. just use "RSSI" as other platforms do.
2026-01-05 09:03:12 +01:00

View File

@@ -562,8 +562,8 @@ void Mqtt::ha_status() {
// Note we don't use camelCase as it would change the HA entity_id and impact historic data
#ifndef EMSESP_STANDALONE
if (!EMSESP::system_.ethernet_connected() || WiFi.isConnected()) {
publish_system_ha_sensor_config(DeviceValueType::INT8, "WiFi RSSI", "rssi", DeviceValueUOM::DBM);
publish_system_ha_sensor_config(DeviceValueType::INT8, "WiFi strength", "wifistrength", DeviceValueUOM::PERCENT);
publish_system_ha_sensor_config(DeviceValueType::INT8, "RSSI", "rssi", DeviceValueUOM::DBM);
publish_system_ha_sensor_config(DeviceValueType::INT8, "Signal", "wifistrength", DeviceValueUOM::PERCENT);
}
#endif
@@ -1628,4 +1628,4 @@ void Mqtt::add_value_bool(JsonObject doc, const char * name, bool value) {
}
}
} // namespace emsesp
} // namespace emsesp