-
Notifications
You must be signed in to change notification settings - Fork 757
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
Intermittent charges incorrectly recorded #3634
Comments
Can you post the rest of the log from 28th Jan? I think the part you posted doesn't show the time when charging should have started again (I assume your time is currently UTC+11 and the time in the log is UTC). |
Hi, Yes the logs timestamps are in UTC while Teslamate is set as UTC+11. Please find attached the logs starting on the 27th 1pm UTC up until 28th 1pm UTC which should encapsulate both charges |
While yesterday charge lined up well between the charger data and Teslamate, today's charge is missing 20+ minutes at the start in Teslamate and is thus under reported: The Tesla app is correctly reporting 9kWh similar to the charger. Any idea what's causing the erratic behavior as the charge reporting cannot be trusted as it stands ? |
It looks like communication errors between the car and Tesla:
I think the Maybe a weak WiFi signal where the car is parked? |
The car is connected to a dedicated AP in the garage less than 5 meters
from it so I don't the wi-fi strength would be the issue.
…On Tue, 30 Jan 2024, 10:34 pm dyxyl, ***@***.***> wrote:
It looks like communication errors between the car and Tesla:
2024-01-30 00:39:50.107 [warning] GET https://owner-api.teslamotors.com/api/1/vehicles/.../vehicle_data -> 540 (2975.551 ms)
2024-01-30 00:39:50.107 [warning] TeslaApi.Error / vehicle error: it is online but not responsive
2024-01-30 00:39:50.107 car_id=1 [error] Error / :unknown
2024-01-30 00:40:10.617 car_id=1 [info] Suspending logging
2024-01-30 00:40:32.921 [warning] Too many disconnects from streaming API
I think the vehicle error: it is online but not responsive comes from the
Tesla server.
Maybe a weak WiFi signal where the car is parked?
—
Reply to this email directly, view it on GitHub
<#3634 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWS2JM4FGRTMOPPNUROHT33YRDLFNAVCNFSM6AAAAABCN4OD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJWGY2TCMBQHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
While they aren't related to the car, are the large number of MQTT timeouts expected? |
I was wondering that as well. I am using the same mosquito broker as my
home assistant instance and can't say I ever had any issue on that end.
…On Tue, 30 Jan 2024, 10:46 pm dyxyl, ***@***.***> wrote:
While they aren't related to the car, are the large number of MQTT
timeouts expected?
—
Reply to this email directly, view it on GitHub
<#3634 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWS2JM22ZVDIAUV4EFOYMVLYRDMR7AVCNFSM6AAAAABCN4OD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJWGY3DQOJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
TeslaMate wait for the car to fall asleep when the charge has stopped, and thus can be still in the state of waiting for sleep when you start charging again. This can only be prevented when forcing the car to be awake, or resume TeslaMate logging before start the charge again. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
If streaming is enabled it should automatically start logging again on its own: teslamate/lib/teslamate/vehicles/vehicle.ex Lines 484 to 487 in 3ecd857
|
Streaming is enabled on my setup.
Usually the start of a charge would be missing if the charge won't start
soon after plugging the car in (as dependent on a solar export threshold).
…On Wed, 6 Mar 2024, 2:12 am Michael Vestergaard, ***@***.***> wrote:
TeslaMate wait for the car to fall asleep when the charge has stopped, and
thus can be still in the state of waiting for sleep when you start charging
again. This can only be prevented when forcing the car to be awake, or
resume TeslaMate logging before start the charge again.
If streaming is enabled it should automatically start logging again on its
own:
https://github.com/teslamate-org/teslamate/blob/3ecd85736adf9bc8dad933aa47dcff80a3e1fafe/lib/teslamate/vehicles/vehicle.ex#L484-L487
—
Reply to this email directly, view it on GitHub
<#3634 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWS2JMZXOMYN636S5UO5ITTYWXOFNAVCNFSM6AAAAABCN4OD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYHE4TQOBSHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Maybe you have streaming connection problems when the charge start, which of course would make it not detect the charge. Maybe the MQTT errors also causes issues. In the log it only seems to be [error] GenServer TeslaMate.Mqtt.Publisher terminating, but it could still mess up the rest of the system. If you have an interface to the charger, it could help to wake up teslamate, similar to this: |
I have solved the MQTT error since sharing the logs, it was an issue with
the docker network configuation.
My guess is that if the start of the charge is too much delayed due to
insufficient solar export, the car would be attempting to sleep or
potentially being asleep.
Same things when the charge drops in the middle.
Last few days, with a consistent solar output and above minimum threshold
soon after plugging it in, teslamate captured the whole charges.
Thanks for the link, I will take a look.
I have the charger integrated in Home Assistant.
…On Fri, 8 Mar 2024, 6:50 pm Michael Vestergaard, ***@***.***> wrote:
Maybe you have streaming connection problems when the charge start, which
of course would make it not detect the charge.
Maybe the MQTT errors also causes issues. In the log it only seems to be
[error] GenServer TeslaMate.Mqtt.Publisher terminating, but it could still
mess up the rest of the system.
If you have an interface to the charger, it could help to wake up
teslamate, similar to this:
#3701 <#3701>
—
Reply to this email directly, view it on GitHub
<#3634 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWS2JM75HCD46O74UUHSGMTYXFUUXAVCNFSM6AAAAABCN4OD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBVGIYDSMRTGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
What happened?
Our Tesla is charged at home with an EVSE with a Solar Only feature.
Consequently it can happen that the charge will stop temporarily if the sun comes down until the solar output reaches the desired 4.5kW level required by the charger.
Teslamate won't record correctly the charges in that case, only the first chunk before the charge is paused by the charger.
Here is today's use case, two charges but each with intermittent pause periods.
View from the charger app:
First Charge: 5.2kWh
Second charge: 11.5kWh upon to 80%
Tesla app view showing the cumulative daily charge of 16kWh:
Teslamate: only reporting 3.12kWh and 5.97kWh with the second charge ending at 77% rather than 80% among other inconsistencies
Expected Behavior
Expectation is for Teslamate to record the entire charges output, without as a single charge as long as the car is plugged or multiple charges if the charging is stopped while the car is plugged.
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.28.2
The text was updated successfully, but these errors were encountered: