TWC 1.3.2, python 3.10 (on armbian pine64) Hass issue [solved with python 3.12], Tesla API ok on 2018 tesla
@revoneor When using
docker-composeyou are running a prebuilt docker image (check yourdocker-compose.ymlto see which version) and the python version that comes with it. When usingpyenvyou 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?
My compliments on this great tool to get balanced net using Tesla as storage
Self use solar power!
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.
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.
I guess that takes polling from HASS, I rather see a POST from TWC on status update. But not too important..