Generic pulse counter time overflow? Esp easy Mega build

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
zwehn
New user
Posts: 6
Joined: 03 Mar 2018, 10:32
Location: Munic

Generic pulse counter time overflow? Esp easy Mega build

#1 Post by zwehn » 03 Mar 2018, 11:03

Hi,
I am using the mega-20180214 build and I experience a problem with the generic pulse counter seems to run into an overflow of the time variable which than seems to set the counter to an irregular high value.( I guess)

In detail:
Before the time variable is stepping over from high value to start by 0 again, the counter variable show values of >100, normal is max 15 for about an minute. Than everything works as good as before. I have seen that several times. Please compare with the log below.
I am using fhem house automation and so I am able to correct this issue in fhem but thats inconvienient...
Hope you could tell me if i am somewhere wrong, known issue or....

Thank you,

Zwehn
water pulse count error.jpg
water pulse count error.jpg (104.49 KiB) Viewed 5901 times
...
esp easy pulse counter setting.PNG
esp easy pulse counter setting.PNG (101.75 KiB) Viewed 5903 times
mega-20180214 with generic pulse counter, fhem, arduino

TD-er
Core team member
Posts: 9901
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Generic pulse counter time overflow? Esp easy Mega build

#2 Post by TD-er » 03 Mar 2018, 19:09

Are you sure the ESP did not reboot inbetween?

zwehn
New user
Posts: 6
Joined: 03 Mar 2018, 10:32
Location: Munic

Re: Generic pulse counter time overflow? Esp easy Mega build

#3 Post by zwehn » 05 Mar 2018, 23:08

Yes, the uptime was ok and the total variable was even high, only the pulse device time variable starts by zero again....
mega-20180214 with generic pulse counter, fhem, arduino

zwehn
New user
Posts: 6
Joined: 03 Mar 2018, 10:32
Location: Munic

Re: Generic pulse counter time overflow? Esp easy Mega build

#4 Post by zwehn » 05 Mar 2018, 23:34

part of my logfile at that time....I have seen it many times /repeatable in my logs, now I catch the high counters in fhem and only log the good values....

Code: Select all

