diff --git a/code/espurna/homeassitant.ino b/code/espurna/homeassistant.ino similarity index 98% rename from code/espurna/homeassitant.ino rename to code/espurna/homeassistant.ino index e2117f29..a869a2ad 100644 --- a/code/espurna/homeassitant.ino +++ b/code/espurna/homeassistant.ino @@ -18,6 +18,7 @@ bool _haSendFlag = false; void _haWebSocketOnSend(JsonObject& root) { root["haVisible"] = 1; root["haPrefix"] = getSetting("haPrefix", HOMEASSISTANT_PREFIX); + root["haEnabled"] = getSetting("haEnabled", HOMEASSISTANT_ENABLED).toInt() == 1; } #if SENSOR_SUPPORT