alcar21 / WemosEM

Cheap power monitor (STC013) with Home Assistant Discover and Wemos D1 Mini / PRO (esp8266)
113 stars 23 forks source link

A couple of minor items and a question #6

Closed NorthernMan54 closed 4 years ago

NorthernMan54 commented 4 years ago

Tks for this piece of work, it is very well done. I just have a couple of minor things

1 - I'm in North America and I can't set the timezone to -5 ( Eastern Standard )

2 - When the device reboots, the data is wonky for the first minute, can this false data be thrown away? ie call em_read(true); at the end of the setup function?

3 - When Power usage is zero, the current sits between 0.02 to 0.04, any thoughts on why?

4 - Noticed that after running for 24 hours, this message "Failed to open config file for writing", so am wondering why the em_read is writing the config after every read in WiFi station mode.

For setup, I'm using a SCT013 Calibrated at 30A 1V, local power is 120 volt 60 Hertzs

alcar21 commented 4 years ago

Hello, thanks.

  1. Ok, i will fix in next version.
  2. It's difficult, when system start, it perform a calibration and discard initials values. I could add an option in configuration that discard data of a period of time
  3. It is the rounding of precision, it will really count for example 0.004 watts
  4. Which version are you using? Please use the core 2.4

The measured is correctly? Thanks by the report. Please be patient, my dedication time to the project is very short.

NorthernMan54 commented 4 years ago

For these, I'm putting together a pull request and fix for the MQTT Issue

I'm just testing behaviour when WiFi drops and restarts, then I will submit

alcar21 commented 4 years ago

Thank you.

El jue., 23 ene. 2020 a las 0:20, Northern Man (notifications@github.com) escribió:

For these, I'm putting together a pull request and fix for the MQTT Issue

I'm just testing behaviour when WiFi drops and restarts, then I will submit

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/alcar21/WemosEM/issues/6?email_source=notifications&email_token=ABJBMSMOFMJO6IO3K36BEODQ7DIELA5CNFSM4KI5OZFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJVOYBI#issuecomment-577432581, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJBMSLLLRAJD4BPSOW6DYDQ7DIELANCNFSM4KI5OZFA .

NorthernMan54 commented 4 years ago

Please review pull request #8

PS Accuracy is pretty good, It is within 10% of my Watt Meter

alcar21 commented 4 years ago

Accepted. Thanks.

NorthernMan54 commented 4 years ago

Tks