2018-02-23_12:29:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 243692.00 Tot: 17234.000
2018-02-23_12:30:18 ESPEasy_ESP_Easy_1_Water Total: 17235.000
2018-02-23_12:30:18 ESPEasy_ESP_Easy_1_Water Count: 0.500
2018-02-23_12:30:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.510999999999
2018-02-23_12:30:18 ESPEasy_ESP_Easy_1_Water Time: 3848987.00
2018-02-23_12:30:18 ESPEasy_ESP_Easy_1_Water Cou: 0.500 Tim: 3848987.00 Tot: 17235.000
2018-02-23_12:30:56 ESPEasy_ESP_Easy_1_Water presence: present
2018-02-23_12:30:56 ESPEasy_ESP_Easy_1_Water Cou: 0.500 Tim: 3848987.00 Tot: 17235.000
2018-02-23_12:31:18 ESPEasy_ESP_Easy_1_Water Total: 17239.000
2018-02-23_12:31:18 ESPEasy_ESP_Easy_1_Water Count: 2.000
2018-02-23_12:31:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.512999999999
2018-02-23_12:31:18 ESPEasy_ESP_Easy_1_Water Time: 1972.00
2018-02-23_12:31:18 ESPEasy_ESP_Easy_1_Water Cou: 2.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:32:18 ESPEasy_ESP_Easy_1_Water Total: 17239.000
2018-02-23_12:32:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:32:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.512999999999
2018-02-23_12:32:18 ESPEasy_ESP_Easy_1_Water Time: 1972.00
2018-02-23_12:32:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:33:18 ESPEasy_ESP_Easy_1_Water Total: 17239.000
2018-02-23_12:33:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:33:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.512999999999
2018-02-23_12:33:18 ESPEasy_ESP_Easy_1_Water Time: 1972.00
2018-02-23_12:33:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:34:18 ESPEasy_ESP_Easy_1_Water Total: 17239.000
2018-02-23_12:34:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:34:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.512999999999
2018-02-23_12:34:18 ESPEasy_ESP_Easy_1_Water Time: 1972.00
2018-02-23_12:34:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:35:18 ESPEasy_ESP_Easy_1_Water Total: 17239.000
2018-02-23_12:35:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:35:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.512999999999
2018-02-23_12:35:18 ESPEasy_ESP_Easy_1_Water Time: 1972.00
2018-02-23_12:35:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:36:00 ESPEasy_ESP_Easy_1_Water presence: present
2018-02-23_12:36:00 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 1972.00 Tot: 17239.000
2018-02-23_12:36:18 ESPEasy_ESP_Easy_1_Water Total: 17263.000
2018-02-23_12:36:18 ESPEasy_ESP_Easy_1_Water Count: 12.000
2018-02-23_12:36:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.524999999999
2018-02-23_12:36:18 ESPEasy_ESP_Easy_1_Water Time: 11.00
2018-02-23_12:36:18 ESPEasy_ESP_Easy_1_Water Cou: 12.000 Tim: 11.00 Tot: 17263.000
2018-02-23_12:37:18 ESPEasy_ESP_Easy_1_Water Total: 17605.000
2018-02-23_12:37:18 ESPEasy_ESP_Easy_1_Water Count: 171.000
2018-02-23_12:37:18 ESPEasy_ESP_Easy_1_Water m3_total: 685.695999999999
2018-02-23_12:37:18 ESPEasy_ESP_Easy_1_Water Time: 12.00
2018-02-23_12:37:18 ESPEasy_ESP_Easy_1_Water Cou: 171.000 Tim: 12.00 Tot: 17605.000
2018-02-23_12:38:18 ESPEasy_ESP_Easy_1_Water Total: 18293.000
2018-02-23_12:38:18 ESPEasy_ESP_Easy_1_Water Count: 344.000
2018-02-23_12:38:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.039999999999
2018-02-23_12:38:18 ESPEasy_ESP_Easy_1_Water Time: 51.00
2018-02-23_12:38:18 ESPEasy_ESP_Easy_1_Water Cou: 344.000 Tim: 51.00 Tot: 18293.000
2018-02-23_12:39:18 ESPEasy_ESP_Easy_1_Water Total: 19069.000
2018-02-23_12:39:18 ESPEasy_ESP_Easy_1_Water Count: 388.000
2018-02-23_12:39:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.427999999999
2018-02-23_12:39:18 ESPEasy_ESP_Easy_1_Water Time: 38.00
2018-02-23_12:39:18 ESPEasy_ESP_Easy_1_Water Cou: 388.000 Tim: 38.00 Tot: 19069.000
2018-02-23_12:40:18 ESPEasy_ESP_Easy_1_Water Total: 19861.000
2018-02-23_12:40:18 ESPEasy_ESP_Easy_1_Water Count: 396.000
2018-02-23_12:40:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.823999999999
2018-02-23_12:40:18 ESPEasy_ESP_Easy_1_Water Time: 78.00
2018-02-23_12:40:18 ESPEasy_ESP_Easy_1_Water Cou: 396.000 Tim: 78.00 Tot: 19861.000
2018-02-23_12:41:01 ESPEasy_ESP_Easy_1_Water presence: present
2018-02-23_12:41:01 ESPEasy_ESP_Easy_1_Water Cou: 396.000 Tim: 78.00 Tot: 19861.000
2018-02-23_12:41:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:41:18 ESPEasy_ESP_Easy_1_Water Count: 132.000
2018-02-23_12:41:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:41:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:41:18 ESPEasy_ESP_Easy_1_Water Cou: 132.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:42:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:42:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:42:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:42:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:42:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:43:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:43:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:43:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:43:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:43:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:44:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:44:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:44:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:44:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:44:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:45:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:45:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:45:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:45:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:45:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:46:03 ESPEasy_ESP_Easy_1_Water presence: present
2018-02-23_12:46:03 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:46:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:46:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:46:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:46:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:46:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:47:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
2018-02-23_12:47:18 ESPEasy_ESP_Easy_1_Water Count: 0.000
2018-02-23_12:47:18 ESPEasy_ESP_Easy_1_Water m3_total: 686.955999999999
2018-02-23_12:47:18 ESPEasy_ESP_Easy_1_Water Time: 5713.00
2018-02-23_12:47:18 ESPEasy_ESP_Easy_1_Water Cou: 0.000 Tim: 5713.00 Tot: 20125.000
2018-02-23_12:48:18 ESPEasy_ESP_Easy_1_Water Total: 20125.000
mega-20180214 with generic pulse counter, fhem, arduino

TD-er
Core team member
Posts: 9901
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Generic pulse counter time overflow? Esp easy Mega build

#5 Post by TD-er » 07 Mar 2018, 19:21

I that a cut-and-paste thing? Some lines have "Count" and some "Cou"

zwehn
New user
Posts: 6
Joined: 03 Mar 2018, 10:32
Location: Munic

Re: Generic pulse counter time overflow? Esp easy Mega build

#6 Post by zwehn » 07 Mar 2018, 23:04

Hi,
The status message is devided into one device status as all where cou stands for count, and than we have the single variable count as well which is needed to handle it seperated, a fhem standard......
mega-20180214 with generic pulse counter, fhem, arduino

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 14 guests