json/info: brand and product configurable by compile variables
For MM builds brand = WLEDMM Will be used in WLED-Native - by Moustachauve Changed in bh1750, bme280, pir, json.cpp and wled.h
This commit is contained in:
@@ -189,8 +189,8 @@ private:
|
||||
JsonObject device = doc.createNestedObject(F("device")); // attach the sensor to the same device
|
||||
device[F("name")] = serverDescription;
|
||||
device[F("ids")] = String(F("wled-sensor-")) + mqttClientID;
|
||||
device[F("mf")] = "WLED";
|
||||
device[F("mdl")] = F("FOSS");
|
||||
device[F("mf")] = F(WLED_BRAND); //WLEDMM + Moustachauve/Wled-Native
|
||||
device[F("mdl")] = F(WLED_PRODUCT_NAME); //WLEDMM + Moustachauve/Wled-Native
|
||||
device[F("sw")] = versionString;
|
||||
|
||||
sprintf_P(buf, PSTR("homeassistant/binary_sensor/%s/config"), uid);
|
||||
|
||||
Reference in New Issue
Block a user