syssi / esphome-pipsolar

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

EASUN ISOLAR SML III 5.5kW - Problem #65

Open ZVlog opened 1 year ago

ZVlog commented 1 year ago

I tested all possible configurations including tests. . Connections also checked several times. Does anyone have this model and can provide yaml configuration?

INFO Updating https://github.com/syssi/esphome-pipsolar.git@pi18
INFO Generating C++ source...
INFO Compiling app...
Processing easun (board: nodemcuv2; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
Compiling /data/easun/.pioenvs/easun/src/esphome/components/api/api_connection.cpp.o
[...]
Compiling /data/easun/.pioenvs/easun/src/main.cpp.o
Linking /data/easun/.pioenvs/easun/firmware.elf
RAM:   [====      ]  39.2% (used 32100 bytes from 81920 bytes)
Flash: [====      ]  37.2% (used 388457 bytes from 1044464 bytes)
Building /data/easun/.pioenvs/easun/firmware.bin
esp8266_copy_factory_bin(["/data/easun/.pioenvs/easun/firmware.bin"], ["/data/easun/.pioenvs/easun/firmware.elf"])
========================= [SUCCESS] Took 89.81 seconds =========================
INFO Successfully compiled program.
INFO Connecting to 192.168.1.55
INFO Uploading /data/easun/.pioenvs/easun/firmware.bin (392608 bytes)
INFO Compressed to 273487 bytes
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from 192.168.1.55 using esphome API
INFO Successfully connected to 192.168.1.55
[20:51:12][I][app:102]: ESPHome version 2023.3.2 compiled on Mar 29 2023, 20:50:34
[20:51:12][C][wifi:504]: WiFi:
[20:51:12][C][wifi:362]:   Local MAC: C8:C9:A3:09:EA:A3
[20:51:12][C][wifi:363]:   SSID: 'Marek60Mag'[redacted]
[20:51:12][C][wifi:364]:   IP Address: 192.168.1.55
[20:51:12][C][wifi:365]:   BSSID: 90:9A:4A:D2:BA:3E[redacted]
[20:51:12][C][wifi:367]:   Hostname: 'easun'
[20:51:12][C][wifi:369]:   Signal strength: -80 dB ▂▄▆█
[20:51:12][C][wifi:373]:   Channel: 1
[20:51:12][C][wifi:374]:   Subnet: 255.255.255.0
[20:51:12][C][wifi:375]:   Gateway: 192.168.1.1
[20:51:12][C][wifi:376]:   DNS1: 0.0.0.0
[20:51:12][C][wifi:377]:   DNS2: 0.0.0.0
[20:51:12][C][logger:293]: Logger:
[20:51:12][C][logger:294]:   Level: DEBUG
[20:51:12][C][logger:295]:   Log Baud Rate: 115200
[20:51:12][C][logger:296]:   Hardware UART: UART0
[20:51:12][C][uart.arduino_esp8266:102]: UART Bus:
[20:51:12][C][uart.arduino_esp8266:103]:   TX Pin: GPIO4
[20:51:12][C][uart.arduino_esp8266:104]:   RX Pin: GPIO5
[20:51:12][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[20:51:12][C][uart.arduino_esp8266:108]:   Baud Rate: 2400 baud
[20:51:12][C][uart.arduino_esp8266:109]:   Data Bits: 8
[20:51:12][C][uart.arduino_esp8266:110]:   Parity: NONE
[20:51:12][C][uart.arduino_esp8266:111]:   Stop bits: 1
[20:51:12][C][uart.arduino_esp8266:115]:   Using software serial
[20:51:12][C][pipsolar:862]: Pipsolar:
[20:51:12][C][pipsolar:863]: used commands:
[20:51:12][C][pipsolar:866]: ^P007PIRI
[20:51:12][C][mdns:108]: mDNS:
[20:51:12][C][mdns:109]:   Hostname: easun
[20:51:12][C][ota:093]: Over-The-Air Updates:
[20:51:12][C][ota:094]:   Address: 192.168.1.55:8266
[20:51:12][C][api:138]: API Server:
[20:51:12][C][api:139]:   Address: 192.168.1.55:6053
[20:51:12][C][api:143]:   Using noise encryption: NO
[20:51:12][D][uart_debug:158]: <<< "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xF
[20:51:13][D][pipsolar:755]: timeout command to poll: ^P007PIRI
[20:51:13][D][uart_debug:158]: <<< "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
[20:51:13][D][uart_debug:158]: >>> "^P007PIRI\xEE8\r"
[20:51:13][D][pipsolar:838]: Sending polling command : ^P007PIRI with length 9
[20:51:16][D][uart_debug:158]: <<< "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xF
[20:51:18][D][pipsolar:755]: timeout command to poll: ^P007PIRI
[20:51:18][D][uart_debug:158]: <<< "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xF
[20:51:18][D][uart_debug:158]: >>> "^P007PIRI\xEE8\r"
[20:51:18][D][pipsolar:838]: Sending polling command : ^P007PIRI with length 9
[20:51:21][D][uart_debug:158]: <<< "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xF
[20:51:23][D][pipsolar:755]: timeout command to poll: ^P007PIRI
[20:51:23][D][uart_debug:158]: <<< 
syssi commented 1 year ago

Please double check your wiring. The incoming bytes (garbage: \xFF\xFF\xFF\xFF\xFF\xFF\xFF) looks like bad grounding (GND).

syssi commented 1 year ago

Is the inverter compatible with the SmartESS wifi dongle?

BeckoPopov commented 1 year ago

If you use esp32: tx_pin: GPIO16 rx_pin: GPIO17

or ESP8266: tx_pin: GPIO1 rx_pin: GPIO3

# Enable logging logger: baud_rate: 0 I saw the same on pins GPIO4 and GPIO5

syssi commented 1 year ago

@ZVlog Any updates? I would like to close the issue. Did you see @BeckoPopov recommendation?

Please try to attach the inverter to GPIO1/GPIO3 and disable the logger on GPIO1/GPIO3 by baud_rate: 0.

mpodda2566 commented 1 year ago

Hi, I,ve the same inverter and the same problem, I checked wires but it is impossible to connect it to hone assistant by esp8266 and converter rs232 ttl. I asked easun about rj45 connector with Rs232/485 pinout but nothing answer me. Can anyone help me? Inverter is compatible with Smartess wifi dongle and now I can monitor it only with this app.

kreamuhely commented 6 months ago

The search SOLAR2MQTT_D1_MINI_0.3.3.bin on the github. But problem, because in the MQTT message the "space" character, and Mosquitto mqtt broker does't . :(