-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charge limit no longer changing with policies #451
Comments
If you can stop charging successfully, I agree, it sounds like the API piece is correct. TWCManager is very cautious not to change the SoC for a car that it isn't sure is home; it's possible that your home location has gotten messed up in To test #306, you would |
I think you're right. I grabbed the lat/lon from I've removed the location fields from I decided no to test #306 simply as I'd not be confident in bug testing or reverting those changes if it didn't work as expected. |
Hmm, I have removed the location information but it is not being recreated when I start a charging session. Edit: I removed all contents from |
Thanks Mike, this advice helped me to fix the issue. I ended up clearing the contents of I noticed in my old |
That element is used in knowing whether to update (and how to restore) the charge limits to match the policy. The key is the ID for each vehicle; the first number is the vehicle's "normal" charge limit (so we can restore it when the vehicle leaves or a policy no longer applies one); the second number is the most recent charge limit applied by policy to the vehicle. I'm a bit surprised that you could get a |
Thanks Mike, fixed for my install at this point regardless of cause. |
I'm having a similar problem but can't seem to fix. Used to work just like OP but stopped working at some point recently. My config is similar:
settings.json
But it always seems to restore the charge limit to whatever's set in the settings.json, currently 80%. It restores to 80% at midnight (my scheduled start time, which is wrong...should be 40%) or whenever the car departs home (which is correct at 80%). I've checked that my lat/lng is set correctly. I've also tried removing the chargeLimits section of the settings.json but didn't seem to have much effect. I'm on v1.2.6. |
I'm pretty sure that the minimum value you can set is 50. Try changing your 40 to a 50 and see if you're still seeing that behaviour. |
Ooh...interesting...lemme test that tonight. Thanks! |
@ngardiner is correct -- anything less than 50 or greater than 100 is equivalent to |
Yup that was it. The issues I do believe started when I changed the 50 to 40 a couple weeks ago. Just didn't see the note about 50-100 being the valid range (probably saw it initially years ago). Anyway thanks @alexeiw123 for helping troubleshoot that! |
I might close this one off now, but with a note: I've noted that there's been a few (more than a few, to be honest) instances of what looks to be home lat/lon related issues recently, I haven't pinpointed the reason, but I'm going to spend some time today working on some automated tests for this to see if I can pin it down somewhere. There is a chance that the location moving ~600m away is related to these issues but it's hard to say without further investigation. |
Recently I've noticed my car charging during scheduled time when SoC is above 50%.
My configuration in /etc/twcmanager/config.json is as follows:
This was working fine with no updates or config changes taking place, so I assume this must be TeslaAPI related. I am able to start/stop charging OK so I think the API connection is OK. TWCManager is v1.2.6.
If I manually adjust the charge limit from the app, TWC Manager doesn't change it back to 50% or 90% in either scheduled or green energy policy times.
If logs are helpful, I'll just need a but of a noob guide on how I go about providing them.
The text was updated successfully, but these errors were encountered: