Skip to content

Commit

Permalink
[lcn] Fix processing of logic function "all fulfilled" status message (
Browse files Browse the repository at this point in the history
…openhab#15649)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
  • Loading branch information
fwolter authored and querdenker2k committed Oct 29, 2023
1 parent 56aaac8 commit 584957a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void handleStatusMessage(Matcher matcher) {
state = LcnDefs.LogicOpStatus.OR;
break;
case "050":
case "200": // not documented, but seen in the field and confirmed by the LCN hotline
state = LcnDefs.LogicOpStatus.AND;
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ public void testStatusSingleLogic3And() {
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
verify(handler).updateChannel(any(), any(), any());
}

@Test
public void testStatusSingleLogic3And200() {
tryParseAllHandlers("=M000005S3200");
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
verify(handler).updateChannel(any(), any(), any());
}
}

0 comments on commit 584957a

Please sign in to comment.