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

Location data not updating in HA via MQTT (or at least that's what it seems to be) #986

Closed
2 tasks done
aatifk opened this issue Jun 3, 2024 · 14 comments · Fixed by #989
Closed
2 tasks done

Location data not updating in HA via MQTT (or at least that's what it seems to be) #986

aatifk opened this issue Jun 3, 2024 · 14 comments · Fixed by #989
Labels
bug Something isn't working car For items that relate to Tesla vehicles good first issue Good for newcomers help wanted Extra attention is needed triage New issues raised that need initial attention

Comments

@aatifk
Copy link

aatifk commented Jun 3, 2024

Is there an existing issue for this?

  • I have searched both the existing open issues & recently closed issues and did not find a duplicate of this issue.

I have read about the Fleet API and understand I may need to use it

  • I understand issues relating to read only commands will be auto closed if not using the Fleet API.

Version of the Tesla component

v3.22.0

Version of the Tesla car software

2024.14.9

Model

Model Y

Current Behavior

It seems that location data is not being polled via Teslamate MQTT. I moved by Teslamate installation to a new machine and Teslamate itself is running fine. I can see my broker receiving data via MQTT. The Tesla Custom Integration used to be perfectly fine before this migration, but now it seems it won't pick any data via MQTT (specifically, location). I've even completely removed the integration and reinstalled it but nothing seems to work. The integration IS receiving data via MQTT - I can see that in debug logs - but it doesn't update the Home Assistant sensors based on that. My Garage Door was automated to open and close based on the location sensors and that takes almost 60 seconds now versus the almost instant behavior that I had come to expect. I'm completely confused here.

Expected Behavior

Sensors, especially location, should update in almost real-time because it's being polled via MQTT

Debug logs

Log File attached because it's too large to paste

Anything else?

home-assistant_tesla_custom_2024-06-03T00-46-18.324Z.log

Log file attached because it's too large to paste otherwise

@aatifk aatifk added car For items that relate to Tesla vehicles triage New issues raised that need initial attention labels Jun 3, 2024
@slovenec88
Copy link

I can observe the same issue. Reverting one version back to .21 fixed it.

@DBestman
Copy link

DBestman commented Jun 3, 2024

I see the same behavior in .22. The sensors (location, for example) update every minute or so instead of instantaneously.
Version .21 doesn't show this behavior.

@aatifk
Copy link
Author

aatifk commented Jun 3, 2024

Glad to know that I wasn’t the only one! I thought I broke something when I migrated teslamate and couldn’t figure out what I did wrong.

FWIW, I can confirm as well that downgrading to .21 fixed everything for me as well.

@dandelionclock
Copy link
Contributor

I wonder if it has anything to do with 954

@knobunc
Copy link

knobunc commented Jun 4, 2024

What do people have the polling interval set to when they are using teslamate? I can't tell if it is polling twice... or if the direct poll is disabled when the data is coming from mqtt. Thanks

@DBestman
Copy link

DBestman commented Jun 4, 2024

My polling interval is set at a very high interval - 1 month: 2592000

@top-gun
Copy link

top-gun commented Jun 6, 2024

I believe there are two issues with .22:

  • Retrieving location data from the car, not via MQTT
  • MQTT data is only imported at long intervals, not instant when it's published via MQTT. With .21, data updates immediately once Teslamate gets new states via the streaming API. It seems that MQTT data is imported at the same interval that would be used for the Tesla API.

Both issues are gone after a downgrade to .21. In .21, I can set my polling interval to high numbers like 3600s, and any change like different charging power propagates to Home Assistant within seconds.

@aatifk
Copy link
Author

aatifk commented Jun 7, 2024

@alandtse it seems this is a legit issue if you can perhaps take a look...

@alandtse alandtse added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jun 7, 2024
@MattJeanes
Copy link

Yeah I also have a super high poll time and use MQTT to push data from TeslaMate and it appears to just get stuck on the latest version, reverting back to .21 is fine.

@alandtse
Copy link
Owner

alandtse commented Jun 8, 2024

@bdraco I believe #954 may have broken updates coming from MQTT (primarily via teslamate). If you have time to take a quick look I'd appreciate it. No worries if you don't have this setup. Thanks!

@bdraco
Copy link
Contributor

bdraco commented Jun 8, 2024

I don't use the mqtt/teslamate code, but I'll take a look and see if there is anything obvious

@bdraco
Copy link
Contributor

bdraco commented Jun 8, 2024

I think #989 should solve it, but I don't have a way to test it

@bdraco
Copy link
Contributor

bdraco commented Jun 8, 2024

There are also some tasks being created that could be simple callbacks

#990

@top-gun
Copy link

top-gun commented Jun 10, 2024

Thanks a lot, with 3.22.1, getting data via MQTT works as well as with 3.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working car For items that relate to Tesla vehicles good first issue Good for newcomers help wanted Extra attention is needed triage New issues raised that need initial attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants