There are a number of solutions. Personally, I have a MyEnergi Zappi set to Eco+ mode, which will only use excess solar to charge the car. I have set an export limit of 200W so it will not start charging unless there is at least 200W going to the grid. This prevents it draining my house battery...