include fullname in info command

This commit is contained in:
proddy
2021-05-02 22:07:49 +02:00
parent 23218bca7d
commit 101978f713

View File

@@ -684,6 +684,9 @@ bool EMSdevice::get_value_info(JsonObject & root, const char * cmd, const int8_t
const char * value = "value"; const char * value = "value";
json["name"] = dv.short_name; json["name"] = dv.short_name;
if (dv.full_name != nullptr) {
json["fullname"] = dv.full_name;
}
if (!tag_to_mqtt(dv.tag).empty()) { if (!tag_to_mqtt(dv.tag).empty()) {
json["circuit"] = tag_to_mqtt(dv.tag); json["circuit"] = tag_to_mqtt(dv.tag);
} }