mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add default HA icon for each device
This commit is contained in:
@@ -687,6 +687,7 @@ void Mqtt::ha_status() {
|
||||
// doc["json_attr_t"] = FJSON("~/heartbeat"); // store also as HA attributes
|
||||
doc["stat_t"] = FJSON("~/heartbeat");
|
||||
doc["name"] = FJSON("EMS-ESP status");
|
||||
doc["ic"] = F_(icondevice);
|
||||
doc["val_tpl"] = FJSON("{{value_json['status']}}");
|
||||
|
||||
JsonObject dev = doc.createNestedObject("dev");
|
||||
|
||||
Reference in New Issue
Block a user