You can install our site as a web app on your iOS device by utilizing the Add to Home Screen feature in Safari. Please see this thread for more details on this.
Note: This feature may not be available in some browsers.
All - can someone point me to which 'data cable' you have used to load balance the two Wall Connectors? I just added a second Tesla and have a second wall connector coming our way and my electrician told me to order the data cable... I need about 30 ft between the 2 wall connectors.
Thank you!
Hi everyone,
I thought I'd share my mods to TWCManager for Powerwall users.
Firstly, many thanks to CDragon for this.
Basically I wanted to use Excess solar to charge the car but only when the Powerwall couldn't store it. As the Powerwall can charge at lower amps than the car, if you think of the curve of solar output through the day, we want to hold back some Powerwall chargin until the latter part of the day when it would not be possible to charge the car (as below 6A).
So this mod uses the Powerwall Gateway to read the solar production and grid export power. The grid export is added to any current TWC car charging power to give the new value for the available green energy. So if we start importing energy from the grid the TWC amps will reduce, and if we start exporting energy the amps will increase. I fixed a couple of problems the code was giving me that was preventing with the car charging handling - these are all commented. CDragon may find these useful for the base code.
...
You are a legend, i was just about to start googling this as I have just built my unit for install tomorrow and was going to find out how to read off the power wall to see if we could charge when exporting, rather than importing from the grid. Will test this out over the next few days.
Do you log anything to the CLI so I know if its calling the PW for its information?
Fantastic stuff here!
I recently had my Enphase system installed, and would like to install the above, but I am a python noob and not sure how to get the output of my solar system correctly working on the TWC code. Here is the IP details and the output. I want to use the net-consumption wNow. Another way is that it could take the simple output of production and consumption and do the maths within the TWC, but that requires polling the envoy twice. Any help would be great.
http://192.168.86.151/production.json?details=1&classic=1
It worked great for me a couple of days ago where the home usage profile tracked the solar output pretty closely throughout the day - all energy that would have been exported for no gain before.
Let me know how you get on.
Cheers,
Pete
I've finished decoding the 11 new commands in the new firmware. Although two of them are clearly intended to stop/start charge, they mostly just flip the main relays and fail to send a CAN message to the car telling it to start or stop. When the TWC stops charging, the ring around the car plug continues flashing green for ~30 seconds, goes blue for a couple seconds (presumably asking the TWC to resume charging), green for a bit longer, then red. After that, start charge command will not start charging again until you re-plug the car.
Been running it for 24 hrs now and worked perfectly yesterday. I believe there is something missing for retry; such that I changed the IP address of the RPi to one that conflicted with another device and it was offline for an hour before it got DHCP; when i went into the screen session there was something about max retries for the web url failed, then no more requests. I restarted it and it worked fine.
Today however, I went into screen and saw it wasn't polling the tesla power wall anymore so had to restart again. Perhaps my pi lost internet or the power wall did an update so was offline for a period.
What error handling can be used to continue to try poling the power wall in a fault condition?
Hi Icepicknz,
Yes I am getting the same problem where it stops polling for green energy after going through the night. I don't think it's a bug I've introduced but I'm adding some extra logging so I'll track it down and report back once I have a fix. I'll also build in a try...catch so if the powerwall is not available on the IP address it will not break.
its going on 10pm here and I noticed my car was charging at 1kw and there is no sun. So i just restarted TWCManager and I'm not seeing any queries to the tesla powerwall, even though i can query it manually just fine. Is there a timer so to not query in the evening or something?
Power available for all TWCs: None
TWC 7430: Charging at 4.97A.
In debug I'm just seeing
21:54:06: SHB 7430: 01 05.19/06.00A 0000 0000 M: 00 00.00/00.00A 0000 0000
21:55:07: SHB 7430: 01 05.24/06.00A 0000 0000 M: 09 00.00/00.00A 0000 0000
21:55:09: SHB 7430: 09 05.28/06.00A 0000 0000 M: 09 00.00/00.00A 0000 0000
Any ideas?
yeah it was in the screen i was getting that debug info, there is nothing about web calls or anything, i am on debug 7 so may change that to higher and see if there is anything else; however thought i'd wait a few more hours for the sun to shine to see what it does
Out of interest, do you connect your car to the API so it stops / starts? I'm guessing my charger doesn't have the ability to stop start and it needs to use the API perhaps