Hi, I built my first mysensors device… Go me!
The only thing is, I can’t get it to work in pimatic. I am sure the device is working. The setup…
-
Device built, Arduino mini and example sketch (https://www.mysensors.org/build/humidity) - humidity sensor (pin 3 - sketch changed to reflect this after conflict with radio) and radio (pin 2) https://www.mysensors.org/build/connect_radio
-
The device debug shows its working fine…
Starting sensor (RNNNA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
TSP:ASSIGNID:OK (ID=2)
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSP:MSG:READ 0-0-2 s=255,c=3,t=8,pt=1,l=1,sg=0:0
TSP:MSG:FPAR RES (ID=0, dist=0)
TSP:MSG:PAR OK (ID=0, dist=1)
TSM:FPAR:OK
TSM:ID
TSM:CHKID:OK (ID=2)
TSM:UPL
TSP:PING:SEND (dest=0)
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
TSP:MSG:READ 0-0-2 s=255,c=3,t=25,pt=1,l=1,sg=0:1
TSP:MSG:PONG RECV (hops=1)
TSP:CHKUPL:OK
TSM:UPL:OK
TSM:READY
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
TSP:MSG:SEND 2-2-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
TSP:MSG:READ 0-0-2 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=11,pt=0,l=22,sg=0,ft=0,st=ok:TemperatureAndHumidity
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.1
TSP:MSG:SEND 2-2-0-0 s=0,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=ok:
TSP:MSG:SEND 2-2-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok:
Request registration…
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
TSP:MSG:READ 0-0-2 s=255,c=3,t=27,pt=1,l=1,sg=0:1
Node registration=1
Init complete, id=2, parent=0, distance=1, registration=1
TSP:MSG:SEND 2-2-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:23.0
T: 23.00
TSP:MSG:SEND 2-2-0-0 s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:35.0
H: 35.00 -
The Pi is configured using this https://www.mysensors.org/build/raspberry
Note: sudo cat /dev/ttyMySensorsGateway shows output…
2;255;0;0;17;2.0.0
2;255;3;0;6;0
2;255;3;0;11;TemperatureAndHumidity
2;255;3;0;12;1.1
2;0;0;0;7;
2;1;0;0;6;
2;1;1;0;0;22.0
2;0;1;0;1;36.0
I do not know what to do next. I do not know what device / node ID to configure in Pimatic and the auto discover does not pickup my device. Question is: Are my results above expected?
I suspect I have configured the plugin wrong somehow… Config is below…
{
“debug”: true,
“driverOptions”: {
“serialDevice”: “/dev/ttyMySensorsGateway”,
“baudrate”: 115200
},
“startingNodeId”: 3,
“plugin”: “mysensors”,
“active”: true,
“driver”: “serialport”,
“protocols”: “1.4.1”
}
Could someone suggest how I trace the problem better? Should I be seeing debug messages in Pimatic?