You can't do it on an arduino. Since you are going to run a controller it could make sense having a raspberry. Running 2 separare instances it would not be a problem for HA as you would have to add the 2 gateways anyway like if they were on separate hw