Hi,
I'm trying to do the simple RelayWithbuttonActuator from this homepage that Works with an MQTT gateway, I've got it working 1/10 times, by using the default code from here(the RelayWithButtonActuator Example): http://www.mysensors.org/build/relay
When i push the button, i see the TX light on the arduino light up for a split second, and then nothing happens, the relay does not switch, then i fiddle with the button 5-10 times, then it finaly switches.
So i checked the log from the com port, and this is what the Arduino outputs:
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
This is an ack from gateway
Incoming change for sensor:1, New status: 1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:0
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
This is an ack from gateway
Incoming change for sensor:1, New status: 0
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
This is an ack from gateway
Incoming change for sensor:1, New status: 1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:0
This is an ack from gateway
Incoming change for sensor:1, New status: 0
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
send: 56-56-0-0 s=1,c=1,t=2,pt=2,l=2,st=fail:1
read: 0-0-56 s=1,c=1,t=2,pt=2,l=2:1
This is an ack from gateway
Incoming change for sensor:1, New status: 1
So now my questions:
Am i doing something wrong to get this result?
What does the error mean when it fails?
Why does the OK status not do anything?
Why is it not the primary funktion to turn on or off the relay insted of sending and reciving the info from the MQTT?