Mysensor contact sensor not updating status!
Posted: Friday 11 December 2015 10:07
I'm using the sketch for the binaryswitchsensor and it connects to the ESP8266 gateway and shows up as a switch but shows "Closed" and never seens to change its status. Watching the serial monitor I see the arduino picking up that im moving the magnet next to and away from the sensor, but the controller doesn't seem to "see" those changes!?
Here is what I see on the serial monitor (0=sensor touching, 1=sensor "open" not touching):
sensor started, id=3, parent=0, distance=1
send: 3-3-0-0 s=3,c=0,t=0,pt=0,l=0,sg=0,st=ok:
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=fail:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
It seems to default to Type as "Lighting 2" and Subtype "AC" in the devices section of Domoticz and I thought changing that might help but it doesn't seem to be possible to edit those values (I can't find them anywhere). I'll add 3 photos showing what I'm seeing in the various screens on Domoticz:



I tried updating to the latest beta build as suggested over on the mysensors forum but that didn't help either. I also checked the serial monitor on the gateway and its getting open/closed updates from the contact sensor, it just doesn't seem to make it to Domonticz or Domoticz is ignoring it. Nothing in the logs on domoticz either!
Thanks for any help you can give!
Here is what I see on the serial monitor (0=sensor touching, 1=sensor "open" not touching):
sensor started, id=3, parent=0, distance=1
send: 3-3-0-0 s=3,c=0,t=0,pt=0,l=0,sg=0,st=ok:
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=fail:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:0
send: 3-3-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,st=ok:1
It seems to default to Type as "Lighting 2" and Subtype "AC" in the devices section of Domoticz and I thought changing that might help but it doesn't seem to be possible to edit those values (I can't find them anywhere). I'll add 3 photos showing what I'm seeing in the various screens on Domoticz:



I tried updating to the latest beta build as suggested over on the mysensors forum but that didn't help either. I also checked the serial monitor on the gateway and its getting open/closed updates from the contact sensor, it just doesn't seem to make it to Domonticz or Domoticz is ignoring it. Nothing in the logs on domoticz either!
Thanks for any help you can give!