TCR5000 not counting

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
justintime
New user
Posts: 1
Joined: 15 Sep 2015, 22:14

TCR5000 not counting

#1 Post by justintime » 15 Sep 2015, 22:30

First of all very nice project. Thanks....

I have hooked up a TCR5000. I see in the ESP log its connecting with Domoticz.
In the Domoticz log i dont see any messages. The counter is updating the time with 20 seconds just like i configured.

I rebooted the ESP after the setup.

But the counter is not counting up in Domoticz.

EDIT:
Found the issue. Need to set Incremental counter.

But you can't see what's the actual power. Does it needs to be implented on the ESP side or Domoticz?

remb0
Normal user
Posts: 36
Joined: 24 Sep 2015, 23:47

Re: TCR5000 not counting

#2 Post by remb0 » 01 Oct 2015, 21:47

strange I have the same issue.

running v25.
the TCR5000 connected on d3

in easy esp: 6 Pulse Counter Water 603 GPIO-0 Count:0/Total:24
in domoticz 0 m3. don't understand.

the switches and temp/hum also working from domoticz/easyESP.
I have rebooted, checked incremental and normal counter but the same. couting in homeESP but nog in domoticz.

remb0
Normal user
Posts: 36
Joined: 24 Sep 2015, 23:47

Re: TCR5000 not counting

#3 Post by remb0 » 01 Oct 2015, 23:05

Also after a reboot values are all 0 is that Normal?

Martinus

Re: TCR5000 not counting

#4 Post by Martinus » 02 Oct 2015, 12:57

remb0 wrote:strange I have the same issue.

running v25.
the TCR5000 connected on d3

in easy esp: 6 Pulse Counter Water 603 GPIO-0 Count:0/Total:24
in domoticz 0 m3. don't understand.

the switches and temp/hum also working from domoticz/easyESP.
I have rebooted, checked incremental and normal counter but the same. couting in homeESP but nog in domoticz.
You have to use an incremental counter anyway because the ESP will only send delta counts.

Can you set the debug level on serial output to 4 and check the log?
In my testlab this looks like this after pushing the GPIO-0 button 17 times:

Code: Select all

HTTP : connecting to 192.168.0.8
/json.htm?type=command&param=udevice&idx=242&svalue=17.00
HTTP/1.1 200 OK
HTTP : Succes!
Content-Length: 53
Content-Type: application/json;charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Allow-Origin: *

{
   "status" : "OK",
   "title" : "Update Device"
}
HTTP : closing connection

Martinus

Re: TCR5000 not counting

#5 Post by Martinus » 02 Oct 2015, 13:02

remb0 wrote:Also after a reboot values are all 0 is that Normal?
This is the expected behavior for ESP Easy. I guess you refer to the counters in particular?

I think that the only way the ESP could save data that withstands power loss situations is to save it to flash memory. But that will wear out flash in a very short time. I don't know about the chips used on the ESP modules but with the Arduino boards we had only 100.000 write cycles for a given cell.

So if you save the countervalue each second, it will last only a few days...

remb0
Normal user
Posts: 36
Joined: 24 Sep 2015, 23:47

Re: TCR5000 not counting

#6 Post by remb0 » 03 Oct 2015, 07:59

Couting in esp goes well (i think)
but still not in domoticz. So i checked the logs.

But strange is the log is doing something with idx84 and 94 but they don't exist is mij domoticz

the buttons are working well.
2015-10-03 07_53_41-Program Manager.png
2015-10-03 07_53_41-Program Manager.png (39.59 KiB) Viewed 7605 times
2015-10-03 07_54_30-NodeMCU.png
2015-10-03 07_54_30-NodeMCU.png (17.43 KiB) Viewed 7605 times

Martinus

Re: TCR5000 not counting

#7 Post by Martinus » 03 Oct 2015, 09:56

You've hit a bug introduced in R22. The idx value can not exceed 255. I will fix it and upload to github...

Martinus

Re: TCR5000 not counting

#8 Post by Martinus » 03 Oct 2015, 10:01

R29 is available, could you please verify that the issue with idx values is solved?

remb0
Normal user
Posts: 36
Joined: 24 Sep 2015, 23:47

Re: TCR5000 not counting

#9 Post by remb0 » 03 Oct 2015, 11:59

gonna test it right now!
and it works!!

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests