mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fixed link to the EMS-ESP in HA
prefix "http:// " is needed though
This commit is contained in:
@@ -629,9 +629,9 @@ void Mqtt::ha_status() {
|
|||||||
dev["mf"] = "proddy";
|
dev["mf"] = "proddy";
|
||||||
dev["mdl"] = "EMS-ESP";
|
dev["mdl"] = "EMS-ESP";
|
||||||
if (EMSESP::system_.ethernet_connected())
|
if (EMSESP::system_.ethernet_connected())
|
||||||
dev["cu"] = ETH.localIP().toString();
|
dev["cu"] = "http://" + ETH.localIP().toString();
|
||||||
else
|
else
|
||||||
dev["cu"] = WiFi.localIP().toString();
|
dev["cu"] = "http://" + WiFi.localIP().toString();
|
||||||
JsonArray ids = dev.createNestedArray("ids");
|
JsonArray ids = dev.createNestedArray("ids");
|
||||||
ids.add("ems-esp");
|
ids.add("ems-esp");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user