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 authored and weblate committed Nov 3, 2024
1 parent 27e0b1c commit 0a2d030
Showing 1 changed file with 1 addition 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 @@ -1365,7 +1365,7 @@
"dataEncoding": "latin1",
"booleanMask": 0,
"booleanInvert": false,
"customScriptRead": "if ((buffer[0] & 0x0F) === 0x02 && buffer[2] === 0xFA && buffer[3] === 0x0A && buffer[4] === 0x20) {\n value = 0;\n if (buffer[5] & 0b00001000) value += 3; // T1\n if (buffer[5] & 0b00000010) value += 3; // T2\n if (buffer[5] & 0b00000100) value += 3; // T3\n}",
"customScriptRead": "// 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}\nif ((buffer[0] & 0x0F) === 0x02 && buffer[2] === 0xFA && buffer[3] === 0x0A && buffer[4] === 0x20) {\n value = 0;\n if (buffer[5] & 0b00001000) value += 3; // T1\n if (buffer[5] & 0b00000010) value += 3; // T2\n if (buffer[5] & 0b00000100) value += 3; // T3\n}",
"customScriptWrite": "//",
"customDataType": "number",
"commonRole": "value.power",
Expand Down

0 comments on commit 0a2d030

Please sign in to comment.