Fixed issue where step up and down command bytes were reversed on receive.

* TX commands for 80-bit controllers now send the last 3 bytes as witnessed by others
* RX commands for step up/down only translate the last byte as a command byte.
* Fixed inverted step commands for the API.
This commit is contained in:
Robert Strouse 2023-03-20 17:11:28 -07:00
parent d3acf6bb5f
commit ab7cdba519
8 changed files with 18 additions and 14 deletions

View file

@ -22,13 +22,13 @@ enum class somfy_commands : byte {
Prog = 0x8,
SunFlag = 0x9,
Flag = 0xA,
StepUp = 0xB,
StepDown = 0xB,
UnknownC = 0xC,
UnknownD = 0xD,
UnknownE = 0xE,
UnknownE = 0xE, // This command byte has been witnessed in the wild but cannot tell if it is from Somfy. No rolling code is sent with this and it is 56-bits.
UnknownF = 0xF,
// Command extensions for 80 bit frames
StepDown = 0x8B
StepUp = 0x8B
};
enum class shade_types : byte {
roller = 0x00,