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

publish center_display_state to mqtt #3813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Atrox
Copy link

@Atrox Atrox commented Apr 3, 2024

I would love to have the ability to track the center_display_state from a published topic in mqtt.

BTW: Does something speak against publishing a vehicle_state topic with the full tesla json response? I would love to have something like that.

Copy link

netlify bot commented Apr 3, 2024

Deploy Preview for teslamate ready!

Name Link
🔨 Latest commit 346bdbb
🔍 Latest deploy log https://app.netlify.com/sites/teslamate/deploys/6665fa7708ef19000822148d
😎 Deploy Preview https://deploy-preview-3813--teslamate.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brianmay
Copy link
Collaborator

brianmay commented Apr 4, 2024

Might be best to merge #3789 first...

@JakobLichterfeld JakobLichterfeld added the enhancement New feature or request label Apr 4, 2024
@Atrox Atrox force-pushed the feature/mqtt-center-display-state branch from 822f2d6 to 918510e Compare April 5, 2024 08:45
@JakobLichterfeld
Copy link
Collaborator

please update your branch

@Atrox Atrox force-pushed the feature/mqtt-center-display-state branch from 918510e to 346bdbb Compare June 9, 2024 18:54
@Atrox
Copy link
Author

Atrox commented Jun 9, 2024

done :)

@kolaCZek
Copy link

Yes!!! I want this too! I just wanted to create PR. :D Thank you @Atrox !

@kolaCZek
Copy link

I tried to run the build from your branch (image ghcr.io/teslamate-org/teslamate:pr-3813) and it doesn't seem to work properly. The center_display_state is not published to mqtt...

@Atrox
Copy link
Author

Atrox commented Jun 11, 2024

I'm running the branch as well and it works for me. Please note that TeslaMate only refetches the vehicle data every x seconds (as far as I can tell, if the vehicle is parked and sentry mode is on, its about every 60 seconds?) if your car is streaming the other info.

To test this, keep sentry mode open on your phone and wait until the topic changes. My center_display_state changes accordingly.

@brianmay
Copy link
Collaborator

Possible a dumb question, but exactly what is center_display_state?

@kolaCZek
Copy link

kolaCZek commented Jun 11, 2024

Possible a dumb question, but exactly what is center_display_state?

https://tesla-api.timdorr.com/vehicle/state/vehiclestate ;)

Screenshot 2024-06-11 at 11 33 35

@kolaCZek
Copy link

I'm running the branch as well and it works for me. Please note that TeslaMate only refetches the vehicle data every x seconds (as far as I can tell, if the vehicle is parked and sentry mode is on, its about every 60 seconds?) if your car is streaming the other info.

To test this, keep sentry mode open on your phone and wait until the topic changes. My center_display_state changes accordingly.

I tried letting it run for 10 minutes and still nothing. After another wait with the sentry open, I got a 'daily data limit reached' message on my cell phone. :D I'll try to debug it somehow. Obviously it should work.

@Atrox
Copy link
Author

Atrox commented Jun 11, 2024

I tried letting it run for 10 minutes and still nothing. After another wait with the sentry open, I got a 'daily data limit reached' message on my cell phone. :D I'll try to debug it somehow. Obviously it should work.

Oh okay, 10 minutes is way too long. That is odd. Maybe someone more familiar with teslamate can check my PR and see if I forgot an edge case where the topic doesn't get published?

Possible a dumb question, but exactly what is center_display_state?

I use it to get notified when sentry mode is triggered (which should be a tesla native feature...). Sadly because of the teslamate refetch delay it is not really accurate and I had to build myself a small companion app that fetches the vehicle data more often and handles the sentry notifications.

@cwanja
Copy link
Collaborator

cwanja commented Jun 11, 2024

Does this update TeslaMate's homepage view as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants