Skip to content

Commit 19ca89c

Browse files
authored
[insteon] Fix legacy all link broadcast message not processed (openhab#18049)
Signed-off-by: Jeremy Setton <[email protected]>
1 parent b4bcf80 commit 19ca89c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/InsteonLegacyBinding.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public void disconnected() {
514514

515515
private void handleInsteonMessage(Msg msg) throws FieldException {
516516
InsteonAddress toAddr = msg.getInsteonAddress("toAddress");
517-
if (!msg.isBroadcast() && !driver.isMsgForUs(toAddr)) {
517+
if (!msg.isBroadcast() && !msg.isAllLinkBroadcast() && !driver.isMsgForUs(toAddr)) {
518518
// not for one of our modems, do not process
519519
return;
520520
}

bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/LegacyDevice.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public long processRequestQueue(long timeNow) {
334334
if (qe == null) {
335335
return 0L;
336336
}
337-
if (!qe.getMsg().isBroadcast()) {
337+
if (!qe.getMsg().isAllLinkBroadcast()) {
338338
logger.debug("qe taken off direct: {} {}", qe.getFeature(), qe.getMsg());
339339
lastQueryTime = timeNow;
340340
// mark feature as pending
@@ -382,7 +382,7 @@ public void enqueueDelayedMessage(Msg msg, LegacyDeviceFeature feature, long del
382382
synchronized (mrequestQueue) {
383383
mrequestQueue.add(new QEntry(feature, msg, now + delay));
384384
}
385-
if (!msg.isBroadcast()) {
385+
if (!msg.isAllLinkBroadcast()) {
386386
msg.setQuietTime(QUIET_TIME_DIRECT_MESSAGE);
387387
}
388388
logger.trace("enqueing direct message with delay {}", delay);

0 commit comments

Comments
 (0)