INFO Reading configuration /config/esphome/grid.yaml...
INFO Detected timezone 'Etc/UTC'
INFO Starting log output from grid.local using esphome API
INFO Successfully connected to grid.local
[16:32:46][I][app:102]: ESPHome version 2022.3.1 compiled on Apr 14 2022, 16:30:09
[16:32:46][C][wifi:491]: WiFi:
[16:32:46][C][wifi:353]: Local MAC: 30:AE:A4:F8:14:BC
[16:32:46][C][wifi:354]: SSID: 'Main'[redacted]
[16:32:46][C][wifi:355]: IP Address: 172.16.1.152
[16:32:46][C][wifi:357]: BSSID: 50:C7:BF:43:6E:E0[redacted]
[16:32:46][C][wifi:358]: Hostname: 'grid'
[16:32:46][C][wifi:360]: Signal strength: -64 dB ▂▄▆█
[16:32:46][C][wifi:364]: Channel: 1
[16:32:46][C][wifi:365]: Subnet: 255.255.255.0
[16:32:46][C][wifi:366]: Gateway: 172.16.1.1
[16:32:46][C][wifi:367]: DNS1: 102.104.44.16
[16:32:46][C][wifi:368]: DNS2: 103.104.44.20
[16:32:46][C][logger:233]: Logger:
[16:32:46][C][logger:234]: Level: DEBUG
[16:32:46][C][logger:235]: Log Baud Rate: 0
[16:32:46][C][logger:236]: Hardware UART: UART0
[16:32:46][C][uart.arduino_esp32:107]: UART Bus:
[16:32:46][C][uart.arduino_esp32:108]: TX Pin: GPIO13
[16:32:46][C][uart.arduino_esp32:109]: RX Pin: GPIO14
[16:32:46][C][uart.arduino_esp32:111]: RX Buffer Size: 256
[16:32:46][C][uart.arduino_esp32:113]: Baud Rate: 9600 baud
[16:32:46][C][uart.arduino_esp32:114]: Data Bits: 8
[16:32:46][C][uart.arduino_esp32:115]: Parity: NONE
[16:32:46][C][uart.arduino_esp32:116]: Stop bits: 1
[16:32:46][C][uart.arduino_esp32:107]: UART Bus:
[16:32:46][C][uart.arduino_esp32:108]: TX Pin: GPIO27
[16:32:46][C][uart.arduino_esp32:109]: RX Pin: GPIO26
[16:32:46][C][uart.arduino_esp32:111]: RX Buffer Size: 256
[16:32:46][C][uart.arduino_esp32:113]: Baud Rate: 9600 baud
[16:32:46][C][uart.arduino_esp32:114]: Data Bits: 8
[16:32:46][C][uart.arduino_esp32:115]: Parity: NONE
[16:32:46][C][uart.arduino_esp32:116]: Stop bits: 1
[16:32:46][C][uart.arduino_esp32:107]: UART Bus:
[16:32:46][C][uart.arduino_esp32:108]: TX Pin: GPIO25
[16:32:46][C][uart.arduino_esp32:109]: RX Pin: GPIO35
[16:32:46][C][uart.arduino_esp32:111]: RX Buffer Size: 256
[16:32:46][C][uart.arduino_esp32:113]: Baud Rate: 9600 baud
[16:32:46][C][uart.arduino_esp32:114]: Data Bits: 8
[16:32:46][C][uart.arduino_esp32:115]: Parity: NONE
[16:32:46][C][modbus:129]: Modbus:
[16:32:46][C][modbus:131]: Send Wait Time: 250 ms
[16:32:46][C][modbus:129]: Modbus:
[16:32:46][C][modbus:131]: Send Wait Time: 250 ms
[16:32:46][C][modbus:129]: Modbus:
[16:32:46][C][modbus:131]: Send Wait Time: 250 ms
[16:32:46][C][modbus:129]: Modbus:
[16:32:46][C][modbus:131]: Send Wait Time: 250 ms
[16:32:46][C][template.sensor:023]: Template Sensor 'total_power'
[16:32:46][C][template.sensor:023]: Device Class: 'power'
[16:32:46][C][template.sensor:023]: State Class: 'measurement'
[16:32:46][C][template.sensor:023]: Unit of Measurement: 'W'
[16:32:46][C][template.sensor:023]: Accuracy Decimals: 1
[16:32:46][C][template.sensor:024]: Update Interval: 60.0s
[16:32:46][C][template.sensor:023]: Template Sensor 'energy_total_daily'
[16:32:46][C][template.sensor:023]: Device Class: 'energy'
[16:32:46][C][template.sensor:023]: State Class: 'measurement'
[16:32:46][C][template.sensor:023]: Unit of Measurement: 'kWh'
[16:32:46][C][template.sensor:023]: Accuracy Decimals: 1
[16:32:46][C][template.sensor:023]: Icon: 'mdi:counter'
[16:32:46][C][template.sensor:024]: Update Interval: 60.0s
[16:32:47][C][status:034]: Status Binary Sensor 'grid Status'
[16:32:47][C][status:034]: Device Class: 'connectivity'
[16:32:47][C][pzemac:067]: PZEMAC:
[16:32:47][C][pzemac:068]: Address: 0x01
[16:32:47][C][pzemac:069]: Voltage 'voltage_ac1'
[16:32:47][C][pzemac:069]: Device Class: 'voltage'
[16:32:47][C][pzemac:069]: State Class: 'measurement'
[16:32:47][C][pzemac:069]: Unit of Measurement: 'V'
[16:32:47][C][pzemac:069]: Accuracy Decimals: 1
[16:32:47][C][pzemac:070]: Current 'current_ac1'
[16:32:47][C][pzemac:070]: Device Class: 'current'
[16:32:47][C][pzemac:070]: State Class: 'measurement'
[16:32:47][C][pzemac:070]: Unit of Measurement: 'A'
[16:32:47][C][pzemac:070]: Accuracy Decimals: 1
[16:32:47][C][pzemac:071]: Power 'power_ac1'
[16:32:47][C][pzemac:071]: Device Class: 'power'
[16:32:47][C][pzemac:071]: State Class: 'measurement'
[16:32:47][C][pzemac:071]: Unit of Measurement: 'W'
[16:32:47][C][pzemac:071]: Accuracy Decimals: 0
[16:32:47][C][pzemac:072]: Energy 'energy_ac1'
[16:32:47][C][pzemac:072]: Device Class: 'energy'
[16:32:47][C][pzemac:072]: State Class: 'total_increasing'
[16:32:47][C][pzemac:072]: Unit of Measurement: 'kWh'
[16:32:47][C][pzemac:072]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Frequency 'frequency_ac1'
[16:32:47][C][pzemac:073]: State Class: 'measurement'
[16:32:47][C][pzemac:073]: Unit of Measurement: 'Hz'
[16:32:47][C][pzemac:073]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Icon: 'mdi:current-ac'
[16:32:47][C][pzemac:074]: Power Factor 'factor_ac1'
[16:32:47][C][pzemac:074]: Device Class: 'power_factor'
[16:32:47][C][pzemac:074]: State Class: 'measurement'
[16:32:47][C][pzemac:074]: Unit of Measurement: ''
[16:32:47][C][pzemac:074]: Accuracy Decimals: 1
[16:32:47][C][pzemac:067]: PZEMAC:
[16:32:47][C][pzemac:068]: Address: 0x01
[16:32:47][C][pzemac:069]: Voltage 'voltage_ac2'
[16:32:47][C][pzemac:069]: Device Class: 'voltage'
[16:32:47][C][pzemac:069]: State Class: 'measurement'
[16:32:47][C][pzemac:069]: Unit of Measurement: 'V'
[16:32:47][C][pzemac:069]: Accuracy Decimals: 1
[16:32:47][C][pzemac:070]: Current 'current_ac2'
[16:32:47][C][pzemac:070]: Device Class: 'current'
[16:32:47][C][pzemac:070]: State Class: 'measurement'
[16:32:47][C][pzemac:070]: Unit of Measurement: 'A'
[16:32:47][C][pzemac:070]: Accuracy Decimals: 1
[16:32:47][C][pzemac:071]: Power 'power_ac2'
[16:32:47][C][pzemac:071]: Device Class: 'power'
[16:32:47][C][pzemac:071]: State Class: 'measurement'
[16:32:47][C][pzemac:071]: Unit of Measurement: 'W'
[16:32:47][C][pzemac:071]: Accuracy Decimals: 0
[16:32:47][C][pzemac:072]: Energy 'energy_ac2'
[16:32:47][C][pzemac:072]: Device Class: 'energy'
[16:32:47][C][pzemac:072]: State Class: 'total_increasing'
[16:32:47][C][pzemac:072]: Unit of Measurement: 'kWh'
[16:32:47][C][pzemac:072]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Frequency 'frequency_ac2'
[16:32:47][C][pzemac:073]: State Class: 'measurement'
[16:32:47][C][pzemac:073]: Unit of Measurement: 'Hz'
[16:32:47][C][pzemac:073]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Icon: 'mdi:current-ac'
[16:32:47][C][pzemac:074]: Power Factor 'factor_ac2'
[16:32:47][C][pzemac:074]: Device Class: 'power_factor'
[16:32:47][C][pzemac:074]: State Class: 'measurement'
[16:32:47][C][pzemac:074]: Unit of Measurement: ''
[16:32:47][C][pzemac:074]: Accuracy Decimals: 1
[16:32:47][C][pzemac:067]: PZEMAC:
[16:32:47][C][pzemac:068]: Address: 0x01
[16:32:47][C][pzemac:069]: Voltage 'voltage_ac3'
[16:32:47][C][pzemac:069]: Device Class: 'voltage'
[16:32:47][C][pzemac:069]: State Class: 'measurement'
[16:32:47][C][pzemac:069]: Unit of Measurement: 'V'
[16:32:47][C][pzemac:069]: Accuracy Decimals: 1
[16:32:47][C][pzemac:070]: Current 'current_ac3'
[16:32:47][C][pzemac:070]: Device Class: 'current'
[16:32:47][C][pzemac:070]: State Class: 'measurement'
[16:32:47][C][pzemac:070]: Unit of Measurement: 'A'
[16:32:47][C][pzemac:070]: Accuracy Decimals: 1
[16:32:47][C][pzemac:071]: Power 'power_ac3'
[16:32:47][C][pzemac:071]: Device Class: 'power'
[16:32:47][C][pzemac:071]: State Class: 'measurement'
[16:32:47][C][pzemac:071]: Unit of Measurement: 'W'
[16:32:47][C][pzemac:071]: Accuracy Decimals: 0
[16:32:47][C][pzemac:072]: Energy 'energy_ac3'
[16:32:47][C][pzemac:072]: Device Class: 'energy'
[16:32:47][C][pzemac:072]: State Class: 'total_increasing'
[16:32:47][C][pzemac:072]: Unit of Measurement: 'kWh'
[16:32:47][C][pzemac:072]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Frequency 'frequency_ac3'
[16:32:47][C][pzemac:073]: State Class: 'measurement'
[16:32:47][C][pzemac:073]: Unit of Measurement: 'Hz'
[16:32:47][C][pzemac:073]: Accuracy Decimals: 1
[16:32:47][C][pzemac:073]: Icon: 'mdi:current-ac'
[16:32:47][C][pzemac:074]: Power Factor 'factor_ac3'
[16:32:47][C][pzemac:074]: Device Class: 'power_factor'
[16:32:47][C][pzemac:074]: State Class: 'measurement'
[16:32:47][C][pzemac:074]: Unit of Measurement: ''
[16:32:47][C][pzemac:074]: Accuracy Decimals: 1
[16:32:47][C][total_daily_energy:024]: Total Daily Energy 'energy_ac1_daily'
[16:32:47][C][total_daily_energy:024]: Device Class: 'energy'
[16:32:47][C][total_daily_energy:024]: State Class: 'total_increasing'
[16:32:47][C][total_daily_energy:024]: Unit of Measurement: 'kWh'
[16:32:47][C][total_daily_energy:024]: Accuracy Decimals: 1
[16:32:47][C][total_daily_energy:024]: Icon: 'mdi:counter'
[16:32:47][C][total_daily_energy:024]: Total Daily Energy 'energy_ac2_daily'
[16:32:47][C][total_daily_energy:024]: Device Class: 'energy'
[16:32:47][C][total_daily_energy:024]: State Class: 'total_increasing'
[16:32:47][C][total_daily_energy:024]: Unit of Measurement: 'kWh'
[16:32:47][C][total_daily_energy:024]: Accuracy Decimals: 1
[16:32:47][C][total_daily_energy:024]: Icon: 'mdi:counter'
[16:32:47][C][total_daily_energy:024]: Total Daily Energy 'energy_ac3_daily'
[16:32:47][C][total_daily_energy:024]: Device Class: 'energy'
[16:32:47][C][total_daily_energy:024]: State Class: 'total_increasing'
[16:32:47][C][total_daily_energy:024]: Unit of Measurement: 'kWh'
[16:32:47][C][total_daily_energy:024]: Accuracy Decimals: 1
[16:32:47][C][total_daily_energy:024]: Icon: 'mdi:counter'
[16:32:47][C][homeassistant.time:010]: Home Assistant Time:
[16:32:47][C][homeassistant.time:011]: Timezone: 'UTC0'
[16:32:47][C][restart:022]: Restart Switch 'grid_Restart'
[16:32:47][C][restart:022]: Icon: 'mdi:restart'
[16:32:48][C][captive_portal:088]: Captive Portal:
[16:32:48][C][mdns:084]: mDNS:
[16:32:48][C][mdns:085]: Hostname: grid
[16:32:48][C][ota:085]: Over-The-Air Updates:
[16:32:48][C][ota:086]: Address: grid.local:3232
[16:32:48][C][ota:089]: Using Password.
[16:32:48][C][api:138]: API Server:
[16:32:48][C][api:139]: Address: grid.local:6053
[16:32:48][C][api:143]: Using noise encryption: NO
[16:32:49][D][pzemac:050]: PZEM AC: V=217.6 V, I=5.122 A, P=1067.1 W, E=3107532.0 Wh, F=50.0 Hz, PF=0.96
[16:32:49][D][sensor:125]: 'voltage_ac2': Sending state 217.60001 V with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'current_ac2': Sending state 5.12200 A with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'power_ac2': Sending state 1067.09998 W with 0 decimals of accuracy
[16:32:49][D][sensor:125]: 'energy_ac2_daily': Sending state 5.92900 kWh with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'energy_ac2': Sending state 6215.06445 kWh with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'frequency_ac2': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'factor_ac2': Sending state 0.96000 with 1 decimals of accuracy
[16:32:49][D][pzemac:050]: PZEM AC: V=226.0 V, I=0.089 A, P=2.4 W, E=329559.0 Wh, F=50.0 Hz, PF=0.12
[16:32:49][D][sensor:125]: 'voltage_ac1': Sending state 226.00000 V with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'current_ac1': Sending state 0.08900 A with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'power_ac1': Sending state 2.40000 W with 0 decimals of accuracy
[16:32:49][D][sensor:125]: 'energy_ac1_daily': Sending state 1586.46265 kWh with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'energy_ac1': Sending state 659.11804 kWh with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'frequency_ac1': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:49][D][sensor:125]: 'factor_ac1': Sending state 0.12000 with 1 decimals of accuracy
[16:32:53][D][esp32.preferences:114]: Saving preferences to flash...
[16:32:54][D][pzemac:050]: PZEM AC: V=217.7 V, I=5.177 A, P=1080.3 W, E=3107534.0 Wh, F=50.0 Hz, PF=0.96
[16:32:54][D][sensor:125]: 'voltage_ac2': Sending state 217.70000 V with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'current_ac2': Sending state 5.17700 A with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'power_ac2': Sending state 1080.30005 W with 0 decimals of accuracy
[16:32:54][D][sensor:125]: 'energy_ac2_daily': Sending state 5.93050 kWh with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'energy_ac2': Sending state 6215.06836 kWh with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'frequency_ac2': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'factor_ac2': Sending state 0.96000 with 1 decimals of accuracy
[16:32:54][D][pzemac:050]: PZEM AC: V=224.9 V, I=0.091 A, P=2.7 W, E=329559.0 Wh, F=50.0 Hz, PF=0.13
[16:32:54][D][sensor:125]: 'voltage_ac1': Sending state 224.89999 V with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'current_ac1': Sending state 0.09100 A with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'power_ac1': Sending state 2.70000 W with 0 decimals of accuracy
[16:32:54][D][sensor:125]: 'energy_ac1_daily': Sending state 1586.46265 kWh with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'energy_ac1': Sending state 659.11804 kWh with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'frequency_ac1': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'factor_ac1': Sending state 0.13000 with 1 decimals of accuracy
[16:32:54][D][sensor:125]: 'total_power': Sending state nan W with 1 decimals of accuracy
[16:32:59][D][pzemac:050]: PZEM AC: V=217.1 V, I=5.170 A, P=1077.0 W, E=3107535.0 Wh, F=50.0 Hz, PF=0.96
[16:32:59][D][sensor:125]: 'voltage_ac2': Sending state 217.10001 V with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'current_ac2': Sending state 5.17000 A with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'power_ac2': Sending state 1077.00000 W with 0 decimals of accuracy
[16:32:59][D][sensor:125]: 'energy_ac2_daily': Sending state 5.93200 kWh with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'energy_ac2': Sending state 6215.07031 kWh with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'frequency_ac2': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'factor_ac2': Sending state 0.96000 with 1 decimals of accuracy
[16:32:59][D][pzemac:050]: PZEM AC: V=226.3 V, I=0.089 A, P=2.4 W, E=329559.0 Wh, F=50.0 Hz, PF=0.12
[16:32:59][D][sensor:125]: 'voltage_ac1': Sending state 226.30000 V with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'current_ac1': Sending state 0.08900 A with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'power_ac1': Sending state 2.40000 W with 0 decimals of accuracy
[16:32:59][D][sensor:125]: 'energy_ac1_daily': Sending state 1586.46265 kWh with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'energy_ac1': Sending state 659.11804 kWh with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'frequency_ac1': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:32:59][D][sensor:125]: 'factor_ac1': Sending state 0.12000 with 1 decimals of accuracy
[16:33:04][D][pzemac:050]: PZEM AC: V=217.4 V, I=5.198 A, P=1082.9 W, E=3107537.0 Wh, F=50.0 Hz, PF=0.96
[16:33:04][D][sensor:125]: 'voltage_ac2': Sending state 217.39999 V with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'current_ac2': Sending state 5.19800 A with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'power_ac2': Sending state 1082.90002 W with 0 decimals of accuracy
[16:33:04][D][sensor:125]: 'energy_ac2_daily': Sending state 5.93350 kWh with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'energy_ac2': Sending state 6215.07422 kWh with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'frequency_ac2': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'factor_ac2': Sending state 0.96000 with 1 decimals of accuracy
[16:33:04][D][pzemac:050]: PZEM AC: V=224.7 V, I=0.091 A, P=2.7 W, E=329559.0 Wh, F=50.0 Hz, PF=0.13
[16:33:04][D][sensor:125]: 'voltage_ac1': Sending state 224.70000 V with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'current_ac1': Sending state 0.09100 A with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'power_ac1': Sending state 2.70000 W with 0 decimals of accuracy
[16:33:04][D][sensor:125]: 'energy_ac1_daily': Sending state 1586.46265 kWh with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'energy_ac1': Sending state 659.11804 kWh with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'frequency_ac1': Sending state 50.00000 Hz with 1 decimals of accuracy
[16:33:04][D][sensor:125]: 'factor_ac1': Sending state 0.13000 with 1 decimals of accuracy