I see there are a couple options depending on how Tesla implements the hardware.
1) The Tesla car (V2G) can be treated like a regular grid tied solar inverter with no gateway required. The V2G application would need to comply with the current 1741 SA standard. Perhaps the V3 wall connector with wifi or the car alone has the needed hardware for this to work and will be UL 1741 SA certified in the future. Just the matter of installing the software and the appropriate tests and certification.
2) The Tesla car is connected with an existing Powerwall and gateway installation for backup power. The car can be used as a second tier battery. The car could soak up excess solar when the Powerewalls are full in a backup (or in a strict self-consumption) mode. Inversely, if the Powerwalls are nearly empty in a backup situation, the car could provide power until the Powerwalls can charge off of solar again.
Note, there already exists a basic relationship between the car and the Powerwalls via
Vehicle Charging During Power Outage. I would like this to be expanded to automate charging the car with excess solar when off grid or during off peak rates while grid-tied.
In either case, the car can be used to supplement the grid and can work together with other batteries (Powerwalls) to act as a virtual power plant. This could be used to mitigate peak period energy costs. The home/car owner may choose to opt into such programs if the price is right.
The only technical limitations would be to ensure the circuit breaker for the EV and all other power sources in the electrical panel are compliant with NEC 705.12(B)(2)(3)(b) and the electric meter is bi-directional.