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.
Thanks!I got this, and its working great with no resistor on a 20ft cable:
https://www.amazon.com/DSD-TECH-Converter-Adapter-Compatible/dp/B0721BB8PQ
Great Job !
I suppose you 've been performing all this testing/probing with the TWC 's DIP-switch 2 in the UP position (=Default) ?
What if you put that one in the DOWN position ?
Putting DIP 2 in the down position is like turning the Tesla into a fake-car equivalent. It disables CAN communication and even a P1 TWC won't stop charging a non-CAN car. It's my understanding that J1772 actually has no analog pilot-signal state for a charger to tell a car to stop charging or use 0A. ...
TWCManager now defaults to charging at a minimum of 10A (2.4kW) to limit these losses. This is set using minAmpsPerTWC in the python source.
So, given all this, I've moved my stop charge via car API code to github.
I added a Charge 1-day button and better debug web interface (http://<pi IP>/ndex.php?debugTWC=1).
Do you respect the EU 3 phase system and let it stay at a minimum of 5A (or 6A)=4.1 kW if EU System is determined?
Do I understand you correctly that you implemented this "stop charge" command repeatedly every 3 seconds? Or did you mean "Tesla API"?
What does "charge 1 day" mean exactly? Let the car charge for 24 hours in a row?
# Use EmonCMS realtime feed data
greenEnergyData = run_process('curl -s -m 4 "http://[emoncms_server]/emoncms/feed/value.json?id=[emoncms_pv_feed]&apikey=[emoncms_read_apikey]"')
houseEnergyData = run_process('curl -s -m 4 "http://[emoncms_server]/emoncms/feed/value.json?id=[emoncms_house_usage_feed]&apikey=[emoncms_read_apikey]"')
# Use realtime EmonCMS voltage data, alternatively just set: houseVoltage = 240
houseVoltage = run_process('curl -s -m 4 "http://[emoncms_server]/emoncms/feed/value.json?id=[emoncms_voltage_feed]&apikey=[emoncms_read_apikey]"')
if(greenEnergyData and houseEnergyData and houseVoltage):
solarWh = int(greenEnergyData)
houseWh = int(houseEnergyData)
greenEnergyAmpsOffset = 0 - (houseWh / float(houseVoltage)) + self.reportedAmpsActual
surplusWh = solarWh - houseWh + (self.reportedAmpsActual * float(houseVoltage))
# Watts = Volts * Amps
# Car charges at 240 volts in North America so we figure
# out how many amps * 240 = solarWh and limit the car to
# that many amps.
maxAmpsToDivideAmongSlaves = (solarWh / float(houseVoltage)) + \
greenEnergyAmpsOffset
if(debugLevel >= 1):
print("%s: Solar generating %dWh, surplus is %dWh, so limit car charging to:\n" \
" %.2fA%.2fA = %.2fA. Charge when above %.2fA (minAmpsPerTWC)." % \
(time_now(), solarWh, surplusWh, (solarWh / float(houseVoltage)),
greenEnergyAmpsOffset, maxAmpsToDivideAmongSlaves,
minAmpsPerTWC))
apiResponseDict = json.loads(run_process(cmd).decode('ascii'))
Yes, please PM me the contents of apiResponseDict so I can handle whatever it's returning differently. carApiStopAskingToStartCharging is meant to only be set True when the car reports that it's done charging or is already trying to charge.if you want some debug info just let me know.
Is it correct to use self.reportedAmpsActual in the surplusWh calculation rather than self.lastAmpsActual?
Am based in the UK where 32A 230/240V single phase (7kW) is pretty much for norm for home EV chargers - some people have access to 3-phase but it isn't common. Does your code update/change to minWattsPerTWC take this into account?
Yes, please PM me the contents of apiResponseDict so I can handle whatever it's returning differently.
So you're saying your TWC runs on one-phase 230VAC instead of three-phase 230VAC? I didn't know that was possible. minWattsPerTWC does not account for that because there is no way to know that is your setup. In fact it looks like there are quite a lot of setups possible which would require adding a numPhases parameter and a voltsPerPhase parameter. I'm not absolutely sure how to convert those three params into Watts (I assume it's voltsPerPhase * numPhases * amps but not certain that works in all configurations?).
So you're saying your TWC runs on one-phase 230VAC instead of three-phase 230VAC? I didn't know that was possible.
I'm not absolutely sure how to convert those three params into Watts (I assume it's voltsPerPhase * numPhases * amps but not certain that works in all configurations?).
When i use a floating point number (f.e. 7.15) then it sets the maxPower first to 15 and then to 7
are floating point numbers not supported? In the installation manual is a picture with a such a number.
The TWC reports the amps actually being used with two digits of floating point which is what you see in the web UI. Amps being used are generally around 0.8A less than what you set it to, at least on my TWC. So if you set 6A, TWC reports it's using 5.14A or 5.23A most of the time.