Controling charging your EV or PHEV depending on solar

In a week or so I got my first PHEV. At the moment it’s not a problem because I have a “old” energy contract. With the new contracts you will receive a fine if you supply energy back. So below is my question.

To be started, I don’t have a smart meter. I also don’t want one. They know enough of me. However the meter is digital. As far as I know it hasn’t a P1 port.

Want I want to achive: I want the car only be charged when there is enough power (arround 2200 watts) delivered to the grid.

Is there somebody who has build this already? I think you need a sepperate KWh meter.