use DeviceTypeUniqueID

This commit is contained in:
proddy
2024-10-10 21:26:39 +01:00
parent 31cfdc6604
commit a001a31401

View File

@@ -483,8 +483,7 @@ void WebCustomEntityService::generate_value_web(JsonObject output, const bool is
JsonObject obj;
if (is_dashboard) {
// TODO make #define for 99
root_obj["id"] = (99 * 100) + index; // make unique
root_obj["id"] = (EMSdevice::DeviceTypeUniqueID::CUSTOM_UID * 100) + index; // make unique
obj = root_obj["dv"].to<JsonObject>();
} else {
obj = root_obj;