Hello! looking to get some help with my first Power Minitoring device.
Got myself a PZEM-004t v3, but struck a solid wall right off the bat.
ESPHome logs gives me the following error:
[00:08:13][W][modbus:105]: Modbus CRC Check failed! C022!=00
I’d love some help getting this going.
Here’s the code I used:
esphome:
name: pzemac
esp32:
board: esp32dev
framework:
type: arduino
logger:
# level: VERY_VERBOSE
api:
encryption:
key: "redacted"
ota:
password: "redacted"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: redacted
gateway: redacted
subnet: redacted
ap:
ssid: "Pzemac Fallback Hotspot"
password: "redacted"
captive_portal:
uart:
rx_pin: GPIO23
tx_pin: GPIO22
baud_rate: 9600
modbus:
sensor:
- platform: pzemac
current:
name: "PZEM-004T V3 Current"
voltage:
name: "PZEM-004T V3 Voltage"
energy:
name: "PZEM-004T V3 Energy"
power:
name: "PZEM-004T V3 Power"
frequency:
name: "PZEM-004T V3 Frequency"
power_factor:
name: "PZEM-004T V3 Power Factor"
update_interval: 2s
Obvious things that I have checked for:
Have I checked if I’m not messing up Tx an Rx?:
Yes I have swapped and checked. I have the correct Tx/Rx Combo
Have I checked if I’m using code for the correct device version?
Yes The device is PZEM-004t v3. It uses MODBUS and the platform on ESPHome is: pzemac
I’m happy to provide any further information that might help figure things out