1 min read

Battery level notification & integration of Telsa Model 3 into Home Assistant

After 3 month of owning a Tesla Model 3 I have admit, that I am very happy with it and that I do not regret the money, which I spent at all.

Like most owners of an electric vehicle and a photovoltaic system I wanted to achive PV surplus charging. I did not really dive deep into this topic, but I guess I am going with TeslaSolarCharger, because it doesn't need special hardware and is able to control the charging speed via TeslaMate. It only needs the input from the Grid Power, the Inverter Power, the Home Battery SoC and the Home Battery Power, which I can get throught the API of my Home Assistant instance.

I did not set this up yet, instead I went with a much simpler way to achive something similar. I created this automation, that just sends a Telegram message, when sensor.rct_power_storage_battery_state_of_charge changes below 60 and sensor.rct_power_storage_consumer_power is above 2000, to ensure I only get this message when my car is actively charging. This way its very easy to control the charging manually, because in the summer there is plenty of energy available.

Integration of my Telsa Model 3 into Home Assistant

Another thing that I did was adding my car to Home Assistant for reading its values. It was quite easy via the alandtse/tesla, I just needed to generate a Token with the Auth App for Tesla. If you want to control the vehicle, there is more work needed since the introduction of Tesla Fleet API Proxy. But this is a topic for another day.

This is what my garage page is currently looking like:

Author: peterge