I have an electric car and I would like to make a graph for its consumption, I have connected the car app to HA and my plan is to use the entity battery_available_energy which shows me how many kWh the battery has left and to add to the graph how much it consumes based on the fact that every time a kWh is consumed, add its price to the graph. I’m a beginner with HA, but I’m thinking of making an automation in which 0.72 (the price of a kWh in my country’s currency) is added to an entity created by me every time a kWh decreases from the entity with the battery, and when the car is charged, kWh used for charging are not removed. I don’t know if all this is possible, that’s why I asked for your help