Skip to content

Commit

Permalink
v3.0.9
Browse files Browse the repository at this point in the history
3.0.9
* Add Sonoff Pow voltage reading when relay is on but no load present
  • Loading branch information
arendst committed Dec 18, 2016
1 parent 3d37f2c commit 3181a59
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Sonoff-MQTT-OTA-Arduino
Provide ESP8266 based itead Sonoff with Serial, Web and MQTT control allowing 'Over the Air' or OTA firmware updates using Arduino IDE.

Current version is **3.0.8** - See ```sonoff/_releasenotes.ino``` for change information.
Current version is **3.0.9** - See ```sonoff/_releasenotes.ino``` for change information.

Starting with version 2.0.0 the following hardware devices are supported:
- itead Sonoff
Expand Down
Binary file modified api/arduino/sonoff.ino.bin
Binary file not shown.
7 changes: 5 additions & 2 deletions sonoff/_releasenotes.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* 3.0.8 20161218
* Add temperature conversion to Fahrenheit as option in user_config.h (TEMP_CONVERSION)
/* 3.0.9
* Add Sonoff Pow voltage reading when relay is on but no load present
*
* 3.0.8 20161218
* Add temperature conversion to Fahrenheit as option in user_config.h (TEMP_CONVERSION)
*
* 3.0.7 20161217
* Add user_config_override.h to be used by user to override some defaults in user_config.h
* Fix Sonoff Pow low power (down to 4W) intermittent measurements
Expand Down
2 changes: 1 addition & 1 deletion sonoff/sonoff.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* ====================================================
*/

#define VERSION 0x03000800 // 3.0.8
#define VERSION 0x03000900 // 3.0.9

#define SONOFF 1 // Sonoff, Sonoff SV, Sonoff Dual, Sonoff TH 10A/16A, S20 Smart Socket, 4 Channel
#define SONOFF_POW 9 // Sonoff Pow
Expand Down
2 changes: 1 addition & 1 deletion sonoff/xsns_hlw8012.ino
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ boolean hlw_readEnergy(byte option, float &ed, uint16_t &e, uint16_t &w, uint16_
} else {
w = 0;
}
if (hlw_cf1u_plen && w) {
if (hlw_cf1u_plen && (w || (power &1))) {
hlw_u = (HLW_UREF * sysCfg.hlw_ucal) / hlw_cf1u_plen;
u = hlw_u / 10;
} else {
Expand Down

0 comments on commit 3181a59

Please sign in to comment.