From 26400c534f20cdd22f9233419f088594415d5b31 Mon Sep 17 00:00:00 2001 From: cjkas Date: Sun, 19 Apr 2026 11:07:53 +0200 Subject: [PATCH] Fix off-by-one bug in RTW protocol decoder. The RTW decoder formula encKey - 133 was off by one versus the RTW encoder (which maps command N to encKey N + 132). This caused every non-My RTW command to decode as the wrong button (e.g. Up decoded as My, Down as MyUp). Also adds rawCmd diagnostic field to received frames for protocol debugging. --- data-src/index.html | 2 +- data-src/index.js | 3 ++- data-src/main.css | 5 +++++ src/Somfy.cpp | 11 +++++++++-- src/Somfy.h | 1 + 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/data-src/index.html b/data-src/index.html index 3875bb3..e64b0e6 100644 --- a/data-src/index.html +++ b/data-src/index.html @@ -992,7 +992,7 @@