mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
HA cleanup
This commit is contained in:
@@ -514,7 +514,7 @@ void Mqtt::ha_status() {
|
||||
doc["uniq_id"] = FJSON("ems-esp-system");
|
||||
doc["~"] = System::hostname(); // default ems-esp
|
||||
// doc["avty_t"] = FJSON("~/status"); // commented out, as it causes errors in HA sometimes
|
||||
doc["json_attr_t"] = FJSON("~/heartbeat");
|
||||
// doc["json_attr_t"] = FJSON("~/heartbeat"); // store also as HA attributes
|
||||
doc["stat_t"] = FJSON("~/heartbeat");
|
||||
doc["name"] = FJSON("EMS-ESP status");
|
||||
doc["val_tpl"] = FJSON("{{value_json['status']}}");
|
||||
|
||||
Reference in New Issue
Block a user