User Tools

Site Tools


en:elecpow2:start

This page in German (Seite auf Deutsch)

ElecPow 2.x

ElecPow 2.x is a free alternative firmware for various ESP32-based WiFi power meters and offers the following functions:

  • No need to use any cloud service. Platform-independent access using standard browsers within the local network.
  • Measurement and display of the current mains voltage, current and active power,
  • the maximum daily value of active power and in total, and
  • the accumulated daily energy and in total.
  • If the power sensors provide such function, generation and consumption are counted separately (bidirectional meter).
  • Only locally accessible web server: recording and graphic rendering of the data of the last 24 hours.
  • Calculation and indication of the apparent and reactive powers as well as the power factor.
  • Timer: Programmable switching of the relay depending on the time and/or calculated sun altitude above the horizon.
  • Automatic changeover to daylight savings/standard time.
  • Switching of sockets or signalling by LED depending on the power supplied by other sockets.
  • Free configuration of the pins for e.g. relay, key, WiFi and status LED. Presets for known hardware are also available.
  • A DS18B20, BME280 or BME680 can be connected to free pins of the microcontroller. Attention: Cable and sensor must NOT leave the plastic housing (mains voltage)!!!

No Internet connection is required for the basic functions. However, it is recommended so that the current time can be fetched via NTP at startup.

Examples

In addition, it is also possible to transfer the readings anonymously to a database on our server (location: Germany) and to have charts generated there. We will gladly activate this function for a small one-time fee, which covers our server costs. You may activate data logging at the top of the “Readings” tab.

Remote access from the Internet to the device is not possible at any time, i.e. no switching off or altering of any settings.

Download

Each archive contains the firmware (ElecPow), the flash tool esptool and a batch file to control a serial adapter.

Once installed, later updates of the firmware can easily be done via the tab “WiFi / Firmware update”.

Initial Installation

Via serial adapter

Never operate the power meter with its case open! Do not connect any programming cables while the device is connected to mains power!!!

A serial adapter is required (e.g. “FTDI USB to TTL serial adapter”). The above download includes all needed files.

  • IMPORTANT: Disconnect the device from mains power!!
  • Open the case,
  • connect the serial adapter to the device (3.3 Volt, RX, TX and GND), but not yet to the PC,
  • start the batch file ElecPow2.bat.

Create a backup:

  • Press and hold the button on the device during the next two steps,
  • connect the serial adapter to the PC,
  • press “b” on the PC,
  • disconnect the serial adapter.

Install ElecPow:

  • Press and hold the button on the device during the next two steps,
  • connect the serial adapter to the PC,
  • press the corresponding key on the PC,
  • disconnect the serial adapter,
  • close the case.

dualr3.jpg elite.jpg

If you are using Linux instead of Windows, execute the following commands after installing esptool. Before each step, press and hold the button on the device and then reconnect the serial adapter to the PC. This is necessary for the chip to start in programming mode:

Create a backup:

esptool read_flash 0 0x400000 backup.bin

Install ElecPow (replace the .bin file name according to your needs):

esptool –baud 2000000 write_flash –erase-all 0x01000 bootloader.bin 0x08000 partition-table.bin 0x0E000 ota_data_initial.bin 0x10000 SONOFF_DUAL_R3.bin

Finally, we would like to emphasize that the device must not be connected to mains power with the case open and/or with programming cables connected!!!

If you are using Linux instead of Windows, execute the following commands after installing esptool. The programming adapter must be reconnected to the PC before each step. This is necessary so that the chip starts in programming mode:

Create a backup:

esptool read_flash 0 0x100000 backup.bin

Install ElecPow:

esptool –baud 2000000 write_flash –erase-all 0x01000 bootloader.bin 0x08000 partition-table.bin 0x0E000 ota_data_initial.bin 0x10000 SONOFF_POW_ELITE.bin

Finally, we would like to emphasize that the device must not be connected to mains power with the case open and/or with programming cables connected!!!

Software manual

WiFi setup

As long as WiFi is not yet set up, ElecPow will, via WPS, search for an access point during the first few seconds after power on (press the WPS button on your router prior to connecting the device to mains power).

If WPS does not work, ElecPow itself opens an access point named ElecPow and the password Coolhardware.de The blue LED will then light up permanently. After connecting to this WiFi, access is possible via the address http://192.168.4.1. On the “WiFi” tab an existing network can then be selected and its password entered manually.

The blue LED will turn off once WiFi has been set up correctly. The device then can be accessed there (locally) by browsing to http://elecpow.local.

Reset to default settings

To force a reset to default settings, press and hold the button on the powered up device for about 5 seconds. Subsequently, all settings including the WiFi data are erased. You can set up the device again the same way as described above.

More screenshots


This website makes use only of a technically necessary session cookie for the duration of your visit • Contact • Legal info • Privacy policymail@webtemp.org (PGP)
United States 10:11:50 up 26 days, 18:50, 0 users, load average: 9.38, 10.46, 10.65