klatremis / esphome-for-deye

Esphome component for Deye 3 phase inverters for Home Assistant
131 stars 31 forks source link

Entities becomes unavailable #25

Open chinezbrun opened 10 months ago

chinezbrun commented 10 months ago

after several days of normal operation the entities in HA becomes unavailable.

Home Assistant 2023.10.5 ESPHome 2023.11.2

WiFi ok. module is online Reinstalled - no results Delete device from HA - no results

log shows: 22:19:02][D][modbus_controller:043]: Modbus command to device=1 register=0x94 countdown=0 no response received - removed from send queue [22:19:03][D][modbus_controller:043]: Modbus command to device=1 register=0xA6 countdown=0 no response received - removed from send queue [22:19:04][D][modbus_controller:043]: Modbus command to device=1 register=0x154 countdown=0 no response received - removed from send queue [22:19:06][D][modbus_controller:043]: Modbus command to device=1 register=0x21D countdown=0 no response received - removed from send queue [22:19:07][D][modbus_controller:043]: Modbus command to device=1 register=0x224 countdown=0 no response received - removed from send queue

klatremis commented 10 months ago

What hardware do you use?

This is normal feedback when the rs485 communication is not working.

chinezbrun commented 10 months ago

Hardware is exactly what you recommended and the power is coming from pin7,8 . The communication worked, and suddenly become like this, and this worry me. i did a hardware reset (power on off) and nothing, same result. Looking to the TTL To RS485 Module, the TX led is blinking but on RX led, nothing. Look that is no communication with inverter indeed.

I tested the the 485 communication to inverter with a python code and is working. Any idea?

fabhund commented 10 months ago

For me, it has been a bit of hit'n'miss with the hardware. Meaning I went through multiple ESP32 and TTL<->RS485 boards. Also tried to jump the ground connection across the TTL board. I cannot give a reason other that try another ESP32 + TTL board. It's been working stable for me for quite a while. Also powerd from CN2 Pin7+8. Via a 5V USB stepdown module. I would assume a burnt out TTL module. I also reduced the update interval to 15s. Maybe check if the 5V is stable. Maybe add a few filter capacitors to 5V +3.3V (Not sure it will help anything) Like I said. Hit''n'miss :-/