Hi!
Get successfully running ESPHome with Modbus, that connected to solar inverter. All sensors settings was transferred from existing configuration of Modbus RTU from HA (there was 3 USB-232 adapters in use, and due another issue with instability, I have decided to try to switch on ESPHome).
No problem with configuration and reading, but I can’t find any configuration option to recognize that there is no Modbus response. For example, If I switch power off from ESP device, then after some time I see Unknown value of sensors in HA, but if I keep ESP power on but brake Modbus connection, ESP keep sending to HA last read value for each sensor until power on. In ESP log will be errors - “Modbus command to device=1 … no response received - removed from send queue”. But if device lost due some problem, and ESP keep sending last values to HA - it’s not possible to understood that something wrong with device + energy statistics will collect wrong data.
In case of MQTT settings, there is “expire_after:” for sensors that. In original HA Modbus configuration also “retries:” option + and if reply’s are no received - sensors will be set as unknown.
But is it something like that for Modbus in ESPHome?
Thanks you!