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?
Some chargers communicate directly with the energy supplier and charge at the cheaper rates.
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.
Could be wrong but I guess it more likely communicates with the charger. The car will always try to draw if it's plugged in, but most chargers can be switched on ("charge") and off ("don't charge") remotely. It's probably quite trivial to have something watch the price of power and on/off as appropriate