Skip to content

Commit

Permalink
Create pzem-004t.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancheng91 authored Jul 17, 2024
1 parent 821e14d commit 282884a
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions pzem-004t.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

esphome:
name: esp32c3-gpio-sensor
# name_add_mac_suffix: true
platformio_options:
board_build.mcu: esp32c3
board_build.variant: esp32c3

esp32:
variant: ESP32C3
board: airm2m_core_esp32c3
framework:
type: esp-idf
sdkconfig_options:
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"

logger:
api:

# Change the WiFi config to a non-static IP if needed
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
output_power: 19.8dB
fast_connect: true
ap:
password: "12345678"

uart:
rx_pin: GPIO20
tx_pin: GPIO21
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: 30s


0 comments on commit 282884a

Please sign in to comment.