mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
send CMD value for number as NAN
This commit is contained in:
@@ -1767,7 +1767,11 @@ bool EMSdevice::generate_values(JsonObject output, const int8_t tag_filter, cons
|
||||
|
||||
// we don't want Commands in Console ('show values')
|
||||
else if (dv.type == DeviceValueType::CMD && output_target != EMSdevice::OUTPUT_TARGET::CONSOLE) {
|
||||
json[name] = "";
|
||||
if (dv.uom == DeviceValueUOM::NONE) {
|
||||
json[name] = "";
|
||||
} else {
|
||||
json[name] = NAN;
|
||||
}
|
||||
}
|
||||
|
||||
// check for value outside min/max range and adapt the limits to avoid HA complains
|
||||
|
||||
Reference in New Issue
Block a user