Open Sleeper85 opened 4 days ago
I need all your yaml file, looks like you have several registers in this server...
Edit 1: If you could post all logs (without redaction), it would help to check the timings. Edit 2: A verbose log would help a lot.
I could provide you with more logs tomorrow. In the meantime, here are all the YAMLs used.
I need all your yaml file, looks like you have several registers in this server...
Edit 1: If you could post all logs (without redaction), it would help to check the timings. Edit 2: A verbose log would help a lot.
Attached is an export of the full VERBOSE logs without filtering.
logs_device_241_disconnected_from_the_RS485_bus_2024.11.19.zip
The problem
Hi @martgras @0x3333
I'm testing a client modbus code that queries three different servers. If server
241
becomes offline, after 6 requests, a1min pause
(3s*20) is observed and then the client sends new requests indefinitely without respecting themax_cmd_retries
parameters.Server 1 information continues to be retrieved but server 2 information is lost.
If I reconnect
server 241
to the RS485 bus everything works correctly again.This problem exists with esphome
2024.11.1
but also with2024.10.3
(before the PR of @0x3333), I have not tested other esphome versions.The RS485 bus
Which version of ESPHome has the issue?
2024.11.1
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32-IDF
Board
esp32doit-devkit-v1
Component causing the issue
modbus_controller
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response