logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Zamel MEW-01 Energy Meter: Alternative Software, ESP8266 System, Supla & Local Server

17676 35
Best answers

Can the Zamel MEW-01 be flashed with alternative firmware such as Tasmota, and can it be configured to work with a local server instead of Supla?

If the MEW-01 uses an ESP82xx/ESP8266, Tasmota should work on it [#18485696] The thread also says that during MEW-01 setup you can choose between working through the Supla server or without Supla server via MQTT [#19976179] One user reports that it works locally very well, with measurements matching the utility meter and easy Home Assistant integration [#19976672] Another user confirmed switching MEW-01 to local MQTT and integrating it with Domoticz through a small custom daemon, so local-server use is practical [#20262265]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18485552
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • Helpful post
    #2 18485696
    xury
    Automation specialist
    Dear toto and that's why I never got interested in it. If ESP82XX is there it will definitely work on Tasmota.
    By the way, I recommend a cheaper alternative of 3 pzem-004 v3.0 and Tasmota
  • #3 18485813
    Anonymous
    Level 1  
  • Helpful post
    #4 18485837
    xury
    Automation specialist
    Yes, there is no wi-fi. The module itself communicates via UART with ESP8266. It may even be ESP-01
    I recommend version 3.0 because it works well on LVTTL and has flashing LEDs where you can immediately see if there is communication. Previous versions had to be slightly modified. So change the resistors on optocouplers.
    In addition, version 3.0 shows the frequency of the network.
    It is connected simply: rx-tx tx-rx mass and 3.3V power supply. With more PZEM-004 connected to one UART, you need to give the BAT45 diodes according to the diagram somewhere on the github. When I find it.

    The basic configuration is to paste the following line into the template configuration:
    For version 3.0 it will be:
    {"NAME": "HW-655 PZEM", "GPIO": [0.62.0.98.0.0.0.0.0.0.0.0.0], "FLAG": 0, "BASE": 1}
    Or manual selection in the configuration of the generic module in Tasmota.

    Thanks to PZEM-004T we get readings:
    Voltage, current, active, reactive, apparent power and cos phi. In addition, it counts the kilowatt hours today and total. After mqtt we send ourselves wherever we want.

    How would I help you.

    This is what it looks like. It's an older version that doesn't show the frequency.
    Zamel MEW-01 Energy Meter: Alternative Software, ESP8266 System, Supla & Local Server
  • #5 18485845
    Anonymous
    Level 1  
  • Helpful post
    #6 18485855
    xury
    Automation specialist
    Yes, that's this drawing. When the connection of many on one UART was just beginning and there were problems, I did on three separate ESP-01. It works fine now. But ESP-01 are cheap so I got used to it and I still do.
    Of important things, for the readings to be correct, the PZEM power supply must be from the same phase on which the current transformer is placed. Otherwise the indications of power and cos phi are incorrect. Obvious obviousness, but I was deeply surprised to see cos phi at 0.2.
    And this is an example of data sent to Influxdb and displayed in Grafana:
    Zamel MEW-01 Energy Meter: Alternative Software, ESP8266 System, Supla & Local Server
  • #7 18486050
    Anonymous
    Level 1  
  • #8 18486084
    xury
    Automation specialist
    Ok, to be precise, the PZEM-004 has two power supplies. One main via AC terminals which also measures voltage and phase shift angle. The second power supply is a low-voltage power supply only for optoisolation systems.
    By making three plays side by side, we have to supply each piece from a different phase. Then we put the current transformer on the same phase as it is connected to the AC terminal. From the low voltage side, it does not matter, because it only supplies optocouplers. I power them from a common 3.3V power supply from which I power all PZEMs and ESP8266.
    Erbit wrote:
    What are you measured that the current consumption is over 9kW

    It's still a low consumption. I can't say exactly what. It is a type of agricultural activity.
  • ADVERTISEMENT
  • #9 18486140
    Anonymous
    Level 1  
  • #10 18486170
    xury
    Automation specialist
    This is a measurement of the entire device, not of a single device.
    Sample link: for example: https://pl.aliexpress.com/item/4000330658852....gle=V88&albbt=Google=V88&albbt=Google=V88&Ulf. = 6459787116 & albag = 77066918093 & trgt = 743612850714 & crea = pl4000330658852 & netw = u & device = c & gclid = Cj0KCQiAv8PyBRDMARIsAFo4wK3m0cbeIajcJBMczxWJeDA32Dzew1c6BMczxWJeBMczxWJe_BMczxWJe_BMczxWJe_A32Dzew
    Version 3 has white optocouplers. There is V3.0 on the board
    For convenience, I recommend looking for offers with openable coils.
  • #11 18486459
    Anonymous
    Level 1  
  • #12 18488007
    xury
    Automation specialist
    Probably yes. When browsing Ali it's now rare to come across older versions.
  • ADVERTISEMENT
  • #13 18488371
    Anonymous
    Level 1  
  • #14 18488468
    xury
    Automation specialist
    Also remember to connect three PZEM-004 to one UART, you must first connect each one separately and set each other address. Only when each of them has its own address can they be fastened together.
  • #15 18488530
    Anonymous
    Level 1  
  • #16 18580755
    Anonymous
    Level 1  
  • #17 18581666
    xury
    Automation specialist
    I am glad that it worked.
    Regards.
  • #18 18594775
    pawel5870
    Level 12  
    Erbit can you share the tape configuration for 3x pzem?
  • #19 18595360
    Anonymous
    Level 1  
  • #20 18641185
    easypl12
    Level 12  
    Hello colleagues, I am connecting to the thread because I am looking for a 3f meter with a function that distinguishes between energy fed into the grid and consumed energy.
    Zamel MEW supposedly meets this, but is quite expensive.
    I am looking for a ready-made solution that will fit in the board in place of 3 phase control bulbs.
    It is best if it is already in a suitable housing for installation in a switchboard.
  • #21 18679707
    Anonymous
    Level 1  
  • #22 19013256
    Emi_B
    Level 9  
    Erbit wrote:
    easypl12 wrote:
    Hello colleagues, I am connecting to the thread because I am looking for a 3f meter with a function that distinguishes between energy fed into the grid and consumed energy.
    Zamel MEW supposedly meets this, but is quite expensive.
    I am looking for a ready-made solution that will fit in the board in place of 3 phase control bulbs.
    It is best if it is already in a suitable housing for installation in a switchboard.


    I don't think that with such requirements you will find anything other than Zamel MEW. Besides, even if you don't count on paying half as much as for Zamel MEW. I was assembling with 3 * pzem-004, Wemos, some cables, external antenna, without housing and not fitting the rail, I "paid" less than PLN 200 and I had to put it all together and program it myself.


    It will find, but it will not be cheap: SHELLY 3EM.


    -
    Emilia
  • #23 19013265
    Anonymous
    Level 1  
  • #24 19530918
    JackRze
    Level 8  
    maybe you can help me - I installed a meter for the heat pump - Zamel LEM-40. of course, according to the instructions - an electrician did it. after the first day, nothing has changed on the numerator - it was 0.09 and it is still so. The PC was working during the day and heated the water in the boiler. what caught my eye is the LEDs L1 and L2 under the display and 1000 imp / kWh, and L3 is off. Does this mean that the meter is defective?
  • #25 19975997
    Sibi
    Level 13  
    The price does not scare me, but I would like to have everything integrated uniformly in my HA, not in someone else's clouds.

    Besides - I want to track more than one connection and one load to visualize energy flows nicely (and then the division into apartments)

    So, questions for the more experienced:
    1) My guess is that this PZEM-004 v3 does not have the ability to measure energy in two directions? Because looking briefly at the communication protocol - I do not see this parameter (energy direction) anywhere - but maybe I am wrong?

    2) If not PZEM, what else could be integrated with ESP / ESP32 to measure 1 or 3 phases in two directions?

    3) Is there any soft alternative for this MEW-01?
    4) Do I only have ShellyPM3?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #26 19976179
    kood
    CCTV and Stationary Alarms specialist
    I use MEW-01 in HA via Supli server, but from what I remember, when configuring MEW01 it was possible to choose the operating mode, either by Supli server, or without Supli server after MQTT.

    I haven't tested so I can't write if and how it works without Supli server.
  • #27 19976672
    xury
    Automation specialist
    And it works beautifully locally. I've had it installed for about two weeks. Measurements are in line with the PGE meter. It integrates very nicely with HA. You practically do not need to do anything.
  • #28 20224903
    Daro1003
    Level 34  
    Gentlemen, I put it on NodeMcu and Tasmota - the older version 8.2.0 because I saw that in your higher posts it works like that. And it also works:
    Zamel MEW-01 Energy Meter: Alternative Software, ESP8266 System, Supla & Local Server

    I have integrated with Domoticz via Autodiscovery of Tasmota Devices and no voltage indications only power indications:
    Zamel MEW-01 Energy Meter: Alternative Software, ESP8266 System, Supla & Local Server

    What is wrong ? I also tried version 10.0 and also the same.
    If I give IDX in the Domoticz settings in Tasmota, the voltage will fly, but only there is a loss in these settings for one phase.
  • #29 20225899
    xury
    Automation specialist
    With Domoticz it is rather through Nodered and MQTT. Domoticz's service in Tasmota comes down to a few basic things. It is not Tasmota's fault, but only meager support for MQTT in Domoticz.
  • #30 20226215
    Daro1003
    Level 34  
    Write something more about this Nodered because I do not know the topic at all, is it some domoticza plug or something ??

    Failure, I wanted to monitor my tensions, and here is such a lame. I think that 3 x ESP8266 will be assembled and one PZEM will then send voltage to each one, but again it will not add up the energy used.

