I think I am seeing an error with my garage door contact.
I start up openhab, so the value for the contact is NULL
What I believe is then happening is when the binding polls for the status, it incorrectly is handling the messages, resulting in a CLOSED state.
2016-07-19 10:57:59.670 [DEBUG] [i.i.device.RequestQueueManager:101 ] - starting request queue thread
2016-07-19 10:57:59.676 [DEBUG] [o.o.b.i.i.device.InsteonDevice:459 ] - qe taken off direct: IOLincContact(1:1:4) OUT:Cmd:0x62|toAddress:3D.E5.56|messageFlags:0x0F=DIRECT:3:3|command1:0x19|command2:0x01|
2016-07-19 10:57:59.677 [DEBUG] [o.o.b.i.i.device.InsteonDevice:479 ] - next request queue processed in 500 msec, quiettime = 500
2016-07-19 10:57:59.678 [DEBUG] [o.o.b.i.internal.driver.Port :415 ] - writing (500): OUT:Cmd:0x62|toAddress:3D.E5.56|messageFlags:0x0F=DIRECT:3:3|command1:0x19|command2:0x01|
2016-07-19 10:58:00.120 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x2F=ACK_OF_DIRECT:3:3|command1:0x00|command2:0x01|
2016-07-19 10:58:00.121 [DEBUG] [b.i.i.device.MessageDispatcher:149 ] - 3D.E5.56:IOLincContact DIRECT_ACK: q:QUERY_PENDING cmd: 80
2016-07-19 10:58:00.122 [DEBUG] [b.i.i.device.MessageDispatcher:154 ] - changing key to 0x19 for msg IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x2F=ACK_OF_DIRECT:3:3|command1:0x00|command2:0x01|
2016-07-19 10:58:00.127 [INFO ] [.o.b.i.i.device.MessageHandler:834 ] - ContactRequestReplyHandler: set contact 3D.E5.56 to: CLOSED
2016-07-19 10:58:00.129 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:IOLincContact publishing: CLOSED
2016-07-19 10:58:00.137 [DEBUG] [b.i.i.device.MessageDispatcher:176 ] - defdisp: 3D.E5.56:IOLincContact set status to: QUERY_ANSWERED
2016-07-19 10:58:00.141 [INFO ] [smarthome.event.ItemStateEvent:43 ] - garageDoorContact updated to CLOSED
2016-07-19 10:58:00.147 [DEBUG] [.core.common.ThreadPoolManager:145 ] - Created thread pool 'items' with size 5
2016-07-19 10:58:00.148 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T10:58:00
2016-07-19 10:58:00.157 [INFO ] [s.event.ItemStateChangedEvent :43 ] - garageDoorContact changed from NULL to CLOSED
2016-07-19 10:58:00.174 [DEBUG] [i.i.device.RequestQueueManager:137 ] - device queue for 3D.E5.56 is empty!
Physically pulling the contacts apart (expect from OPEN to CLOSED)
2016-07-19 12:03:18.083 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x13|command2:0x00|
2016-07-19 12:03:18.086 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x13|command2:0x00|
2016-07-19 12:03:18.086 [DEBUG] [b.i.i.device.MessageDispatcher:77 ] - all link message is no duplicate: true/true
2016-07-19 12:03:18.087 [DEBUG] [b.i.i.device.MessageDispatcher:79 ] - 3D.E5.56:IOLincContact->ClosedContactHandler cmd1:0x13 group 1/1:IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x13|command2:0x00|
2016-07-19 12:03:18.087 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:IOLincContact publishing: CLOSED
2016-07-19 12:03:18.088 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x13|command2:0x00|
2016-07-19 12:03:18.088 [DEBUG] [b.i.i.device.MessageDispatcher:77 ] - all link message is no duplicate: true/true
2016-07-19 12:03:18.089 [DEBUG] [b.i.i.device.MessageDispatcher:79 ] - 3D.E5.56:IOLincSwitch->NoOpMsgHandler cmd1:0x13 group 1/1:IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x13|command2:0x00|
2016-07-19 12:03:18.089 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:18
2016-07-19 12:03:18.090 [INFO ] [smarthome.event.ItemStateEvent:43 ] - garageDoorContact updated to CLOSED
2016-07-19 12:03:18.095 [INFO ] [s.event.ItemStateChangedEvent :43 ] - garageDoorContact changed from OPEN to CLOSED
2016-07-19 12:03:18.326 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x13|command2:0x01|
2016-07-19 12:03:18.326 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x13|command2:0x01|
2016-07-19 12:03:18.327 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x13|command2:0x01|
2016-07-19 12:03:18.328 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:18
2016-07-19 12:03:18.616 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x4A=ALL_LINK_CLEANUP:2:2|command1:0x13|command2:0x01|
2016-07-19 12:03:18.617 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x4A=ALL_LINK_CLEANUP:2:2|command1:0x13|command2:0x01|
2016-07-19 12:03:18.618 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x4A=ALL_LINK_CLEANUP:2:2|command1:0x13|command2:0x01|
2016-07-19 12:03:18.619 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:18
2016-07-19 12:03:18.908 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:13.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:18.909 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:13.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:18.910 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:13.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:18.910 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:18
Physically putting the contacts together (expect from CLOSED to OPEN)
2016-07-19 12:03:53.811 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x11|command2:0x00|
2016-07-19 12:03:53.814 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x11|command2:0x00|
2016-07-19 12:03:53.815 [DEBUG] [b.i.i.device.MessageDispatcher:77 ] - all link message is no duplicate: true/true
2016-07-19 12:03:53.816 [DEBUG] [b.i.i.device.MessageDispatcher:79 ] - 3D.E5.56:IOLincContact->OpenedContactHandler cmd1:0x11 group 1/1:IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x11|command2:0x00|
2016-07-19 12:03:53.816 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:IOLincContact publishing: OPEN
2016-07-19 12:03:53.818 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x11|command2:0x00|
2016-07-19 12:03:53.818 [DEBUG] [b.i.i.device.MessageDispatcher:77 ] - all link message is no duplicate: true/true
2016-07-19 12:03:53.819 [DEBUG] [b.i.i.device.MessageDispatcher:79 ] - 3D.E5.56:IOLincSwitch->NoOpMsgHandler cmd1:0x11 group 1/1:IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:00.00.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x11|command2:0x00|
2016-07-19 12:03:53.820 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:53
2016-07-19 12:03:53.820 [INFO ] [smarthome.event.ItemStateEvent:43 ] - garageDoorContact updated to OPEN
2016-07-19 12:03:53.823 [INFO ] [s.event.ItemStateChangedEvent :43 ] - garageDoorContact changed from CLOSED to OPEN
2016-07-19 12:03:53.997 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x11|command2:0x01|
2016-07-19 12:03:53.998 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x11|command2:0x01|
2016-07-19 12:03:53.999 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x45=ALL_LINK_CLEANUP:1:1|command1:0x11|command2:0x01|
2016-07-19 12:03:54.000 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:53
2016-07-19 12:03:54.195 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:11.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:54.196 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:11.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:54.196 [DEBUG] [b.i.i.device.MessageDispatcher:75 ] - all link message: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:11.01.01|messageFlags:0xCF=ALL_LINK_BROADCAST:3:3|command1:0x06|command2:0x00|
2016-07-19 12:03:54.197 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T12:03:54
No activity, wait for status polling, note- contacts are together
2016-07-19 11:12:45.361 [INFO ] [.o.b.i.InsteonPLMActiveBinding:684 ] - devices: 1 configured, 1 polling, msgs received: 13
2016-07-19 11:12:59.659 [DEBUG] [o.o.b.i.i.device.InsteonDevice:459 ] - qe taken off direct: IOLincContact(1:1:4) OUT:Cmd:0x62|toAddress:3D.E5.56|messageFlags:0x0F=DIRECT:3:3|command1:0x19|command2:0x01|
2016-07-19 11:12:59.661 [DEBUG] [o.o.b.i.i.device.InsteonDevice:479 ] - next request queue processed in 500 msec, quiettime = 500
2016-07-19 11:12:59.662 [DEBUG] [o.o.b.i.internal.driver.Port :415 ] - writing (500): OUT:Cmd:0x62|toAddress:3D.E5.56|messageFlags:0x0F=DIRECT:3:3|command1:0x19|command2:0x01|
2016-07-19 11:12:59.986 [DEBUG] [.o.b.i.InsteonPLMActiveBinding:591 ] - got msg: IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x2F=ACK_OF_DIRECT:3:3|command1:0x00|command2:0x01|
2016-07-19 11:12:59.988 [DEBUG] [b.i.i.device.MessageDispatcher:149 ] - 3D.E5.56:IOLincContact DIRECT_ACK: q:QUERY_PENDING cmd: 80
2016-07-19 11:12:59.989 [DEBUG] [b.i.i.device.MessageDispatcher:154 ] - changing key to 0x19 for msg IN:Cmd:0x50|fromAddress:3D.E5.56|toAddress:30.DC.6C|messageFlags:0x2F=ACK_OF_DIRECT:3:3|command1:0x00|command2:0x01|
2016-07-19 11:12:59.990 [INFO ] [.o.b.i.i.device.MessageHandler:834 ] - ContactRequestReplyHandler: set contact 3D.E5.56 to: CLOSED
2016-07-19 11:12:59.990 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:IOLincContact publishing: CLOSED
2016-07-19 11:12:59.994 [DEBUG] [b.i.i.device.MessageDispatcher:176 ] - defdisp: 3D.E5.56:IOLincContact set status to: QUERY_ANSWERED
2016-07-19 11:12:59.995 [DEBUG] [o.o.b.i.i.device.DeviceFeature:321 ] - 3D.E5.56:GenericLastTime publishing: 2016-07-19T11:12:59
2016-07-19 11:12:59.996 [INFO ] [smarthome.event.ItemStateEvent:43 ] - garageDoorContact updated to CLOSED
2016-07-19 11:13:00.018 [INFO ] [s.event.ItemStateChangedEvent :43 ] - garageDoorContact changed from OPEN to CLOSED
2016-07-19 11:13:00.159 [DEBUG] [i.i.device.RequestQueueManager:137 ] - device queue for 3D.E5.56 is empty!
Again, I believe the polling is interpreting the incorrect state. It should be OPEN.
I can dig in and try and troubleshoot, I am just trying to wrap my head around the expected messages right now. Hoping someone more familiar can confirm this is indeed a bug, or my expectations are incorrect.
thanks,
craig