DheerajKhajuria / pimatic-mysensors

mysensors
http://forum.mysensors.org/topic/797/pimatic-mysensors-controller-plugin
GNU General Public License v2.0
23 stars 22 forks source link

MySensorsMulti - Error? #95

Open Fredody opened 6 years ago

Fredody commented 6 years ago

Hello,

i have a chirp-sensor configured as MySensorsMulti and I have a problem with the moisture values. While the temperature values are displayed right, the moisture value is always jumping between values, e.g. between 511 and 51151. I am pretty sure it's a "small" rounding or whatever problem, the values I get from mysensors via terminal and "mysgw -d" are fine, see below.

Maybe you can help me?

Frederic

My pimat-config: { "class": "MySensorsMulti", "id": "chirp01", "name": "Chirp 01", "attributes": [ { "name": "temperature", "nodeid": 51, "sensorid": 2, "sensortype": 25, "type": "float", "acronym": "T", "unit": "°C" }, { "name": "moisture", "nodeid": 51, "sensorid": 2, "sensortype": 24, "type": "integer", "acronym": "M", "unit": "-" } ] }

Values from mysgw -d:

mysgw: Starting gateway... mysgw: Protocol version - 2.2.0 mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0 mysgw: TSF:LRT:OK mysgw: TSM:INIT mysgw: TSF:WUR:MS=0 mysgw: TSM:INIT:TSP OK mysgw: TSM:INIT:GW MODE mysgw: TSM:READY:ID=0,PAR=0,DIS=0 mysgw: MCO:REG:NOT NEEDED mysgw: Listening for connections on 0.0.0.0:5003 mysgw: MCO:BGN:STP mysgw: MCO:BGN:INIT OK,TSP=1 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=24,pt=7,l=5,sg=0:511 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=25,pt=7,l=5,sg=0:18.7 mysgw: TSF:MSG:READ,51-51-0,s=1,c=1,t=42,pt=7,l=5,sg=0:416 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=26,pt=7,l=5,sg=0:0.001 mysgw: TSF:MSG:READ,51-51-0,s=1,c=1,t=25,pt=3,l=2,sg=0:1 mysgw: TSF:MSG:READ,51-51-0,s=3,c=1,t=26,pt=3,l=2,sg=0:0 mysgw: TSF:MSG:READ,51-51-0,s=255,c=3,t=22,pt=5,l=4,sg=0:491461 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=24,pt=7,l=5,sg=0:511 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=25,pt=7,l=5,sg=0:18.7 mysgw: TSF:MSG:READ,51-51-0,s=1,c=1,t=42,pt=7,l=5,sg=0:417 mysgw: TSF:MSG:READ,51-51-0,s=2,c=1,t=26,pt=7,l=5,sg=0:0.001 mysgw: TSF:MSG:READ,51-51-0,s=1,c=1,t=25,pt=3,l=2,sg=0:1 mysgw: TSF:MSG:READ,51-51-0,s=3,c=1,t=26,pt=3,l=2,sg=0:0 mysgw: TSF:MSG:READ,51-51-0,s=255,c=3,t=22,pt=5,l=4,sg=0:492630

Fredody commented 6 years ago

Wrong Question? Or has no one any ideas?

AnduriI commented 6 years ago

Are you shure having your pimatic config correct? Because in your snipped above you have both them and humidity set to nodeid 51 sensorid 2. I'm not very familiar with mysgw output, but I think it is reporting sensorid 1 and 2 on the same node (id 51). Could you please check that.

Fredody commented 5 years ago

I think twice node id 51 and sensor id 2 should be right, since this is also the output from mysgw, as shown in the initial post. Since this is a multisensor, the difference should only be in the sensortype 24 and 25, as far as i understand.

I also tried your suggestion, but then the moisture sensor doens't work at all.

There is no further documentation available, so I am lost :-(