Page 1 of 1

[Closed] Counter displays alternating right value and zer0

Posted: Thursday 21 October 2021 23:34
by BartSr
Hi!
I am having a Kwh meter with pulse output.(2000 pulses = 1 Kwh).
This output is hooked onto a NodeMcu v3.
The NodeMcu communicates with Domoticz using MQTT @ timeinterval of 60 seconds.
In Domoticz a virtual sensor 'counter' shows the momentairy electrical consumption in Watt's.
There is a strange behaviour of the display. The correct value is displayed every 60 seconds according the NodeMcu interval. But after some time (but within the 60 sec) the counter displays 0.
In the log this 0 value is not seen and thus not disturbing the correct presentation of the graph which still shows the correct value(s).

Is there anybody who recognizes this behaviour and does know a workaround?

TIA
Bart

Re: Counter displays alternating right value and zer0

Posted: Friday 22 October 2021 13:11
by BartSr
Update: the zero value is also seen in the graph.

Re: Counter displays alternating right value and zer0

Posted: Friday 22 October 2021 13:19
by waltervl
You can check with MQTT Explorer what data is sent. https://mqtt-explorer.com/
What is the exact domoticz counter device type you use (see Domoticz API wiki: https://www.domoticz.com/wiki/Domoticz_ ... .2Fsensors )

Re: Counter displays alternating right value and zer0

Posted: Friday 22 October 2021 18:54
by BartSr
Thanks for your reply.
I installed the MQTT monitor and found that Domoticz receives regular the 0 value. So it seems to be an ESP Easy issue. The counter, referring to your WiKi link is the type as per paragraph 9.12 .
BTW, what a marvelous monitor.
Bart

Re: Counter displays alternating right value and zer0

Posted: Saturday 23 October 2021 9:54
by BartSr
Problem solved.
I was not aware another NodeMcu was life on my desk (experimental config) publishing these zero values.
Thanks for all help.
Bart