ESPHome got Modbus support over RS485 so that might be worth exploring now.