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

[REQ] Live update tracking #60

Closed
1 task
paswotz opened this issue Dec 7, 2024 · 6 comments · Fixed by #67
Closed
1 task

[REQ] Live update tracking #60

paswotz opened this issue Dec 7, 2024 · 6 comments · Fixed by #67
Assignees
Labels
enhancement New feature or request

Comments

@paswotz
Copy link

paswotz commented Dec 7, 2024

Is your feature request related to a problem?

  • Yes

Please describe the problem

No response

Describe the solution you'd like

Hi, is it also possible with the integration to receive live updates of identities as soon as they are changed, such as the status of doors? With another integration using MQTT, this worked without any issues.

I wanted to create a notification as soon as the doors are opened, but unfortunately, this was very delayed.

Thank you for your nice work!

Describe alternatives you've considered

No response

Additional context

No response

@paswotz paswotz added the enhancement New feature or request label Dec 7, 2024
@ad-ha
Copy link
Owner

ad-ha commented Dec 7, 2024

Hi @paswotz

Not sure how the MQTT handles that, I would have to investigate.

Right now, the way that the API responds, that does not seem very feasible, but I will look into it.

Cheers

@ad-ha
Copy link
Owner

ad-ha commented Dec 8, 2024

Hi @paswotz

I've been looking into the MQTT integration and, unless I am seeing this wrong, that MQTT does not have live update, but it uses several different update intervals considering the vehicle status.

That's something that I may work on, but it does not seem to me that the MG API supports push data, so we keep having to rely on the pull that we currently have.

You can change the update intervals, in the meanwhile, on your own instance, but it does not get close to a "real-time" data update. Keep in mind that an increased update rate may cause the 12V battery to be drained.

@ad-ha
Copy link
Owner

ad-ha commented Dec 9, 2024

I will try to mimic a bit of the actual MQTT integration, but will take me sometime as I need to redo a lot of the update process.

Let me see what I may come up with.

@paswotz
Copy link
Author

paswotz commented Dec 9, 2024

Thank you very much for your effort and hard work in fulfilling my request! I’d be really happy if this could work out soon. Donation already sent! 🚀

@ad-ha
Copy link
Owner

ad-ha commented Dec 10, 2024

@paswotz ~

I've already started with the modifications, but it will not be similar to a real-time, I am adding additional intervals to check after actions, and some additional updates after vehicle powered-off, after inactive periods and long inactive periods. It is quite similar to the MQTT, but is not near "real-time".

What I'm also doing is allowing all those intervals to be set manually on the configuration, so any user may adapt to their needs.

Let me finish the development, test the workings and I will publish the release once I get everything sorted.

@ad-ha
Copy link
Owner

ad-ha commented Dec 10, 2024

Donation already sent!

Btw, appreciate the beers 🍻

@ad-ha ad-ha self-assigned this Dec 10, 2024
@ad-ha ad-ha mentioned this issue Dec 16, 2024
@ad-ha ad-ha closed this as completed in #67 Dec 16, 2024
@ad-ha ad-ha closed this as completed in 7fd1463 Dec 16, 2024
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 a pull request may close this issue.

2 participants