Panowie przez te wichury i zabawy z dostawa energii mój licznik zaczął pokazywać glupoty i na jednej z faz mam abstrakcyjne pomiary zuzycia energii.
Jak zresetowac moduły pzem004t ? Moduły podłaczone pod nodemcu kazdy osobnym serialem.
Na stronie esphome znalazlem funkcje:
on_...:
then:
- pzemac.reset_energy: pzemac_1
tylko jak ją zastosować?
oto moj config:
esphome:
name: licznik-energii
esp8266:
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password:
wifi:
ssid:
password:
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid:
password:
captive_portal:
uart:
- id: uart_1
rx_pin: D1
tx_pin: D2
baud_rate: 9600
stop_bits: 1
- id: uart_2
rx_pin: D3
tx_pin: D4
baud_rate: 9600
stop_bits: 1
- id: uart_3
rx_pin: D5
tx_pin: D6
baud_rate: 9600
stop_bits: 1
modbus:
- id: mbus_1
uart_id: uart_1
- id: mbus_2
uart_id: uart_2
- id: mbus_3
uart_id: uart_3
sensor:
- platform: pzemac
modbus_id: mbus_1
current:
name: "L1 PZEM Current"
voltage:
name: "L1 PZEM Voltage"
energy:
name: "L1 PZEM Energy"
power:
name: "L1 PZEM Power"
frequency:
name: "L1 PZEM Frequency"
power_factor:
name: "L1 PZEM Power Factor"
update_interval: 10s
- platform: pzemac
modbus_id: mbus_2
current:
name: "L2 PZEM Current"
voltage:
name: "L2 PZEM Voltage"
energy:
name: "L2 PZEM Energy"
power:
name: "L2 PZEM Power"
frequency:
name: "L2 PZEM Frequency"
power_factor:
name: "L2 PZEM Power Factor"
update_interval: 10s
- platform: pzemac
modbus_id: mbus_3
current:
name: "L3 PZEM Current"
voltage:
name: "L3 PZEM Voltage"
energy:
name: "L3 PZEM Energy"
power:
name: "L3 PZEM Power"
frequency:
name: "L3 PZEM Frequency"
power_factor:
name: "L3 PZEM Power Factor"
update_interval: 10s