Skip to content

Commit

Permalink
Config: Rotex HPSU fa0a20-set check if mode is not heating
Browse files Browse the repository at this point in the history
This is to prevent malfunctions of the control unit.
Ref #237
  • Loading branch information
crycode-de committed Nov 2, 2024
1 parent 5bc1f84 commit 46d4941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion well-known-messages/configs/rotex-hpsu-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5048,7 +5048,7 @@
"booleanMask": 0,
"booleanInvert": false,
"customScriptRead": "//",
"customScriptWrite": "buffer = Buffer.from([0x30, 0x00, 0xFA, 0x0A, 0x20, 0x01, 0x00]);\nif (value >= 3) buffer[5] |= 0b00001000; // T1\nif (value >= 6) buffer[5] |= 0b00001010; // T1 + T2\nif (value >= 9) buffer[5] |= 0b00001110; // T1 + T2 + T3",
"customScriptWrite": "// Modus prüfen\nconst mode = (await getStateAsync('180.fa0112'))?.val;\nif (mode === 3 /* heizen */) {\nlog.warn('Setzen der Heizstäbe im Modus Heizen nicht möglich, da dies zu einer Fehlpunktion des Gerätes führen würde.');\n return false;\n}\nbuffer = Buffer.from([0x30, 0x00, 0xFA, 0x0A, 0x20, 0x01, 0x00]);\nif (value >= 3) buffer[5] |= 0b00001000; // T1\nif (value >= 6) buffer[5] |= 0b00001010; // T1 + T2\nif (value >= 9) buffer[5] |= 0b00001110; // T1 + T2 + T3",
"customDataType": "number",
"commonRole": "level.power",
"commonStates": "0=0,3=3,6=6,9=9"
Expand Down
3 changes: 3 additions & 0 deletions well-known-messages/configs/rotex-hpsu.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ Request data starts with `21 0A`.

### latest

- ❗ Version >= 2.0.0 vom canbus-Adapter wird benötigt
- Added mode (fa0112) check to `fa0a20` to prevent set while in heating mode

### v1.8.0

- Added `fa0694-set`
Expand Down

0 comments on commit 46d4941

Please sign in to comment.