Skip to content

Commit

Permalink
Add raw data for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikakoivisto committed Jun 12, 2024
1 parent 11d254a commit 09911e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ class App {
mac: measurement.mac,
rssi: measurement.rssi,
type: "ACT_MI_TEMP",
updated: measurement.ts
updated: measurement.ts,
rawData: measurement.data
};
let mac = measurement.mac.replaceAll(':','').toLowerCase();

Expand All @@ -120,6 +121,7 @@ class App {
type: "Mi Flora",
updated: measurement.ts,
rssi: measurement.rssi,
rawData: measurement.data
};
var type;
switch (dataType) {
Expand Down Expand Up @@ -324,7 +326,8 @@ class App {
"updated": "{{value_json.updated}}",
"rssi": "{{value_json.rssi}}",
"battery": "{{value_json.battery}}",
"voltage": "{{value_json.voltage}}"
"voltage": "{{value_json.voltage}}",
"rawData": "{{value_json.rawData}}
}`;

let discoveryConfig = {
Expand Down

0 comments on commit 09911e8

Please sign in to comment.