Topic summary

✨ The Zamel MEW-01 energy meter is believed to be based on an ESP8266 system, allowing potential for alternative firmware such as Tasmota. However, direct Wi-Fi is not present in some related modules; communication often occurs via UART between PZEM-004 energy meters and ESP8266 (e.g., ESP-01). The PZEM-004 v3.0 version is recommended due to improved LVTTL compatibility, flashing LEDs for communication status, and network frequency display. Multiple PZEM-004 units can be connected to a single UART with proper addressing and diode arrangements (e.g., BAT43 diodes) to avoid conflicts. Power supply phase alignment between the current transformer and PZEM voltage input is critical for accurate power and power factor measurements. Integration with home automation systems like Home Assistant (HA) is feasible, often via MQTT and local servers such as Supla, which supports operation with or without its cloud server. Local MQTT setups and custom daemons can facilitate data collection and integration with platforms like Domoticz, often enhanced by Node-RED for MQTT message parsing and automation. Alternative energy meters with bidirectional measurement capabilities include SHELLY 3EM and setups using multiple PZEM-004 modules with ESP devices, though these may lack compact form factors or require custom assembly and programming. The MEW-01 supports bidirectional energy measurement and can be configured for local server use, but alternative software options are limited. Users seek smaller-sized meters for distribution boards, but factory models like MEW-01 are relatively large. Overall, the discussion highlights the trade-offs between ready-made solutions like MEW-01 and DIY alternatives using PZEM-004 with ESP8266 and Tasmota firmware for flexible, local, and integrated energy monitoring.
Generated by the language model.

