syssi / esphome-pipsolar

ESPHome component to monitor and control a pipsolar inverter via RS232
Apache License 2.0
78 stars 35 forks source link

esphome reports "unknown" when inverter shuts down or on its own sometimes #106

Open test2a opened 5 months ago

test2a commented 5 months ago

the setup is working fine. i do not know why it happens but every often the esphome reports "unknown" but i am not sure if its always because the inverter is off or because of range issues.

anyway, the problem is, most of the time when inverter is turned off because grid power goes out, esphome reports "unknown" and not off. same for all entities (52 for me)

i can go to reimann integration and create a new entity to convert unknown into 0 value for example but what if the esphome does that?

also, can it be that esp is loosing wifi connection? maybe that can be a problem? is there a way to detect that because sometimes the logs say apiconnection error, so what can be the reason or reasons?

INFO ESPHome 2023.12.7
INFO Reading configuration /config/esphome/esphome-web-5f9e4d.yaml...
INFO Updating https://github.com/syssi/esphome-pipsolar.git@pip8048
INFO Starting log output from 192.168.29.26 using esphome API
INFO Successfully connected to esphome-web-5f9e4d @ 192.168.29.26 in 0.008s
INFO Successful handshake with esphome-web-5f9e4d @ 192.168.29.26 in 4.110s
[22:25:26][I][app:102]: ESPHome version 2023.11.4 compiled on Nov 28 2023, 23:52:53
[22:25:26][C][wifi:559]: WiFi:
[22:25:26][C][wifi:391]:   Local MAC: 48:3F:DA:5F:9E:4D
[22:25:26][C][wifi:396]:   SSID: 'JioFiber-rHnqt'[redacted]
[22:25:26][C][wifi:397]:   IP Address: 192.168.29.26
[22:25:26][C][wifi:398]:   BSSID: 58:95:D8:24:49:81[redacted]
[22:25:26][C][wifi:400]:   Hostname: 'esphome-web-5f9e4d'
[22:25:26][C][wifi:402]:   Signal strength: -81 dB ▂▄▆█
[22:25:26][C][wifi:406]:   Channel: 1
[22:25:26][C][wifi:407]:   Subnet: 255.255.255.0
[22:25:26][C][wifi:408]:   Gateway: 192.168.29.1
[22:25:26][C][wifi:409]:   DNS1: 192.168.29.85
[22:25:26][C][wifi:410]:   DNS2: 192.168.29.85
[22:25:26][C][logger:416]: Logger:
[22:25:26][C][logger:417]:   Level: DEBUG
[22:25:26][C][logger:418]:   Log Baud Rate: 115200
[22:25:26][C][logger:420]:   Hardware UART: UART0
[22:25:26][C][uart.arduino_esp8266:102]: UART Bus:
[22:25:26][C][uart.arduino_esp8266:103]:   TX Pin: GPIO4
[22:25:26][C][uart.arduino_esp8266:104]:   RX Pin: GPIO5
[22:25:26][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[22:25:26][C][uart.arduino_esp8266:108]:   Baud Rate: 2400 baud
[22:25:26][C][uart.arduino_esp8266:109]:   Data Bits: 8
[22:25:26][C][uart.arduino_esp8266:110]:   Parity: NONE
[22:25:26][C][uart.arduino_esp8266:111]:   Stop bits: 1
[22:25:26][C][uart.arduino_esp8266:115]:   Using software serial
[22:25:26][C][pipsolar:948]: Pipsolar:
[22:25:26][C][pipsolar:949]: used commands:
[22:25:26][C][pipsolar:952]: QPIGS
[22:25:26][C][pipsolar:952]: QPIGS2
[22:25:26][C][pipsolar:952]: QMOD
[22:25:26][C][pipsolar:952]: QFLAG
[22:25:26][C][pipsolar:952]: QPIRI
[22:25:26][C][pipsolar:952]: QBATCD
[22:25:26][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_utility'
[22:25:26][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:26][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:26][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_solar'
[22:25:26][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:26][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:26][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_battery'
[22:25:26][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:26][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:26][C][pipsolar.switch:068]: Pipsolar Switch '${name} input_voltage_range'
[22:25:26][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:26][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:26][C][pipsolar.switch:068]: Pipsolar Switch '${name} pv_ok_condition_for_parallel'
[22:25:27][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:27][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:27][C][pipsolar.switch:068]: Pipsolar Switch '${name} pv_power_balance'
[22:25:27][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[22:25:27][C][pipsolar.switch:090]:   Restore Mode: always OFF
[22:25:27][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select 'inverter0_output_source_priority_select'
[22:25:27][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} charging discharging control'
[22:25:27][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} charger_source_priority_select'
[22:25:27][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} current_max_ac_charging_current_select'
[22:25:27][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} current_max_charging_current_select'
[22:25:27][C][captive_portal:088]: Captive Portal:
[22:25:27][C][mdns:115]: mDNS:
[22:25:27][C][mdns:116]:   Hostname: esphome-web-5f9e4d
[22:25:27][C][ota:097]: Over-The-Air Updates:
[22:25:27][C][ota:098]:   Address: esphome-web-5f9e4d.local:8266
[22:25:27][C][ota:101]:   Using Password.
[22:25:27][C][api:139]: API Server:
[22:25:27][C][api:140]:   Address: esphome-web-5f9e4d.local:6053
[22:25:27][C][api:142]:   Using noise encryption: YES
[22:25:31][D][pipsolar:843]: timeout command to poll: QFLAG
[22:25:31][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:25:36][D][pipsolar:843]: timeout command to poll: QPIRI
[22:25:36][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:25:41][D][pipsolar:843]: timeout command to poll: QBATCD
[22:25:41][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:25:46][D][pipsolar:843]: timeout command to poll: QPIGS
[22:25:46][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:25:51][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:25:51][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:25:56][D][pipsolar:843]: timeout command to poll: QMOD
[22:25:56][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:26:01][D][pipsolar:843]: timeout command to poll: QFLAG
[22:26:01][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:26:06][D][pipsolar:843]: timeout command to poll: QPIRI
[22:26:06][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:26:11][D][pipsolar:843]: timeout command to poll: QBATCD
[22:26:12][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:26:16][D][pipsolar:843]: timeout command to poll: QPIGS
[22:26:16][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:26:21][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:26:21][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:26:26][D][pipsolar:843]: timeout command to poll: QMOD
[22:26:26][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:26:31][D][pipsolar:843]: timeout command to poll: QFLAG
[22:26:32][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:26:36][D][pipsolar:843]: timeout command to poll: QPIRI
[22:26:36][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:26:41][D][pipsolar:843]: timeout command to poll: QBATCD
[22:26:41][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:26:46][D][pipsolar:843]: timeout command to poll: QPIGS
[22:26:46][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:26:51][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:26:51][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:26:56][D][pipsolar:843]: timeout command to poll: QMOD
[22:26:56][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:27:01][D][pipsolar:843]: timeout command to poll: QFLAG
[22:27:01][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:27:06][D][pipsolar:843]: timeout command to poll: QPIRI
[22:27:06][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:27:11][D][pipsolar:843]: timeout command to poll: QBATCD
[22:27:11][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:27:16][D][pipsolar:843]: timeout command to poll: QPIGS
[22:27:16][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:27:21][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:27:21][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:27:26][D][pipsolar:843]: timeout command to poll: QMOD
[22:27:26][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:27:31][D][pipsolar:843]: timeout command to poll: QFLAG
[22:27:31][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:27:36][D][pipsolar:843]: timeout command to poll: QPIRI
[22:27:36][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:27:41][D][pipsolar:843]: timeout command to poll: QBATCD
[22:27:41][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:27:46][D][pipsolar:843]: timeout command to poll: QPIGS
[22:27:46][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:27:51][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:27:52][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:27:56][D][pipsolar:843]: timeout command to poll: QMOD
[22:27:56][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:28:01][D][pipsolar:843]: timeout command to poll: QFLAG
[22:28:01][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:28:06][D][pipsolar:843]: timeout command to poll: QPIRI
[22:28:06][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:28:11][D][pipsolar:843]: timeout command to poll: QBATCD
[22:28:12][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:28:16][D][pipsolar:843]: timeout command to poll: QPIGS
[22:28:17][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:28:22][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:28:22][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:28:27][D][pipsolar:843]: timeout command to poll: QMOD
[22:28:27][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:28:32][D][pipsolar:843]: timeout command to poll: QFLAG
[22:28:32][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:28:37][D][pipsolar:843]: timeout command to poll: QPIRI
[22:28:37][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:28:42][D][pipsolar:843]: timeout command to poll: QBATCD
[22:28:42][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:28:47][D][pipsolar:843]: timeout command to poll: QPIGS
[22:28:47][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:28:52][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:28:52][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:28:57][D][pipsolar:843]: timeout command to poll: QMOD
[22:28:57][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:29:02][D][pipsolar:843]: timeout command to poll: QFLAG
[22:29:02][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:29:07][D][pipsolar:843]: timeout command to poll: QPIRI
[22:29:07][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:29:12][D][pipsolar:843]: timeout command to poll: QBATCD
[22:29:12][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:29:17][D][pipsolar:843]: timeout command to poll: QPIGS
[22:29:17][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:29:22][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:29:22][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:29:27][D][pipsolar:843]: timeout command to poll: QMOD
[22:29:28][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:29:32][D][pipsolar:843]: timeout command to poll: QFLAG
[22:29:32][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:29:37][D][pipsolar:843]: timeout command to poll: QPIRI
[22:29:37][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:29:42][D][pipsolar:843]: timeout command to poll: QBATCD
[22:29:42][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:29:47][D][pipsolar:843]: timeout command to poll: QPIGS
[22:29:48][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:29:52][D][pipsolar:843]: timeout command to poll: QPIGS2
WARNING esphome-web-5f9e4d @ 192.168.29.26: Connection error occurred: [Errno 104] Connection reset by peer
INFO Processing unexpected disconnect from ESPHome API for esphome-web-5f9e4d @ 192.168.29.26
WARNING Disconnected from API
WARNING Can't connect to ESPHome API for esphome-web-5f9e4d @ 192.168.29.26: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.29.26', port=6053))]: [Errno 111] Connect call failed ('192.168.29.26', 6053) (SocketAPIError)
INFO Trying to connect to esphome-web-5f9e4d @ 192.168.29.26 in the background
INFO Successfully connected to esphome-web-5f9e4d @ 192.168.29.26 in 0.012s
INFO Successful handshake with esphome-web-5f9e4d @ 192.168.29.26 in 2.898s
[22:30:49][D][pipsolar:843]: timeout command to poll: QFLAG
[22:30:49][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:30:54][D][pipsolar:843]: timeout command to poll: QPIRI
[22:30:54][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:30:55][D][api:102]: Accepted 192.168.29.95
[22:30:56][W][component:214]: Component api took a long time for an operation (0.29 s).
[22:30:56][W][component:215]: Components should block for at most 20-30ms.
[22:30:58][D][api.connection:1089]: Home Assistant 2024.1.5 (192.168.29.95): Connected successfully
[22:30:59][D][pipsolar:843]: timeout command to poll: QBATCD
[22:31:00][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:31:04][D][pipsolar:843]: timeout command to poll: QPIGS
[22:31:05][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:31:10][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:31:10][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:31:15][D][pipsolar:843]: timeout command to poll: QMOD
[22:31:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:31:20][D][pipsolar:843]: timeout command to poll: QFLAG
[22:31:20][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:31:25][D][pipsolar:843]: timeout command to poll: QPIRI
[22:31:26][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:31:30][D][pipsolar:843]: timeout command to poll: QBATCD
[22:31:30][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:31:35][D][pipsolar:843]: timeout command to poll: QPIGS
[22:31:35][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:31:40][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:31:40][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:31:45][D][pipsolar:843]: timeout command to poll: QMOD
[22:31:45][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:31:50][D][pipsolar:843]: timeout command to poll: QFLAG
[22:31:50][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:31:55][D][pipsolar:843]: timeout command to poll: QPIRI
[22:31:55][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:32:00][D][pipsolar:843]: timeout command to poll: QBATCD
[22:32:00][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:32:05][D][pipsolar:843]: timeout command to poll: QPIGS
[22:32:05][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:32:10][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:32:10][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:32:15][D][pipsolar:843]: timeout command to poll: QMOD
[22:32:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:32:20][D][pipsolar:843]: timeout command to poll: QFLAG
[22:32:20][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:32:25][D][pipsolar:843]: timeout command to poll: QPIRI
[22:32:25][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:32:30][D][pipsolar:843]: timeout command to poll: QBATCD
[22:32:30][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:32:35][D][pipsolar:843]: timeout command to poll: QPIGS
[22:32:35][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:32:40][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:32:40][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:32:45][D][pipsolar:843]: timeout command to poll: QMOD
[22:32:45][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:32:50][D][pipsolar:843]: timeout command to poll: QFLAG
[22:32:50][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:32:55][D][pipsolar:843]: timeout command to poll: QPIRI
[22:32:55][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:33:00][D][pipsolar:843]: timeout command to poll: QBATCD
[22:33:00][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:33:05][D][pipsolar:843]: timeout command to poll: QPIGS
[22:33:05][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:33:10][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:33:10][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:33:15][D][pipsolar:843]: timeout command to poll: QMOD
[22:33:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:33:20][D][pipsolar:843]: timeout command to poll: QFLAG
[22:33:20][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:33:25][D][pipsolar:843]: timeout command to poll: QPIRI
[22:33:25][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:33:30][D][pipsolar:843]: timeout command to poll: QBATCD
[22:33:30][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:33:35][D][pipsolar:843]: timeout command to poll: QPIGS
[22:33:35][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:33:40][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:33:40][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:33:45][D][pipsolar:843]: timeout command to poll: QMOD
[22:33:45][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:33:50][D][pipsolar:843]: timeout command to poll: QFLAG
[22:33:50][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:33:55][D][pipsolar:843]: timeout command to poll: QPIRI
[22:33:55][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:34:00][D][pipsolar:843]: timeout command to poll: QBATCD
[22:34:00][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:34:05][D][pipsolar:843]: timeout command to poll: QPIGS
[22:34:05][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:34:10][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:34:10][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:34:15][D][pipsolar:843]: timeout command to poll: QMOD
[22:34:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:34:20][D][pipsolar:843]: timeout command to poll: QFLAG
[22:34:20][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:34:25][D][pipsolar:843]: timeout command to poll: QPIRI
[22:34:25][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:34:30][D][pipsolar:843]: timeout command to poll: QBATCD
[22:34:30][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:34:35][D][pipsolar:843]: timeout command to poll: QPIGS
[22:34:35][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:34:40][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:34:40][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:34:45][D][pipsolar:843]: timeout command to poll: QMOD
[22:34:46][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:34:50][D][pipsolar:843]: timeout command to poll: QFLAG
[22:34:51][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:34:56][D][pipsolar:843]: timeout command to poll: QPIRI
[22:34:56][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:35:01][D][pipsolar:843]: timeout command to poll: QBATCD
[22:35:01][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:35:06][D][pipsolar:843]: timeout command to poll: QPIGS
[22:35:06][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:35:11][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:35:11][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:35:16][D][pipsolar:843]: timeout command to poll: QMOD
[22:35:16][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:35:21][D][pipsolar:843]: timeout command to poll: QFLAG
[22:35:21][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:35:26][D][pipsolar:843]: timeout command to poll: QPIRI
[22:35:26][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:35:31][D][pipsolar:843]: timeout command to poll: QBATCD
[22:35:31][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:35:33][I][ota:117]: Boot seems successful, resetting boot loop counter.
[22:35:36][D][pipsolar:843]: timeout command to poll: QPIGS
[22:35:36][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[22:35:41][D][pipsolar:843]: timeout command to poll: QPIGS2
[22:35:41][D][pipsolar:924]: Sending polling command : QMOD with length 4
[22:35:46][D][pipsolar:843]: timeout command to poll: QMOD
[22:35:46][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[22:35:51][D][pipsolar:843]: timeout command to poll: QFLAG
[22:35:51][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[22:35:56][D][pipsolar:843]: timeout command to poll: QPIRI
[22:35:56][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[22:36:01][D][pipsolar:843]: timeout command to poll: QBATCD
[22:36:01][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[22:36:06][D][pipsolar:843]: timeout command to poll: QPIGS
[22:36:06][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6

and now grid is back on

INFO ESPHome 2023.12.7
INFO Reading configuration /config/esphome/esphome-web-5f9e4d.yaml...
INFO Updating https://github.com/syssi/esphome-pipsolar.git@pip8048
INFO Starting log output from esphome-web-5f9e4d.local using esphome API
INFO Successfully connected to esphome-web-5f9e4d @ 192.168.29.26 in 2.923s
INFO Successful handshake with esphome-web-5f9e4d @ 192.168.29.26 in 2.453s
[23:35:00][I][app:102]: ESPHome version 2023.11.4 compiled on Nov 28 2023, 23:52:53
[23:35:00][C][wifi:559]: WiFi:
[23:35:00][C][wifi:391]:   Local MAC: 48:3F:DA:5F:9E:4D
[23:35:00][C][wifi:396]:   SSID: 'JioFiber-rHnqt'[redacted]
[23:35:00][C][wifi:397]:   IP Address: 192.168.29.26
[23:35:00][C][wifi:398]:   BSSID: 58:95:D8:24:49:81[redacted]
[23:35:00][C][wifi:400]:   Hostname: 'esphome-web-5f9e4d'
[23:35:00][C][wifi:402]:   Signal strength: -81 dB ▂▄▆█
[23:35:00][C][wifi:406]:   Channel: 1
[23:35:00][C][wifi:407]:   Subnet: 255.255.255.0
[23:35:00][C][wifi:408]:   Gateway: 192.168.29.1
[23:35:00][C][wifi:409]:   DNS1: 192.168.29.85
[23:35:00][C][wifi:410]:   DNS2: 192.168.29.85
[23:35:00][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[23:35:00][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:00][W][component:215]: Components should block for at most 20-30ms.
[23:35:00][C][logger:416]: Logger:
[23:35:00][C][logger:417]:   Level: DEBUG
[23:35:00][C][logger:418]:   Log Baud Rate: 115200
[23:35:00][C][logger:420]:   Hardware UART: UART0
[23:35:00][D][pipsolar:860]: checking crc on incoming message
[23:35:00][D][pipsolar:863]: CRC OK
[23:35:00][C][uart.arduino_esp8266:102]: UART Bus:
[23:35:00][C][uart.arduino_esp8266:103]:   TX Pin: GPIO4
[23:35:00][C][uart.arduino_esp8266:104]:   RX Pin: GPIO5
[23:35:00][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[23:35:00][C][uart.arduino_esp8266:108]:   Baud Rate: 2400 baud
[23:35:00][C][uart.arduino_esp8266:109]:   Data Bits: 8
[23:35:00][C][uart.arduino_esp8266:110]:   Parity: NONE
[23:35:00][C][uart.arduino_esp8266:111]:   Stop bits: 1
[23:35:00][C][uart.arduino_esp8266:115]:   Using software serial
[23:35:00][C][pipsolar:948]: Pipsolar:
[23:35:00][C][pipsolar:949]: used commands:
[23:35:00][C][pipsolar:952]: QPIGS
[23:35:00][C][pipsolar:952]: QPIGS2
[23:35:00][C][pipsolar:952]: QMOD
[23:35:00][C][pipsolar:952]: QFLAG
[23:35:00][C][pipsolar:952]: QPIRI
[23:35:00][C][pipsolar:952]: QBATCD
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_utility'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_solar'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} output_source_priority_battery'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} input_voltage_range'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} pv_ok_condition_for_parallel'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.switch:068]: Pipsolar Switch '${name} pv_power_balance'
[23:35:00][C][pipsolar.switch:070]:   Icon: 'mdi:power'
[23:35:00][C][pipsolar.switch:090]:   Restore Mode: always OFF
[23:35:00][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select 'inverter0_output_source_priority_select'
[23:35:00][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} charging discharging control'
[23:35:00][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} charger_source_priority_select'
[23:35:00][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} current_max_ac_charging_current_select'
[23:35:00][C][pipsolar.select:009]: pipsolar.selectPipsolar Controller Select '${name} current_max_charging_current_select'
[23:35:00][C][captive_portal:088]: Captive Portal:
[23:35:00][C][mdns:115]: mDNS:
[23:35:00][C][mdns:116]:   Hostname: esphome-web-5f9e4d
[23:35:01][C][ota:097]: Over-The-Air Updates:
[23:35:01][C][ota:098]:   Address: esphome-web-5f9e4d.local:8266
[23:35:01][C][ota:101]:   Using Password.
[23:35:01][C][api:139]: API Server:
[23:35:01][C][api:140]:   Address: esphome-web-5f9e4d.local:6053
[23:35:01][C][api:142]:   Using noise encryption: YES
[23:35:01][D][pipsolar:924]: Sending polling command : QMOD with length 4
[23:35:01][W][component:214]: Component esphome.coroutine took a long time for an operation (0.05 s).
[23:35:01][W][component:215]: Components should block for at most 20-30ms.
[23:35:01][D][pipsolar:860]: checking crc on incoming message
[23:35:01][D][pipsolar:863]: CRC OK
[23:35:01][D][pipsolar:536]: Decode QMOD
[23:35:01][D][text_sensor:064]: '${name} device_mode': Sending state 'L'
[23:35:02][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[23:35:02][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:02][W][component:215]: Components should block for at most 20-30ms.
[23:35:02][D][pipsolar:860]: checking crc on incoming message
[23:35:02][D][pipsolar:863]: CRC OK
[23:35:02][D][pipsolar:544]: Decode QFLAG
[23:35:03][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[23:35:03][W][component:214]: Component esphome.coroutine took a long time for an operation (0.09 s).
[23:35:03][W][component:215]: Components should block for at most 20-30ms.
[23:35:04][D][pipsolar:860]: checking crc on incoming message
[23:35:04][D][pipsolar:863]: CRC OK
[23:35:04][D][pipsolar:479]: Decode QPIRI
[23:35:04][D][pipsolar.select:031]: got value: 2
[23:35:04][D][pipsolar.select:033]: found mapped option 2A for option 2
[23:35:04][D][select:015]: '${name} current_max_ac_charging_current_select': Sending state 2A (index 0)
[23:35:04][D][pipsolar.select:031]: got value: 60
[23:35:04][D][pipsolar.select:033]: found mapped option 60A for option 60
[23:35:04][D][select:015]: '${name} current_max_charging_current_select': Sending state 60A (index 5)
[23:35:04][D][pipsolar.select:031]: got value: 0
[23:35:04][D][pipsolar.select:033]: found mapped option Utility first for option 0
[23:35:04][D][select:015]: 'inverter0_output_source_priority_select': Sending state Utility first (index 0)
[23:35:04][D][pipsolar.select:031]: got value: 2
[23:35:04][D][pipsolar.select:033]: found mapped option Solar and utility for option 2
[23:35:04][D][select:015]: '${name} charger_source_priority_select': Sending state Solar and utility (index 1)
[23:35:04][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:04][W][component:215]: Components should block for at most 20-30ms.
[23:35:04][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[23:35:05][D][pipsolar:860]: checking crc on incoming message
[23:35:05][D][pipsolar:863]: CRC OK
[23:35:05][D][pipsolar:758]: Decode QBATCD
[23:35:05][D][pipsolar.select:031]: got value: (000
[23:35:05][D][pipsolar.select:036]: could not find option (000 in mapping
[23:35:05][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[23:35:06][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:06][W][component:215]: Components should block for at most 20-30ms.
[23:35:06][D][pipsolar:860]: checking crc on incoming message
[23:35:06][D][pipsolar:863]: CRC OK
[23:35:06][D][pipsolar:502]: Decode QPIGS
[23:35:06][D][sensor:093]: '${name} grid_voltage': Sending state 232.70000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} grid_frequency': Sending state 49.90000 Hz with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} ac_output_voltage': Sending state 232.70000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} ac_output_frequency': Sending state 49.90000 Hz with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} ac_output_apparent_power': Sending state 1210.00000 VA with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} ac_output_active_power': Sending state 1184.00000 W with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} output_load_percent': Sending state 24.00000 % with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} bus_voltage': Sending state 330.00000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_charging_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_capacity_percent': Sending state 0.00000 % with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} inverter_heat_sink_temperature': Sending state 19.00000 °C with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} pv1_input_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} pv1_input_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_voltage_scc': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_discharge_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} battery_voltage_offset_for_fans_on': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:06][D][sensor:093]: '${name} pv1_charging_power': Sending state 0.00000 W with 1 decimals of accuracy
[23:35:06][W][component:214]: Component esphome.coroutine took a long time for an operation (0.17 s).
[23:35:06][W][component:215]: Components should block for at most 20-30ms.
[23:35:06][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[23:35:06][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:06][W][component:215]: Components should block for at most 20-30ms.
[23:35:07][D][pipsolar:860]: checking crc on incoming message
[23:35:07][D][pipsolar:863]: CRC OK
[23:35:08][D][pipsolar:924]: Sending polling command : QMOD with length 4
[23:35:08][W][component:214]: Component esphome.coroutine took a long time for an operation (0.05 s).
[23:35:08][W][component:215]: Components should block for at most 20-30ms.
[23:35:08][D][pipsolar:860]: checking crc on incoming message
[23:35:08][D][pipsolar:863]: CRC OK
[23:35:08][D][pipsolar:536]: Decode QMOD
[23:35:08][D][text_sensor:064]: '${name} device_mode': Sending state 'L'
[23:35:09][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[23:35:09][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:09][W][component:215]: Components should block for at most 20-30ms.
[23:35:09][D][pipsolar:860]: checking crc on incoming message
[23:35:09][D][pipsolar:863]: CRC OK
[23:35:09][D][pipsolar:544]: Decode QFLAG
[23:35:10][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[23:35:10][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:10][W][component:215]: Components should block for at most 20-30ms.
[23:35:10][D][pipsolar:860]: checking crc on incoming message
[23:35:10][D][pipsolar:863]: CRC OK
[23:35:10][D][pipsolar:479]: Decode QPIRI
[23:35:10][D][pipsolar.select:031]: got value: 2
[23:35:10][D][pipsolar.select:033]: found mapped option 2A for option 2
[23:35:10][D][select:015]: '${name} current_max_ac_charging_current_select': Sending state 2A (index 0)
[23:35:10][D][pipsolar.select:031]: got value: 60
[23:35:10][D][pipsolar.select:033]: found mapped option 60A for option 60
[23:35:10][D][select:015]: '${name} current_max_charging_current_select': Sending state 60A (index 5)
[23:35:10][D][pipsolar.select:031]: got value: 0
[23:35:10][D][pipsolar.select:033]: found mapped option Utility first for option 0
[23:35:10][D][select:015]: 'inverter0_output_source_priority_select': Sending state Utility first (index 0)
[23:35:10][D][pipsolar.select:031]: got value: 2
[23:35:10][D][pipsolar.select:033]: found mapped option Solar and utility for option 2
[23:35:10][D][select:015]: '${name} charger_source_priority_select': Sending state Solar and utility (index 1)
[23:35:10][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:10][W][component:215]: Components should block for at most 20-30ms.
[23:35:11][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[23:35:11][D][pipsolar:860]: checking crc on incoming message
[23:35:11][D][pipsolar:863]: CRC OK
[23:35:12][D][pipsolar:758]: Decode QBATCD
[23:35:12][D][pipsolar.select:031]: got value: (000
[23:35:12][D][pipsolar.select:036]: could not find option (000 in mapping
[23:35:12][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[23:35:12][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:12][W][component:215]: Components should block for at most 20-30ms.
[23:35:12][D][pipsolar:860]: checking crc on incoming message
[23:35:12][D][pipsolar:863]: CRC OK
[23:35:12][D][pipsolar:502]: Decode QPIGS
[23:35:12][D][sensor:093]: '${name} grid_voltage': Sending state 232.70000 V with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} grid_frequency': Sending state 49.90000 Hz with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} ac_output_voltage': Sending state 232.70000 V with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} ac_output_frequency': Sending state 49.90000 Hz with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} ac_output_apparent_power': Sending state 1210.00000 VA with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} ac_output_active_power': Sending state 1186.00000 W with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} output_load_percent': Sending state 24.00000 % with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} bus_voltage': Sending state 330.00000 V with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} battery_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:12][D][sensor:093]: '${name} battery_charging_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} battery_capacity_percent': Sending state 0.00000 % with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} inverter_heat_sink_temperature': Sending state 19.00000 °C with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} pv1_input_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} pv1_input_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} battery_voltage_scc': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} battery_discharge_current': Sending state 0.00000 A with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} battery_voltage_offset_for_fans_on': Sending state 0.00000 V with 1 decimals of accuracy
[23:35:13][D][sensor:093]: '${name} pv1_charging_power': Sending state 0.00000 W with 1 decimals of accuracy
[23:35:13][W][component:214]: Component esphome.coroutine took a long time for an operation (0.17 s).
[23:35:13][W][component:215]: Components should block for at most 20-30ms.
[23:35:13][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[23:35:13][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:13][W][component:215]: Components should block for at most 20-30ms.
[23:35:13][D][pipsolar:860]: checking crc on incoming message
[23:35:13][D][pipsolar:863]: CRC OK
[23:35:14][D][pipsolar:924]: Sending polling command : QMOD with length 4
[23:35:14][W][component:214]: Component esphome.coroutine took a long time for an operation (0.05 s).
[23:35:14][W][component:215]: Components should block for at most 20-30ms.
[23:35:14][D][pipsolar:860]: checking crc on incoming message
[23:35:14][D][pipsolar:863]: CRC OK
[23:35:14][D][pipsolar:536]: Decode QMOD
[23:35:14][D][text_sensor:064]: '${name} device_mode': Sending state 'L'
[23:35:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[23:35:15][W][component:214]: Component esphome.coroutine took a long time for an operation (0.09 s).
[23:35:15][W][component:215]: Components should block for at most 20-30ms.
[23:35:15][D][pipsolar:860]: checking crc on incoming message
[23:35:15][D][pipsolar:863]: CRC OK
[23:35:15][D][pipsolar:544]: Decode QFLAG
[23:35:16][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[23:35:16][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:16][W][component:215]: Components should block for at most 20-30ms.
[23:35:17][D][pipsolar:860]: checking crc on incoming message
[23:35:17][D][pipsolar:863]: CRC OK
[23:35:17][D][pipsolar:479]: Decode QPIRI
[23:35:18][D][pipsolar.select:031]: got value: 2
[23:35:18][D][pipsolar.select:033]: found mapped option 2A for option 2
[23:35:18][D][select:015]: '${name} current_max_ac_charging_current_select': Sending state 2A (index 0)
[23:35:18][D][pipsolar.select:031]: got value: 60
[23:35:18][D][pipsolar.select:033]: found mapped option 60A for option 60
[23:35:18][D][select:015]: '${name} current_max_charging_current_select': Sending state 60A (index 5)
[23:35:18][D][pipsolar.select:031]: got value: 0
[23:35:18][D][pipsolar.select:033]: found mapped option Utility first for option 0
[23:35:18][D][select:015]: 'inverter0_output_source_priority_select': Sending state Utility first (index 0)
[23:35:18][D][pipsolar.select:031]: got value: 2
[23:35:18][D][pipsolar.select:033]: found mapped option Solar and utility for option 2
[23:35:18][D][select:015]: '${name} charger_source_priority_select': Sending state Solar and utility (index 1)
[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:18][W][component:215]: Components should block for at most 20-30ms.
[23:35:18][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[23:35:18][D][pipsolar:860]: checking crc on incoming message
[23:35:18][D][pipsolar:863]: CRC OK
[23:35:18][D][pipsolar:758]: Decode QBATCD
[23:35:18][D][pipsolar.select:031]: got value: (000
[23:35:18][D][pipsolar.select:036]: could not find option (000 in mapping
[23:35:18][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:18][W][component:215]: Components should block for at most 20-30ms.

also, what does coroutine took a long time for operation mean?

[23:35:13][W][component:214]: Component esphome.coroutine took a long time for an operation (0.17 s).
[23:35:13][W][component:215]: Components should block for at most 20-30ms.
[23:35:13][D][pipsolar:924]: Sending polling command : QPIGS2 with length 6
[23:35:13][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:13][W][component:215]: Components should block for at most 20-30ms.
[23:35:13][D][pipsolar:860]: checking crc on incoming message
[23:35:13][D][pipsolar:863]: CRC OK
[23:35:14][D][pipsolar:924]: Sending polling command : QMOD with length 4
[23:35:14][W][component:214]: Component esphome.coroutine took a long time for an operation (0.05 s).
[23:35:14][W][component:215]: Components should block for at most 20-30ms.
[23:35:14][D][pipsolar:860]: checking crc on incoming message
[23:35:14][D][pipsolar:863]: CRC OK
[23:35:14][D][pipsolar:536]: Decode QMOD
[23:35:14][D][text_sensor:064]: '${name} device_mode': Sending state 'L'
[23:35:15][D][pipsolar:924]: Sending polling command : QFLAG with length 5
[23:35:15][W][component:214]: Component esphome.coroutine took a long time for an operation (0.09 s).
[23:35:15][W][component:215]: Components should block for at most 20-30ms.
[23:35:15][D][pipsolar:860]: checking crc on incoming message
[23:35:15][D][pipsolar:863]: CRC OK
[23:35:15][D][pipsolar:544]: Decode QFLAG
[23:35:16][D][pipsolar:924]: Sending polling command : QPIRI with length 5
[23:35:16][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:16][W][component:215]: Components should block for at most 20-30ms.
[23:35:17][D][pipsolar:860]: checking crc on incoming message
[23:35:17][D][pipsolar:863]: CRC OK
[23:35:17][D][pipsolar:479]: Decode QPIRI
[23:35:18][D][pipsolar.select:031]: got value: 2
[23:35:18][D][pipsolar.select:033]: found mapped option 2A for option 2
[23:35:18][D][select:015]: '${name} current_max_ac_charging_current_select': Sending state 2A (index 0)
[23:35:18][D][pipsolar.select:031]: got value: 60
[23:35:18][D][pipsolar.select:033]: found mapped option 60A for option 60
[23:35:18][D][select:015]: '${name} current_max_charging_current_select': Sending state 60A (index 5)
[23:35:18][D][pipsolar.select:031]: got value: 0
[23:35:18][D][pipsolar.select:033]: found mapped option Utility first for option 0
[23:35:18][D][select:015]: 'inverter0_output_source_priority_select': Sending state Utility first (index 0)
[23:35:18][D][pipsolar.select:031]: got value: 2
[23:35:18][D][pipsolar.select:033]: found mapped option Solar and utility for option 2
[23:35:18][D][select:015]: '${name} charger_source_priority_select': Sending state Solar and utility (index 1)
[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.07 s).
[23:35:18][W][component:215]: Components should block for at most 20-30ms.
[23:35:18][D][pipsolar:924]: Sending polling command : QBATCD with length 6
[23:35:18][D][pipsolar:860]: checking crc on incoming message
[23:35:18][D][pipsolar:863]: CRC OK
[23:35:18][D][pipsolar:758]: Decode QBATCD
[23:35:18][D][pipsolar.select:031]: got value: (000
[23:35:18][D][pipsolar.select:036]: could not find option (000 in mapping
[23:35:18][D][pipsolar:924]: Sending polling command : QPIGS with length 5
[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s).
[23:35:18][W][component:215]: Components should block for at most 20-30ms.
syssi commented 5 months ago

Your observation is correct: If the api connection to the ESP gets lost the ESPHome integration of Home Assistant changes all sensor states of the node to unavailable. If the connection recovers a few seconds later the ESP cannot provide/push new measurements because the inverter doesn't provide any data (as long its unavailable).

[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s). [23:35:18][W][component:215]: Components should block for at most 20-30ms.

See https://github.com/esphome/issues/issues/4717