Using cost enteties to specific energy devices

Today we can use a cast entity to calculate cost of the house consumption.
I would like to do this also with specific devices. With this feature u can i.e see the total cost of charging your EV or any other device.