mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
include fullname in info command
This commit is contained in:
@@ -684,6 +684,9 @@ bool EMSdevice::get_value_info(JsonObject & root, const char * cmd, const int8_t
|
||||
const char * value = "value";
|
||||
|
||||
json["name"] = dv.short_name;
|
||||
if (dv.full_name != nullptr) {
|
||||
json["fullname"] = dv.full_name;
|
||||
}
|
||||
if (!tag_to_mqtt(dv.tag).empty()) {
|
||||
json["circuit"] = tag_to_mqtt(dv.tag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user