Gateway message confusion
-
I have a node with the "relay with button actuator" sketch running, however its behaving very weird. It will work fine with the button at all times but if i used the button to turn it on or off, any other command coming from the gateway to the relay node will not work until i press the command twice.
I got the gateway hooked up to troubleshoot this, and it turns out that this is the log:
0;0;3;0;9;Attempting MQTT connection... 0;0;3;0;9;MQTT connected 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:0 0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1 0;0;3;0;9;Sending message on topic: Gateway1-out/4/1/1/0/2 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
The line "0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1" is where i have pressed the button the relay node itself. I think i may have found of the problem; the gateway has not published the node state to the topic. Am i thinking correctly when i say that i would expect to see "0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2" after it receives the state of the node?
-
Here is the comparison of switching the light through my light switch node, through the on board button and then through the openhab interface:
Light Switch Node:
0;0;3;0;9;read: 3-3-0 s=3,c=1,t=2,pt=2,l=2,sg=0:1 0;0;3;0;9;Sending message on topic: Gateway1-out/3/3/1/0/2 0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1
On Board Button:
0;0;3;0;9;read: 4-4-0 s=1,c=1,t=2,pt=2,l=2,sg=0:1 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=2,l=2,sg=0,st=ok:1 0;0;3;0;9;Sending message on topic: Gateway1-out/4/1/1/0/2
OpenHab Interface:
0;0;3;0;9;Message arrived on topic: Gateway1-in/4/1/1/0/2 0;0;3;0;9;send: 0-0-4-4 s=1,c=1,t=2,pt=0,l=1,sg=0,st=ok:1