arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.75k stars 4.72k forks source link

Tasmota 6.7.0 - PZEM-004T (v2) - only received Voltage data #6746

Closed amagr0 closed 4 years ago

amagr0 commented 4 years ago

Hello,

I'm using the latest Tasmota firmware 6.7.0 (Build Date:20191025 Time:19:00 GMT+2) in a D1mini1, and I'm only receiving Voltage data. Energy Today and Energy Total is also updating.

image

Already tried with another PZEM-004T (v2), and with a NodeMCU board.

Thanks

Jason2866 commented 4 years ago

Our ability to provide assistance is greatly hampered since you did not take a few minutes to complete the troubleshooting template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you spend completing the template will also help the volunteers providing the assistance to you to reduce the time required to help

amagr0 commented 4 years ago

ISSUE DESCRIPTION - TROUBLESHOOTING

I'm using the latest Tasmota firmware 6.7.0 (Build Date:20191025 Time:19:00 GMT+2) in a D1mini1, and I'm only receiving Voltage data. Energy Today and Energy Total is also updating.

REQUESTED INFORMATION

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

(Please, remember to close the issue when the problem has been addressed)

Jason2866 commented 4 years ago

Try this Template {"NAME":"PZEM004TV3","GPIO":[0,62,0,98,6,5,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

amagr0 commented 4 years ago

With that template I can no longer receive Voltage data, all blank.

image

Even after with the ModuleAddress 1 command.

Tks

Jason2866 commented 4 years ago

Ahh, sorry your config was correct you have V2 version!l You have to configure. Feature has changed See https://github.com/arendst/Sonoff-Tasmota/issues/6747#issuecomment-546478754 https://github.com/arendst/Sonoff-Tasmota/wiki/Commands#power-monitoring Command ModuleAddress

amagr0 commented 4 years ago

Sorry, but i didn't found anything in "release notes" that could help me to configure Tasmota.

amagr0 commented 4 years ago

The PZEM is already communicating with D1 Mini, since the Voltage values are continuous changing.

ModuleAddress 1 command was already applied.

Jason2866 commented 4 years ago

Mhh, irritated why didnt you tell you have already wrote here? https://github.com/arendst/Sonoff-Tasmota/issues/6585#issuecomment-544256105 It is not nice to let us do double work

amagr0 commented 4 years ago

That was a different cenario, on that post I made a mistake with 3V and gnd, and because of that I could not get PZEM communicating with D1mini.

I solved that problem, but now can only receive Voltage data.

I will close the other post. Thanks.

Jason2866 commented 4 years ago

It seems your module is defect

amagr0 commented 4 years ago

I tested with two PZEM and two different ESP boards (D1 Mini and NodeMCU), and the result was always the same.

ascillato2 commented 4 years ago

Is correctly wired your PZEM ? Can you share a Photo? Is there any current passing ?

amagr0 commented 4 years ago

Yes, there's a light bulb of 10W.

image

amagr0 commented 4 years ago

I found that the switch in the light bulb cable was causing this issue. image

I connected another lamp without the switch, and everything seems now to be ok.

image

image

ascillato commented 4 years ago

Great to know that now it is working for you on v6.7.0

Thanks for reporting back :+1: