Skip to the content.

Z1-Mini/PZEM THREE-PHASE ZIGBEE METER

PZEM’s can be connected to the Z1-Mini with an RS485 to UART converter with automatic flow control (so no RE-DE connection is needed). Adapter like this or this can be used.

To use 3 PZEM, modbus ID address of each one must be changed (otherwise all have the same). To do so Peacefair PC software (Windows only) can be used. Download the software and unzip in a folder of your choice (no installation needed); connect PZEM (each at a time) to the computer using a RS485 to USB converter and change PZEM address in Set parameters section (see image below). Repeat this step for each PZEM setting 1, 2 and 3.

Home assistant lovelace panel:

With setting below, data are fetched every 20s (Expert tab, Reporting interval).

Home assistant configuration to extract mqtt attributes as entities:

 sensor:
   - platform: mqtt
     name: "PZEM Volt R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "V"
     value_template: ""
   - platform: mqtt
     name: "PZEM Amp R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "A"
     value_template: ""
   - platform: mqtt
     name: "PZEM Watt R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "W"
     value_template: ""
   - platform: mqtt
     name: "PZEM Power Factor R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: ""
     value_template: ""
   - platform: mqtt
     name: "PZEM Frequency R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Hz"
     value_template: "" 
   - platform: mqtt
     name: "PZEM Energy R"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Wh"
     value_template: ""  

   - platform: mqtt
     name: "PZEM Volt S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "V"
     value_template: ""
   - platform: mqtt
     name: "PZEM Amp S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "A"
     value_template: ""
   - platform: mqtt
     name: "PZEM Watt S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "W"
     value_template: ""
   - platform: mqtt
     name: "PZEM Power Factor S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: ""
     value_template: ""
   - platform: mqtt
     name: "PZEM Frequency S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Hz"
     value_template: "" 
   - platform: mqtt
     name: "PZEM Energy S"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Wh"
     value_template: "" 

   - platform: mqtt
     name: "PZEM Volt T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "V"
     value_template: ""
   - platform: mqtt
     name: "PZEM Amp T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "A"
     value_template: ""
   - platform: mqtt
     name: "PZEM Watt T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "W"
     value_template: ""
   - platform: mqtt
     name: "PZEM Power Factor T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: ""
     value_template: ""
   - platform: mqtt
     name: "PZEM Frequency T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Hz"
     value_template: "" 
   - platform: mqtt
     name: "PZEM Energy T"
     state_topic: "zigbee2mqtt/0x00124b0022608e5a"
     unit_of_measurement: "Wh"
     value_template: ""