This is a great integration so thanks for finding these API calls. One question I had though, is what do the numbers for ease_state mean? When my car is idle it seems to be 4, but when charging it seems to change from 1 to 11 to 9. Just curious if there is a mapping for what those numbers mean.
I found out that a long press on the Tesla charging port button can enable the maintenance mode on gen 3 TWC (SSID advertisement and changing charging current is possible.
According to some teardown videos there are 4 thinner wires connected to charging port. One or more likely two wires are connected to the button. So it would be possible to install there some wireless relay to enable the maintenance mode one-the-fly. By default this would stop any Tesla charging for the time when button is pressed, but charge does resume immediately. Another option is to disable the actual button by leaving the wires unconnected.
Hi,
i tried the Lifetime api but the Wh values it returns are a bit strange. I made a simple test, used the Lifetime api before a charging session and again right after the charging is ready. The delta between these two Wh readings was aroun 120000 Wh, e.g. about 120 kWh. The actual energy charged was about 36 kWh based on the info from the car. Any idea what unit the claimed Wh provided by Lifetime is?
Can anyone advise on how to interpret this data? Iām surprised to see current & voltage for 3 phases, even though I am using standard US 240 split-phase power. All three are reporting current & voltage during charging. Whatās the meaning of Phase A,B, and C?
Iād like to chart KW in use but am unclear which values I should be using.
The unit Wh is correct. I can only assume, but there is something wrong with the way the wall connector measures the consumed energy. I am experiencing similar issues with large non-realistic readings. Looking into the historical data from my wall connector I am noticing that the api reports a large chunks of energy consumed in no time especially when the car was unplugged.
No progress on that front so far. We have two electric cars, and currently we are keeping Tesla in front of TWC (and with that car controlling the charge happens via car).
On plus side is the capability to use also below 6A currents. Negatives include also no support for other cars (I just had a loaner for 4 weeks).
Summary of different possible ways to control the pilot from charger:
Tesla to publish API, this would be awesome
Reverse engineering from firmware image (I failed here)
Reverse engineering communication between two TWC gen 3 and create virtual master device based on this (I was too lazy to do this properly, with only one charger this requires a lot of iteration)
Set up RPi to join the TWC Wifi and keep TWC in the state where the RPi can change the current
Turn on the maintenance mode on request with the button trick
I sent a reminder mail on Friday (after a full week waiting in vain for an answer)ā¦ Still no responseā¦
There is no other way to get any support but via mail and they are simply not answeringā¦ There is not only an evident bug in the firmware of the company invented ācomputers on wheelsā but TESLA is not even reacting in any wayā¦
Btw: I updated my Wall Connector to revision 21.36.6+g195ba83f335ac2, but the spurious energy consumption will still be reported and accumulate over time.
Update: There was only one jump after the latest firmware update till nowā¦ The bug may have been successfully fixed:
We have a pair of Gen3 wall connectors with load sharing configured - When sharing is enabled, the secondary unit drops off the local network and I cannot access the API endpoint. When connecting to the local access point to come up with 192.168.92.2 in the wifi config page (despite being connected to it to read the info on 192.168.92.1) in the rather than the one assigned by the site, but I canāt reach that, even via the master wall connector,
Is this a known issue / firmware bug? I checked and weāre still on the 21.36.5 release with no new updates available
I donāt have two wall connectors so I cannot test this out. But what I understand you only have one wall connector connected as master to you local wifi then the others connect to the master via wifi. So you should be able to get all info from the master, but I have no way to test this. Iām just curious what you see when you are accessing this address? http://IP_master/api/1/vitals and http://IP_master/api/1/wifi_status (change the IP_master to the master IP address you see on your local network)
Yeah, the slave apparently connects via the master (as I can click the ācheck for updatesā on the firmware page without it complaining, but nada info about it showing up on the master vitals or wifi_status API json
Sad to hear that! When you say āāstringsā on the firmware file isnāt showing any new endpointsā have someone cracked the FW and one can see the code, if so could you please send a link to that?
You can search strings quite easily with tool called binwalk. Just download the firmware from Tesla and start searching. But I failed with this path: I could not find any new information. Someone with firmware experience might have more luck.
So Iāve two TWC3 at my placeā¦ I opened a honeypot hotspot with a raspberry and used Wireshark to sniff traffic while trying to add it through the twc power sharing, Iāve attached the pcap file, maybe somebody has time to look into it.
Hello @Miro_G I have installed a TWC 3 last week, and I am experiencing exactly the same kind of large unrealistic peaks of consumption.
Did you have some clues to get rid of that pics ?
What I intend to do is to use the voltage and current to calcul by myself the instant power and then integrate through a Rieman function but this is very annoying.
Any clues on what happens or how to bypass this will be greatly appreciated