My friend has a car which can charge only when prices are low. I'm not totally sure how it works though, does the smart meter communicate this to the car?
You can do this yourself as well with home assistant (if your charger supports it) and some API calls. It's just a matter of telling the charger when to start and stop the charge. The rest of the communication between the charger and the car is some protocol I can't remember the name of.
Octopus UK has a list of charger models and car brands they support for their special tariff for cheap off-peak EV charging.
The charging cable has a protocol for negotiating power, so either side can pause and restart charging.