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
Car constantly cycles sleep and wake. #2556
Comments
Are you in the UK by any chance, and using Octopus Energy? As those using Octopus' Intelligent Energy tarrif see this issue - but it is down to Octopus / Tesla, not Teslamate. |
No, I am in the US and have no idea what Octopus Energy is. That charging in the graph was at the local Service Center. Charging has nothing to do with this issue. |
Depending on your service center, use this data to have them evaluate why the car is not sleeping. They will give you the age old "third-party apps prevent the car from sleeping". But that is just not true with TeslaMate. It calls the non-waking API end point to get the cars status and if it is asleep, it respects that and lowers the amount of calls. TeslaMate will not wake the car nor prevent it from going to sleep. Give the timestamps to the service center and find out why the car is waking. They can check the logs. |
Yes, I have spoken to the Service Center. They so far have no been helpful and told me to turn off teslamate. |
Tesla finally responded and said... "After review of full system logs we found the vehicle was being pinged by a 3rd party App (CarAPI) in order to retrieve vitals from your vehicle. This is normal behavior of the 3rd party App, and Tesla does not recommend the use of them. During the time you had the 3rd party app disconnected, we did not see any abnormal keep awakes. Vehicle was operating as designed." Since Teslamate is off, I can't verify anything. Is nobody else having this problem? |
If you take a look at past GitHub issues this is a standard response from Tesla for anyone who uses any 3rd party apps with their vehicle. They will wash their hands of any responsibility if they see any other app using the API. |
I have reviewed the other threads, it doesn't seem that there was really resolution. And yes, I know that is a standard response from them, but they have been looking at it now with Teslamate off and say it is sleeping properly. And when Teslamate is on, it is not. So it seems Teslamate might be playing a roll afterall... So again I ask, is anyone else having this issue? Or am I literally the only one currently having this problem? Is there possibly a setting, or something in Teslamate that if configured wrong could be causing this? Or is there a way anyone knows to check on sleep/wake status without using Teslamate so I could at least verify what they are saying? |
You can ask Tesla for the logs or try another third-party service. TeslaScope and TeslaFi all allow a trial period (I believe).
Of course they are going to say it is sleeping properly. It is an easy out for them. But fundamentally, TeslaMate is designed in a way to let your car sleep. It pings a non-waking API endpoint to check the state. If your Tesla is asleep or falling asleep, TeslaMate does not ping the car in a waking matter. TeslaMate will let your Tesla fall asleep. And continues to check that non-waking API endpoint. Only when the car returns an "online" status, will TeslaMate ping the polling (interactive) API endpoint.
Do you have TeslaMate set to require your car locked to sleep? And then configured your Tesla to remain unlocked at home? |
I asked them, I doubt they'll give them to me. When I pushed them further on the issue they responded by saying "In regards to your sleep/wake concern, the details we have provided thus far have been provided as a goodwill gesture. Tesla is not responsible for how the vehicle reacts with 3rd party equipment or non-Tesla applications. From our diagnosis, your vehicle is operating as designed. We will not continue running diagnosis for concerns that are caused by 3rd party equipment/Apps." Which is basically telling me to go pound sound. I will try TeslaFi, to see if i get the same results. Thanks for the suggestion.
I have no about that TeslaMate configuration. Where would I check? My car is always locked at home, it has lock on walkaway on. I park in an apartment complex. I have no wifi near by. |
It would be in your settings for TeslaMate. But if you lock on walkaway on, that should be effect the sleep pattern. Stating you are in an apartment complex, do you have Sentry Mode running 24/7? Do you park in a garage and thus, connectivity is poor? |
Thanks, I checked and streaming api is enabled. That's what I want, right? No, sentry mode is not running usually (when it does it is always online, no cycling). |
The Steaming API is not the setting, it is the "Sleep Requirements". But if your car is always locked, that setting does not matter. That setting is more an issue if you park in a garage and leave the car unlocked, if this setting is turned off, TeslaMate will not allow the car to sleep. Kind of running up against a wall here. Not really sure what else to tell you. What I can state, with high confidence, is that TeslaMate will not alter the sleep pattern. There is ample evidence of this - both my Model S that have use TeslaMate sleep well. Seven plus hours. So if the software is the same across our installations, why can one sleep and not the other? The software is not configured differently. It points back to the car. |
What I was hoping to find out, is if my log I provided is normal. Does yours look like mine? |
I was asking about the log files, see how i copied and pasted my log at the top? |
Ah. Sorry. Yes and no. I have timeout errors:
But I have the sleeping logs:
Been a while since I have seen an Edit: worth saying that I am grabbing at thin air here and speculating. Totally not a Tesla service expert. |
I thought offline and asleep are interchangeable with regards to MCU2 cars? |
No idea. |
Here's a query to check for sleep more than an hour. Curious if anyone can even confirm that there S?X has slept more than say 2 hours, or 3 hours? Nobody has really posted optimal data on the S/X sleep pattern so maybe what I am seeing is normal and what everyone else is seeing? SELECT * |
Hit the drop down for "time Series" and choose "Table" |
Same error. If I take the query line by line, the first time I insert a |
Sorry. I accidentally posted the wrong, non working version Try this... SELECT * Adjust the 180 as needed |
351 number of rows. With 180 left in the query. 20 rows with it adjusted to 500. |
Well no idea if that's a lot or a little. Depends on the dates and when. Are they recent? Way more than me. Only had a few instances |
Timeline is through the life of the car, so dating back to November 2021. The numbers seem 'normal' to me. Car is awake for 30-45 minutes, sleeps for anywhere from six to eight hours. Wakes, checks the mothership, goes back to sleep. The only difference is if I walk past the car with my iPhone / phone key and the car unlocks. Then the car wakes up. But then the pattern starts over. Assuming I did it get in and drive. |
I'm having same issue but I suspect it's not teslamate. I have my Tesla account connected to evPulse which is required by my utility for cheaper electric rates for charging. When I disconnected them it sleeps fine. Once I connect it starts waking up every 15 mins. I contacted them and they mentioned their logs show that they are letting the car sleep as much as it wants to. They aren't pinging every 15 mins. They asked me to disconnect teslamate and keep evPulse connected and check. They said a possible reason could be when multiple third party apps are connected that should cause the car to behave weirdly. Not sure if I should believe them but wondering if you also have multiple third party apps connected. |
So it is not sleeping for an hour before waking? |
without evPulse connected, the car sleeps normally and doesn't wake up unless it needs to which is around night once and before charging. with evPulse connected, the car sleeps every 10 minutes and it wakes up every 15 minutes. so it sleeps for 5 minutes or so. Also, the 15 minute wake up is on mark like 10 AM, 10:15, 10:30, 10:45, 11:00 etc (ignoring the seconds) |
What model and year do you have? |
My situation: I tried to diagnose it a bit more. Now, { So the state is 'online' for a maximum of 2 minutes and is offline again. So the problem is, that any connected application, just like Teslamate, sees the online state and immediately starts polling the car and then tries to let the car sleep again. Now I don't know what really can be a fix, other than that Teslamate maybe ignore the online state within <120 seconds and if possible only for the cars <2018 with the MCU upgrade, because I think it only affects those cars. Other note, if I manually trigger the API to awake the car, you hear the click and the car stays in the state online for more than 120 seconds (about 3 minutes). |
@sb1089 - I don’t think this is just specific to MCU2 but more likely a combination of MCU and HW version. I posted an update few months back with my findings on how my Model 3 RWD from Jul 18 is behaving. - #2556 (comment) Model 3 has MCU2 and HW 2.5 (no FSD just Enhanced Autopilot) Your input gave me another reason to do some testing since your post last Monday. Sequence & findings: Late Monday 8/8 - stopped Teslamate, surprised to see that car is not connected for hours on end on widget - longest was 13 hours with best tracking I can keep Late Tuesday 8/9 - Teslamate started, place a digital handheld voice recorder in car to check when contractors open and close - recorded sound matches when car was awakened as reflected in teslamate online state Thursday 8/11 - Teslamate running, happened to check router logs (ASUSwrt Merlin) and find that car reconnects to WiFi every 45-55 minutes interval and matched the digital recording and online state in Teslamate overview. Such test was conducted by @fetzu, I believe. Mid day Thursday 8/11 - stopped Teslamate and wake up stopped, confirmed from no recorded sound on digital recorder and no WiFi connection made in last 16 hours. I have not used postman as you did but hopefully above tests can give developer a reason to see if something can be changed. I would love to see more datapoints from owners with similar hardware configuration for their cars, if they can chime in with their findings. I believe that you may be up to something with 120 second online check that you highlight above. Unfortunately this thread has been closed and there is no input from developer @adriankumpf for a while so am not so sure if this will be looked at or changed, if warranted based on past few posts. |
@cleanev Sort of random question, do you use another app called Tessie, or any other monitoring apps? |
@M1kep - I only have TeslaMate that leverages API for the longest time since I found this project in May 20. |
Nice findings @cleanev ! I hope it's possible to do anything such as setting the 'online' time before Teslamate starts polling. An option or something (online for x seconds before start polling) so I can check what works the best for my configuration. |
I've created an entry as idea in the Discussions forum: Hopefully this is something that is possible to implement. |
Hi @pratik5705, I have actually the same issue. Mine is a 2021 Model 3. |
I did some digging around and when I turned off my phone, there were no wakes from the car. I think it is tied to the phone app constantly waking up the car. I have iPhone with the latest Tesla app. I do not use any third party apps. I had the tesla widget and tried removing it but that did not help either. Turning off bluetooth doesnt help either. |
@sb1089 - I guess this may never be solved, this is free and open source software that needs specific tweaks for some of us that are using HW2.5, I surmise. However, not being a developer I have no way to create a PR and try to make respective changes to see how this goes. In the interim here is what I requested (begged will be more apt) my friend to use TeslaMate & after much pursuation he agreed to remove his Model Y (Jul 20) from cloud based provider and allow me to track his car for last 2 days, the results were strange where his car also started to wake up. Not sure if this makes any sense but looking at this for 2 days it looks like even Model Y with HW 3.0 acts exactly like my 3 with HW 2.5. Can one of the developers help me and @sb1089 with suggested option? I am willing to use development branch to see if @sb1089’s suggestion curtails this constant wake & sleep cycle. Thank you in advance. |
Can you try these instead of turning off your phone?
I guess the results will be the same as powering down your iphone! |
This makes me think it’s less so of TeslaMate and more so a Tesla issue. It is ironic that lots of people start reporting issues around a software update. I would not put it past Tesla to introduce a software bug that breaks the sleep pattern. |
I can confirm that it is definitely on the Tesla side. Removed the tesla app from my phone, and car slept like a baby, lol. |
As you can read in the help section of the Tessie app there is a bug in the Tesla app version 4.12 released on August 29 that continuously wakes up the car. In fact I've been having the wake-up problem since August 30. The problem unfortunately persists even with the recent update. Tonight I uninstalled the app and the car has been sleeping like a baby for 9 hours without interruption ... Is it possible that this problem is only reported by a few people? |
@andreadam82 - haven’t used Tessie & current version of Tesla app on iOS is 4.13.1. Force closing, log out of app & uninstalling haven’t worked. Contractors will energize after 46-56 minutes on the dot. Seems there are too many variables and many may not be reporting this as I am guessing that there will be a subset of Tesla users that may be using any external apps that leverages API. Not sure where this will end up & hopeful that Tesla is not messing with 3rd party API calls. |
Updating to the newest tesla app on iphone has fixed my issue |
@pratik5705 - what version are you on? |
It seems like I'm having similar issue with my MX from late 2018. In my case it all started around 17th of august this year where I suddenly see that my car keeps awake between 2 and 3 hours and then wakes up for around 1,5 hours and then repeats the same pattern since then. I already changed my password. I'm only using teslamate as a third party app. Didn't change any settings om my X and everything is still configured the right way. Any idears? I'm already running the latest IOS Tesla app 4.13.1 and that didn't change the behaviour on my X. |
Same here. With the 14.3.1 app version the issue seems resolved. In the last 2 night the car sleep for 12 hours without interruptions |
What car do you have? I have read on other forums that the version fixed the issue for at least te m3 but I have a mx and there the issue still persists. |
I have an M3LR21. In your case the car goes to offline status and not in asleep mode ... so i supposed that the issue is not the same |
Do you mean |
Yes sorry, I was wrong ... I meant 4.13.1 ;-) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
What happened?
My car constantly goes in to a state of sleep and awake. This started as soon as I started using Teslamate, which is as soon as I got my car. From what I can see this has been happening from day 1, which goes all the way back to May of 2021. It shows variations in the cylce such as 57 minutes off, 7 minutes on, then maybe 54 minutes off, 10 minutes on, and so and so on, varying. Nowadays, it seems to be a constant 58 minutes asleep, 14 minutes on, or very close to that.
I know this has been previously reported but from what I can see all previous issues are closed, and I still need help with this. I followed all the tips on the this github including resetting password, removing any widgets, sentry/overheat off, etc, etc. nothing seems to work. It seems like it is Teslamate causing the issue but I don't really know how to check if it is happening or not if I turn teslamate off.
Expected Behavior
I expect the car to sleep for hours at a time and only wake sparingly.
Steps To Reproduce
No response
Relevant log output
Screenshots
Additional data
No response
Type of installation
Docker
Version
1.26.1
The text was updated successfully, but these errors were encountered: