CircuitSetup / Expandable-6-Channel-ESP32-Energy-Meter

Hardware & Software documentation for the CircuitSetup Expandable 6 Channel ESP32 Energy Meter. Works with ESPHome and Home Assistant.
https://circuitsetup.us/product/expandable-6-channel-esp32-energy-meter/
MIT License
532 stars 106 forks source link

Information flipping back and forth for live data #21

Closed errolsancaktar closed 3 years ago

errolsancaktar commented 3 years ago
Screen Shot 2020-11-21 at 11 30 57 AM Screen Shot 2020-11-21 at 11 31 20 AM

i'm getting data flapping back and forth for some reason. The voltage also seems to be way off. i have it configured for ct1: Input CT2: Input CT3: Solar input CT4: Solar input CT5: AC CT6: Dryer

errolsancaktar commented 3 years ago

strangely my mqtt is only showing the topic with connected, no sub data.

CircuitSetup commented 3 years ago

Is this with the latest version available here? If so, can you confirm the calibration values?

Also, any values for CTs that are negative, the CT is backwards.

errolsancaktar commented 3 years ago

I pulled from the master branch. so i should turn the ones that show negative amps around? also have you seen any other instances of the CT calibration selector not showing up? (sometimes i see a jquery error in console) CT1/2 - 120A - 41880 CT3/4 - 100A - 27961 CT5/6 - 50A - 15420

CircuitSetup commented 3 years ago

Sorry, I overlooked your last response!

Yes, anything showing as negative should be turned around.

It's possible that sometimes the files aren't loading properly for the interface due to connection or memory issues, or there is a bug somewhere. I haven't seen anything, nor have I seen anything reported.

errolsancaktar commented 3 years ago

i'll swap out the esp32 and flash new to it. also CT3 and 4 are for the solar panels, should those show negative or positive?

errolsancaktar commented 3 years ago

Tried new board and also flipped the cts, no change. Is it possible it's the board?

CircuitSetup commented 3 years ago

You're still getting negative values even though the CTs were flipped? This would only happen on solar when you are exporting energy that you aren't using. For individual circuits it should never be negative, because either way that circuit is consuming power, whether it be from the grid or from solar.

The only way it could be the board is if the readings are 0 or 65.535. It sounds like the issue is in the software somewhere. However, I've never seen temp and frequency off like they are in the first post.

Are you able to switch to ESPHome to see if you get similar readings?

errolsancaktar commented 3 years ago

i'm not sure what you mean by switching to esphome sorry. Is this what you mean? the extra readings show in mqtt but not on the web side: image

CircuitSetup commented 3 years ago

ESPHome is another set of software that will work with the meter. If you don't have Home Assistant running, it is a bit of a pain to set up.

However, I see that the readings for one side of the meter are all 65535, This indicates that something isn't communicating with the ESP32 properly or something is wrong with the meter. It may be easier to send you a new one to test. Do you have your original order number handy?

errolsancaktar commented 3 years ago

Is this it? 188072

CircuitSetup commented 3 years ago

No, but I found your order. I'll get you a new one (v1.4 rev1, black pcb) mailed out today.

CircuitSetup commented 3 years ago

Closing this since a new meter solved the issue.