PZEM DC power monitor EPHome example
esphome:
name: dc-stroom-meter1
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "920bfa283063600e2bae07364d3e3ce1"
wifi:
ssid: wifiname
password: whatsthepassword
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Dc-Stroom-Meter1"
password: "whatsthepassword"
captive_portal:
# Enable Web server.
web_server:
port: 80
time:
- platform: homeassistant
id: homeassistant_time
text_sensor:
- platform: wifi_info
ip_address:
name: DC meter IP Address
ssid:
name: DC meter Connected SSID
bssid:
name: DC meter Connected BSSID
uart:
# tx_pin: 1
# rx_pin: 3
# tx_pin: D4
# rx_pin: D3
tx_pin: D2
rx_pin: D1
baud_rate: 9600
stop_bits: 2
sensor:
- platform: pzemdc
current:
name: "DC-Current"
# filters:
# - calibrate_linear:
# - 0.0 -> 0.0
# - 2.1 -> 0.9
voltage:
name: "DC-Voltage"
# accuracy_decimals: 2
power:
name: "DC-Power"
filters:
# - calibrate_linear:
# - 0.0 -> 0.0
# - 60.1 -> 25.6
id: my_power
update_interval: 15s
- platform: total_daily_energy
name: "DC-Daily-Energy"
filters:
- multiply: 0.001
unit_of_measurement: kWh
power_id: my_power
- platform: wifi_signal
name: "DC meter WiFi Signal Sensor"
update_interval: 15s
- platform: uptime
name: "DC meter Uptime Sensor"