From f9ef29071576a93f534043a6b277184bba5b0441 Mon Sep 17 00:00:00 2001 From: Tilo <63953734+ullriti@users.noreply.github.com> Date: Fri, 4 Oct 2024 21:32:27 +0200 Subject: [PATCH 1/2] MLR003 REV2.4: New Temperature_Drop_Detection Bit --- vendor/micropelt/mlr003.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/micropelt/mlr003.js b/vendor/micropelt/mlr003.js index aaf20befe7..ba712a5376 100644 --- a/vendor/micropelt/mlr003.js +++ b/vendor/micropelt/mlr003.js @@ -8,6 +8,7 @@ function decodeUplink(input) { Flow_Temperature: input.bytes[2]*0.5, Ambient_Sensor_Raw: input.bytes[3]*0.25, Ambient_Temperature: input.bytes[4]*0.25, + Temperature_Drop_Detection: input.bytes[5]>>7 & 0x01, Energy_Storage: input.bytes[5]>>6 & 0x01, Harvesting_Active: input.bytes[5]>>5 & 0x01, Ambient_Sensor_Failure: input.bytes[5]>>4 & 0x01, From f3fe9fc397820501f45df75f58dc6ef862ade0ea Mon Sep 17 00:00:00 2001 From: Tilo <63953734+ullriti@users.noreply.github.com> Date: Sun, 13 Oct 2024 13:11:13 +0200 Subject: [PATCH 2/2] Update mlr003-codec.yaml --- vendor/micropelt/mlr003-codec.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vendor/micropelt/mlr003-codec.yaml b/vendor/micropelt/mlr003-codec.yaml index 82dd02e920..2f223ab514 100644 --- a/vendor/micropelt/mlr003-codec.yaml +++ b/vendor/micropelt/mlr003-codec.yaml @@ -15,6 +15,7 @@ uplinkDecoder: Flow_Temperature: 106.00 Ambient_Sensor_Raw: 60.75 Ambient_Temperature: 40.25 + Temperature_Drop_Detection: 0 Energy_Storage: 0 Harvesting_Active: 1 Ambient_Sensor_Failure: 0 @@ -42,6 +43,7 @@ uplinkDecoder: Flow_Temperature: 13.50 Ambient_Sensor_Raw: 15.00 Ambient_Temperature: 15.00 + Temperature_Drop_Detection: 0 Energy_Storage: 0 Harvesting_Active: 0 Ambient_Sensor_Failure: 0 @@ -69,6 +71,7 @@ uplinkDecoder: Flow_Temperature: 33 Ambient_Sensor_Raw: 28.75 Ambient_Temperature: 24 + Temperature_Drop_Detection: 0 Energy_Storage: 0 Harvesting_Active: 1 Ambient_Sensor_Failure: 0 @@ -94,6 +97,7 @@ uplinkDecoder: Flow_Temperature: 22 Ambient_Sensor_Raw: 19.75 Ambient_Temperature: 19.25 + Temperature_Drop_Detection: 0 Energy_Storage: 0 Harvesting_Active: 0 Ambient_Sensor_Failure: 0