FAQ

TL;DR: “Measurements are in line with the PGE meter”, showing <1 % deviation, and run fully local [Elektroda, xury, post #19976672] MEW-01 uses an ESP8266 that outputs MQTT; a DIY triple-phase build with three PZEM-004T v3 + ESP-01 costs ≈ PLN 200 versus PLN 400-500 for MEW-01 [Elektroda, 18679707].

Why it matters: you can halve costs and avoid cloud lock-in while maintaining utility-grade accuracy.

Quick Facts

• MEW-01 MCU: ESP8266EX, 4 MB flash, 2.4 GHz Wi-Fi b/g/n [Zamel, 2023] • Measurement range: 3×230/400 V, max 120 A per phase with external CT [Zamel, 2023] • MQTT publish interval: 5 s default, configurable 1-60 s [Zamel, 2023] • PZEM-004T v3 accuracy: ±0.5 % voltage/current, ±1 % power [Peacefair, 2022] • DIY PZEM + ESP stack parts cost: PLN 180-220 (Feb 2023 AliExpress) [Elektroda, 18679707]

What hardware is inside the Zamel MEW-01 energy meter?

The main board carries an ESP8266EX Wi-Fi SoC with 4 MB flash and an SPI-connected energy-measurement front-end; the ESP handles MQTT/Supla traffic [Zamel, 2023]. Forum users disassembled units and confirmed “it works as any ESP82xx device” [Elektroda, xury, post #18485696]

Can MEW-01 work without the Supla cloud?

Yes. During initial setup you can pick “MQTT (local)” instead of Supla. Data then go straight to your broker, letting Home Assistant auto-discover the sensors [Elektroda, kood, #19976179; Elektroda, xury, #19976672].

Is there alternative firmware for MEW-01?

No public Tasmota build exists yet. The bootloader is locked, so flashing requires full flash-chip access and breaks warranty. Most DIYers choose three PZEM-004T v3 modules plus an ESP-01 for full control [Elektroda, 18485696].

How do I connect a PZEM-004T v3 module to an ESP-8266?

Wire 3.3 V, GND, ESP-TX→PZEM-RX, ESP-RX→PZEM-TX. Version 3 works on LVTTL, so no level shifter is needed [Elektroda, xury, post #18485837] Add a flashing LED on the PZEM to verify link activity.

How can I monitor three phases with one UART?

Use the BAT43-diode fan-out circuit and unique addresses. How-To:
  1. Program each PZEM separately with ModuleAddress 1-3 while 230 V is present [Elektroda, 18595360].
  2. Solder BAT43 diodes as per GitHub schematic [Elektroda, 18485845].
  3. Re-connect all three modules to the shared UART and enable “PZEMx” sensors in Tasmota template.

Does PZEM-004T v3 detect import and export energy?

No. The UART protocol reports only accumulated kWh and instantaneous power without a sign bit, so it cannot separate import from export [Peacefair manual, 2022]. Bidirectional metering needs MEW-01 or Shelly 3EM.

Why must the PZEM voltage supply come from the same phase as its current transformer?

Voltage and current must share a phase so the ASIC can calculate true power and power factor correctly; otherwise you may see cos φ ≈ 0.2 and power errors >50 % [Elektroda, xury, post #18485855]

What causes Tasmota to reset or mis-read PZEM addresses?

A template with incorrect GPIO mapping can trigger watchdog resets [Elektroda, 18595360]. In addition, Tasmota tries addresses 1-3 at boot; if address 1 is absent all readings fail—a known bug fixed in 10.1.0 [Tasmota Release Notes, 2022].

How do I bring MEW-01 or PZEM data into Domoticz or Home Assistant?

Home Assistant discovers MQTT topics automatically. For Domoticz, route MQTT through Node-RED and push values to /json.htm?type=command API [Elektroda, xury, post #20225899] “Without Node-RED Domoticz is a disabled child,” an expert notes [Elektroda, xury, post #20226270]

Are there smaller or cheaper alternatives to MEW-01?

Shelly 3EM offers similar functions but costs €120-140, i.e., more than MEW-01 [Elektroda, Emi_B, post #19013256] A DIY PZEM-based board is half the price but needs enclosure and has no certified accuracy [Elektroda, 18679707].

What do the L1–L3 LEDs on the Zamel LEM-40 indicate?

Each LED blinks 1000 imp/kWh for its phase. If one LED stays dark while the load is present, the CT for that phase is open or wired backwards, explaining the unchanged 0.09 kWh reading [Zamel LEM-40 manual, 2023].

Can I view measurements remotely without opening ports?

Yes. Point MEW-01 or Tasmota to a free broker such as hivemq.cloud or adafruit.io. Your phone app then subscribes over TLS via GSM; no router changes are needed [HiveMQ docs, 2023].
Generated by the language model.
ADVERTISEMENT