TWCManager icon indicating copy to clipboard operation
TWCManager copied to clipboard

TWC 1.3.2, python 3.10 (on armbian pine64) Hass issue [solved with python 3.12], Tesla API ok on 2018 tesla

Open revoneor opened this issue 11 months ago • 3 comments

@revoneor When using docker-compose you are running a prebuilt docker image (check your docker-compose.yml to see which version) and the python version that comes with it. When using pyenv you run TWCManager locally. You cannot combine the two methods. Please open a new issue/discussion. This one is about a specific problem with from a year ago.

Originally posted by @RichieB2B in #557

Hi Rich Docker compose now on v1.3.2

sudo docker compose -f docker-compose.yml up -d my .venv lists python 3.12.9 TWC to and from Hass works fine now. I retried on my system Python 3.10 (so without .venv) and again Hass failed to report input, so that seems like some strange quirck.

I struggled to get my Tesla API connected, there are so many topics I didn't know what actually is required for a 2018 tesla. Low and behold after doing that click in the top tesla api banner and posting the error page url into twc it started working. (I can not re issue the link, the http://registration.teslatasks.com/generateTokens from the manual settings page is different, also generates not found though) (also in the git html I can not find the link yet) Not sure if that is affected by my tesla fleet certificates hosting and tesla user and dev account with 2FA I was logged in already, I got a client ID and code but have not added that in config.json

Question, is there a way to get the SoC and Target exported?

Image My compliments on this great tool to get balanced net using Tesla as storage

Image Self use solar power!

revoneor avatar Feb 18 '25 12:02 revoneor

TWCManager currently does not export the SOC of the car and the target for the current charge. It is possible to add this to the Status MQTT module if more users require it.

RichieB2B avatar Feb 18 '25 15:02 RichieB2B

When you say exported, what are you looking for? Anything visible on the web page is accessible through the REST API. For example, the getSlaveTWCs endpoint includes the lastVIN, lastBatterySOC, and lastChargeLimit properties.

MikeBishop avatar Feb 18 '25 21:02 MikeBishop

I guess that takes polling from HASS, I rather see a POST from TWC on status update. But not too important..

revoneor avatar Feb 21 '25 11:02 revoneor