Problem with ESP32

HI. I Have some big problem. I have a Deye solar Inverter, and got af code for uising i HA.
I got esp32 to TTL and from TTL to modbus in Deye solar inverter.
It worked for 1 day, and now i got some problem. Cant see if it is hardware problem or problem with other things in HA.

INFO ESPHome 2023.6.1
INFO Reading configuration /config/esphome/esphome-web-0d9500.yaml…
INFO Starting log output from 192.168.18.32 using esphome API
INFO Successfully connected to 192.168.18.32
[11:18:18][I][app:102]: ESPHome version 2023.5.5 compiled on Jun 21 2023, 14:50:11
[11:18:18][C][wifi:505]: WiFi:
[11:18:18][C][wifi:363]: Local MAC: 94:E6:86:0D:95:00
[11:18:18][C][wifi:364]: SSID: [redacted]
[11:18:18][C][wifi:365]: IP Address: 192.168.18.32
[11:18:18][C][wifi:367]: BSSID: [redacted]
[11:18:18][C][wifi:368]: Hostname: ‘deye12’
[11:18:18][C][wifi:370]: Signal strength: -37 dB ▂▄▆█
[11:18:18][C][wifi:374]: Channel: 10
[11:18:18][C][wifi:375]: Subnet: 255.255.255.0
[11:18:18][C][wifi:376]: Gateway: 192.168.18.1
[11:18:18][C][wifi:377]: DNS1: 0.0.0.0
[11:18:18][C][wifi:378]: DNS2: 0.0.0.0
[11:18:18][C][logger:301]: Logger:
[11:18:18][C][logger:302]: Level: DEBUG
[11:18:18][C][logger:303]: Log Baud Rate: 115200
[11:18:18][C][logger:305]: Hardware UART: UART0
[11:18:18][C][uart.arduino_esp32:124]: UART Bus 1:
[11:18:18][C][uart.arduino_esp32:125]: TX Pin: GPIO17
[11:18:18][C][uart.arduino_esp32:126]: RX Pin: GPIO16
[11:18:18][C][uart.arduino_esp32:128]: RX Buffer Size: 256
[11:18:18][C][uart.arduino_esp32:130]: Baud Rate: 9600 baud
[11:18:18][C][uart.arduino_esp32:131]: Data Bits: 8
[11:18:18][C][uart.arduino_esp32:132]: Parity: NONE
[11:18:18][C][uart.arduino_esp32:133]: Stop bits: 1
[11:18:18][C][modbus:143]: Modbus:
[11:18:18][C][modbus:145]: Send Wait Time: 250 ms
[11:18:18][C][modbus:146]: CRC Disabled: NO
[11:18:18][C][modbus.number:083]: modbus.numberModbus Number ‘sun12k-Maximum battery charge current’
[11:18:18][C][modbus.number:083]: modbus.number Unit of Measurement: ‘A’
[11:18:18][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=130 count=1
[11:18:18][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=598 count=3
[11:18:18][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=625 count=1
[11:18:18][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=653 count=1
[11:18:18][C][modbus.number:083]: modbus.numberModbus Number ‘sun12k-Maximum battery discharge current’
[11:18:18][C][modbus.number:083]: modbus.number Unit of Measurement: ‘A’
[11:18:18][C][modbus.number:083]: modbus.numberModbus Number ‘sun12k-Maximum battery_grid charge current’
[11:18:18][C][modbus.number:083]: modbus.number Unit of Measurement: ‘A’
[11:18:18][C][modbus.number:083]: modbus.numberModbus Number ‘sun12k-Time point 1 start’
[11:18:18][C][modbus.number:083]: modbus.numberModbus Number ‘sun12k-Time point 2 start’

count=1
[11:18:20][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=598 count=3
[11:18:20][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=625 count=1
[11:18:20][W][modbus_controller:113]: Duplicate modbus command found: type=0x3 address=653 count=1

This here is Yellow.

ESP32 Is offline in HA but in the logs it is online, and i can read the logs with wifi.

We have no clue what you’re talking about until you post your ESPHome code (in formatted text, not screenshot)

I googled the inverter and find this
StephanJoubert/home_assistant_solarman: Home Assistant component for Solarman collectors used with a variety of inverters. (github.com)

how do i do that?

You get this error, if there is an error on the modbus.
Which hardware do you use for the ttl to rs485 (link?)
I recommend this one, as it only needs 3V3 and no control_pin
RS485 naar RX-TX TTL 3.3V 5V omvormer module SP3485 (domoticx.nl)

i use esp32 to ttl and from ttl to deye inverter with cat 5 cable.

Funktioniert es mittlerweile ?

did you fix this? i have same problem but with sofar inverter :slight_smile:

So it looks like there are different methods, at least I’m now aware of 4 methods, 3 of which I’ve already been able to test myself, although I like the methods with a LAN connection the most. 1) Solarman ntegration and with mqtt. 2) Esphome unfortunately my wifi keeps dropping out even though the router is only 2 meters away. 3) The Sunsynk https://www.youtube.com/watch?v=u9df0YHfNtM&lc=UgyMBEmbr7f61DSt7F54AaABAg.9yEdfPD3aU59yGoaEV0iao 4) With a Waveshare. I haven’t tested it myself yet, it works under ioBroker and with a little skill it shouldn’t be a problem with HA.

[image]