https://www.home-assistant.io/integrations/tesla_wall_connector/
Don’t have one but searching the home assistant integration page it appears to expose every monitoring and several sensors. So you should be able to track total energy use.
The page does not elaborate on all the details however