[BT] Bump Theengs Decoder to 1.6.7 & prmac conversion to RMAC (#1844)

• Bump Theengs Decoder to 1.6.7
• Conversion of prmac decoders to RMAC, for RMAC filtering of random MAC devices, until and if OpenMQTTGateway gets Identity MAC/IRK functionality.
•HA discovery lock class added
This commit is contained in:
DigiH authored and GitHub committed 2023-12-22 13:18:14 +01:00
1 parent b317063cc4
commit f2d3239350
3 files changed
+11 -1

No files matched your search

+9
View File
@@ -1121,6 +1121,15 @@ void PublishDeviceData(JsonObject& BLEdata) {
if (abs((int)BLEdata["rssi"] | 0) < abs(BTConfig.minRssi)) { // process only the devices close enough
// Decode the payload
process_bledata(BLEdata);
// Convert prmacs to RMACS until and if OMG gets Identity MAC/IRK decoding
if (BLEdata["prmac"]) {
BLEdata.remove("prmac");
if (BLEdata["track"]) {
BLEdata.remove("track");
}
BLEdata["type"] = "RMAC";
Log.trace(F("Potential RMAC (prmac) converted to RMAC" CR));
}
// If the device is a random MAC and pubRandomMACs is false we don't publish this payload
if (!BTConfig.pubRandomMACs && (BLEdata["type"].as<string>()).compare("RMAC") == 0) {
Log.trace(F("Random MAC, device filtered" CR));
+1
View File
@@ -195,6 +195,7 @@ const char* availableHASSClasses[] = {"battery",
"humidity",
"illuminance",
"irradiance",
"lock",
"motion",
"moving",
"pm10",