Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONOFF POW cant calibrate power settings #194

Closed
xoseperez opened this issue Aug 29, 2017 · 11 comments
Closed

SONOFF POW cant calibrate power settings #194

xoseperez opened this issue Aug 29, 2017 · 11 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: Trevor (Bitbucket: nightone, GitHub: Unknown)


I have just upgraded from 1.8.3 to 1.9.1 and I can no longer set the calibration of the POWER sensor.... I have the numbers from a mulitimeter and after filling in the values and clicking update I get a popup box that says saved... when I click on status and check MQTT I still get the old values?

The only difference between the two firmware builds is that 1.8.3 i did from the arduino IDE and uploaded though serial... 1.9.1 i cheated a bit and just downloaded your bin file and updated though the web interface.... (it wiped all the settings and I have to reconfigure from scratch)... Would that make a difference to the ability to calibrate the power?

@xoseperez
Copy link
Owner Author

Are the calibration settings the only ones that are not being saved? Does the wifi connection work even after a reset, for instance?

@xoseperez
Copy link
Owner Author

Original comment by Trevor (Bitbucket: nightone, GitHub: Unknown):


Yes its only the power settings that are not saving.... when I change MQTT it saves fine, when I change NTP it saves fine. I have uplugged and booted a few times and it comes up with the correct wifi/ntp/mqtt settings.... I have noticed that when I enable API (which i currenlty dont use) I cant get access to the api at all...it says forbidden. eg : http://192.168.1.105/api/relay/0?apikey=XXXXXXXXXXXXX returns forbidden.

I am thinking that its maybe SPIFFS related and a file is corupt? PS.... reason I enabled API was to see if i can set the power calibration though the API?

@xoseperez
Copy link
Owner Author

No, there is currently no way to change the calibration parameters via the API. And the API does not use SPIFFS, actually ESPurna does not use SPIFFS at all. Weird...

@xoseperez
Copy link
Owner Author

Original comment by Trevor (Bitbucket: nightone, GitHub: Unknown):


I will compile from source and reflash the SONOFF POW... will let you know how it goes

@xoseperez
Copy link
Owner Author

Original comment by Trevor (Bitbucket: nightone, GitHub: Unknown):


...my votage is 240...so I assume I am not breaking some "out of bounds" limit

@xoseperez
Copy link
Owner Author

Original comment by Trevor (Bitbucket: nightone, GitHub: Unknown):


No joy... hate tried the following and the problem persists:

  1. Recompiled from source after making sure I had all the latest libraries uploaded firmware with Arduino IDE.... Problem persists.
  2. erased the flash with latests esptool.py
  3. download and flashed with your download espurna-1.9.1-itead-sonoff-pow.bin. reconfigured and tryed again.... everything else works as with 1.8.3 meaning WIFI saves and retained after reboot, MQTT saved and retained after reboot, NTP retained and saved after reboot.

For interest: the values that I am trying to set as per the multimeter are 187w at 240v and 0.779A ?

Can I change the code somewhere that the default voltage is 240 not 220?

@xoseperez
Copy link
Owner Author

Original comment by Trevor (Bitbucket: nightone, GitHub: Unknown):


ESPURNA.jpg

Just rolled back to 1.8.3 and calibration worked first time!

@xoseperez
Copy link
Owner Author

Web interface was resetting power calibration settings with every request. Introduced with 60e8446. Fixed on dev branch, will be released with 1.9.3.

@xoseperez
Copy link
Owner Author

Fixed with 1.9.3

@xoseperez
Copy link
Owner Author

Removing milestone: 1.9.3 (automated comment)

@gibbo520
Copy link

Same problem in 1.12.4 again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants