Skip to content
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

TSC not working anymore after upgrading to v2.35.1 and Solar4Car Backend #1778

Closed
owkowo69 opened this issue Jan 25, 2025 · 12 comments
Closed
Labels
investigation needed Needs more investigation

Comments

@owkowo69
Copy link

owkowo69 commented Jan 25, 2025

Hi,

TSC was running fine until the latest upgrade (2.35.1).

After the upgrade and migrating to Solar4Car (Base + Fleet Api subscription), SOC is not displayed correctly and charging is not started in "Maximum Power" or "Sport Price + PV" Modes.
Cloud Connection shows "Solar4Car Backend connection" and "Tesla Fleet API Connection" both green.

I found errormessage

"2025-01-25T23:21:04.211894239Z [26-Jan-2025 00:21:04.210 ERR TeslaSolarCharger.Server.Services.BackendApiService] Error while sending request to backend

2025-01-25T23:21:04.214593885Z System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0."

in Logfiles, see attachment.

Thanks for your support,
Wolfgang

@owkowo69 owkowo69 changed the title TSC not working anymore after upgrading to v2.35.0 and Solar4Car Backend TSC not working anymore after upgrading to v2.35.1 and Solar4Car Backend Jan 25, 2025
@pkuehnel
Copy link
Owner

Please upload logs (not created with Portainer, but like described here)
To: https://nextcloud.th-deg.de/s/sgoG9HWspkqS3k8

Please also upload a Textfile where you insert your VIN, InstallationID and the email address you used to register an account on Solar4Car.com

@pkuehnel pkuehnel added waiting for feedback Waiting for feedback of issue creator investigation needed Needs more investigation labels Jan 26, 2025
@pkuehnel
Copy link
Owner

I resolved a bug about 5 hours ago, which could have lead to your issue. Please again check if it is working properly now.

@github-actions github-actions bot removed the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@pkuehnel pkuehnel added the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@owkowo69
Copy link
Author

Tried again,

  • SOC is now displayed correctly
  • "Maximum Power" Mode did start ONCE at around 9:24am to charge but showed "Telemetry error"
  • tried again at 10:20, but no reaction (not charging, no error) -> second logfile.

Best regards,
Wolfgang

@github-actions github-actions bot removed the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@pkuehnel
Copy link
Owner

On which hardware is your TSC running, there is at least something wrong with the encoding of your log file, it is impossible for me to read it.

@pkuehnel
Copy link
Owner

You are using Fleet API with a Model Y or Model 3, correct?

If you can't fix the encoding, remove the verbose log again from your docker-compose.yml , update to the latest version again, set the car to max Power while it is not charging and send me a log using Portainer, but make sure to do the following:

  1. Set lines to 10000 (from my experience this is about the maximum without the browser page crashing
  2. Wait for the browser to reload the logs, so you can see a tiny scrollbar on the bottom right
  3. Disable Auto-refresh logs (otherwise the page crashes)
  4. Download the logs

Image
These logs then please upload to my link again.

@pkuehnel pkuehnel added the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@owkowo69
Copy link
Author

Hi,

using 2.35.2 it's working again, switching from "max power" to "spot price" multiple times was fine.
The logfile was "ansi color encoded" by dockers console option -tty, i uploaded the file again if you want to check it anyway.

Thanks a lot for your work and fast response.

Kind regards,
Wolfgang

@github-actions github-actions bot removed the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@pkuehnel
Copy link
Owner

Ah okay. Thanks, I will check it anyway as I did not change anything that would resolve an issue like that.

@pkuehnel
Copy link
Owner

pkuehnel commented Jan 26, 2025

Issue was that car was at 98% (at least today at ~10:20), TSC does not start if Soc Limit is not at least 3% higher than actual Soc because sporadically the cars do not start charging if too close to the limit even though it is below the limit. That would result in the car never going to sleep and TSC trying to start charging forever. Can you confirm that this might have been the case?

@pkuehnel pkuehnel added the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@owkowo69
Copy link
Author

No, because at the time of my first post SOC was about 25%.
I used Tesla scheduling to charge this night, thats the reason for 98% today.

@github-actions github-actions bot removed the waiting for feedback Waiting for feedback of issue creator label Jan 26, 2025
@pkuehnel
Copy link
Owner

Do you have a timestamp of the issue from the day before?

@owkowo69
Copy link
Author

Unfortunately not a exact one, yesterday between 22 - 23:50.

@pkuehnel
Copy link
Owner

Logs are starting at 00:18 sadly. I will close this now, please reopen if the issue comes back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation needed Needs more investigation
Projects
None yet
Development

No branches or pull requests

2 participants