From 7493aad8f669e16b33fb552c9bea372736e1a114 Mon Sep 17 00:00:00 2001 From: Rogier van Staveren Date: Thu, 27 Jun 2024 15:15:24 +0200 Subject: [PATCH] Fix weather4 protocol --- rfcontrol/protocols/weather4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcontrol/protocols/weather4.py b/rfcontrol/protocols/weather4.py index d119975..bc641b7 100644 --- a/rfcontrol/protocols/weather4.py +++ b/rfcontrol/protocols/weather4.py @@ -64,7 +64,7 @@ def decode(pulses): decoded = { "id": int(binary[:8], 2), - "unit": int(binary[10:12], 2), + "unit": int(binary[36:40], 2), "temperature": temperature, "humidity": humidity, "lowBattery": lowBattery,