1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-13 16:38:18 +00:00
2025-02-05 15:37:15 +13:00

24 lines
375 B
YAML

esphome:
on_boot:
then:
- pzemdc.reset_energy: pzemdc1
uart:
- id: uart_pzemdc
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
baud_rate: 9600
stop_bits: 2
sensor:
- platform: pzemdc
id: pzemdc1
voltage:
name: PZEMDC Voltage
current:
name: PZEMDC Current
power:
name: PZEMDC Power
energy:
name: PZEMDC Energy