There's an easy answer. Charge for power on a demand curve.
This is already the case in many (most?) places. The resolution of demand/price changes isn’t very high but it’s there.