GammaTroniques / TICMeter

TICMeter is a small product to collect data from a Linky meter and send them to a home automation server via MQTT, Zigbee or HTTP
Other
29 stars 4 forks source link

Some values not reported correctly #24

Open ludrao opened 6 days ago

ludrao commented 6 days ago

The problem encountered

Note: this may be related to #20 Using MQTT mode + Home Assistant.

Some value seem truncated, e.g. 324206 instead of 3242060 (missing the last digit) for EASF0x energy indexes This screws home assistant statistics since it thinks the index looped...

Firmware version

V3.2.7

Steps for reproducing the error

Nothing specific this seems to happen randomly, a couple of times a day

What I've already tested

I captured what is reported to mosquito server using this command: mosquitto_sub -u ha-client -P "XXXXX" -t 'TICMeter/545520/EASF01' -t 'TICMeter/545520/EASF02' -t 'TICMeter/545520/EASF03' -t 'TICMeter/545520/EASF04' -t 'TICMeter/545520/EASF05' -t 'TICMeter/545520/EASF06' -p 1883 > mqttsub.log Thus taking Home Assistant out of the equation.

This is the output I got (truncated file, greped on "324" to list the same index value)

3241862
3241870
3241878
3241887
3241896
3241905
3241914
3241921
3241922
3241937
3241952
3241960
3241968
3241968
3241984
3241993
324200
3242010
3242018
3242027
3242035
3242043
3242051
324206
3242069
3242077

As you can see the TICMeter reported truncated value 324200 and 324206 (3rd and 10th line from the end)

This is confirmed from the data view in home assistant: image

Relevant log output

No response

ludrao commented 6 days ago

I have an even worse situation: the value is sometime reported as 0 (again randomly) Output of mosquito_sub as mentioned above

3767421
3243171
865199
698963
491408
174437
3767421
3243204
865199
698963
491408
174437
3767421
3243214
865199
0
491408
174437
3767421
ludrao commented 4 days ago

Reading the source code I found out that the are logs on the serial port. Unfortunately my linky meter is outside in the street, so I cannot let a laptop connected to it until it reproduces, especially in rainy days :sweat_smile: .

ludrao commented 1 day ago

I upgraded TICMeter to v3.2.9 and will try again so see if the prb still occurs

kriskillerz commented 1 day ago

Hello, For me the new firmware don't solve the issue.