-
Notifications
You must be signed in to change notification settings - Fork 768
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
MQTT values for active_route_* are not clearing #3748
Comments
This no doubt is because we don't publish nil values: This easy solution would be to add this values to the But am uneasy doing this, because publishing a nil values tells mqtt to drop the value from the retain database. Which is probably undesirable for this data. i.e. when you subscribe you would get an instant message if there is an active route, but if there is no route you would not receive a message to say so until the value changes. |
This is expected behavior as no new values got propagated if no new navigation starts. |
@JakobLichterfeld While looking at this from a Home Assistant perspective, I was hoping to use that field active_route_destination to help set off some things at home.. But if that field doesnt get reset to blank or null and the car is not actively navigating anywhere, then the data for it is not useful. The "active" prefix is not accurate then |
Active navigation is directly propagated from the Tesla API. changing the original behavior within Teslamate would be bad practice as it would change the meaning and would break interoperability and interchangeably. |
I think there might be a misunderstanding here. The Tesla API (most likely) does the right thing. The problem is we are getting nil values from Tesla, which we then interpret as "unknown". We then refuse to publish these to mqtt because - why would we want to publish unknown data? But here nil doesn't mean unknown, it means there is no active route. At least that is my general feeling. Would be good to have some evidence to back this up. If I am right, the quick fix solution is to add all of those attributes to If I remember, will try to get the dump of the data from Tesla with and without navigation active. (something I have been wanting to do for a while actually). |
The values when the car is not driving and with no route set:
I replaced the lat/long values as I don't want to publish the location of my house. But I note that the active route lat/lon is different to the other two values, my guess is that might be the last place we navigated to. Will continue. |
My testing seems to show that the car always provides these attributes, even when not navigating:
When not navigating, these have values from the last navigation. Wonder if this is a Tesla bug. Doesn't matter though, we have to deal with it. And we have no ability to report this to Tesla either. This is 2016 Model S upgraded to MCU2. My suspicion is if I reboot the MCU these values might disappear (not tested). When navigating, we get additional values. These values only appear when the car is navigating, they don't appear (not even as nil values) when car is not navigating.
While not strictly related to this issue, the question occurred previously concerning Getting back to this issue, we can't clear the top 3 values, because these values are showing up in the API. But maybe something can be done about the other values. |
Even if I wish it was not, my assumption about how the Tesla API handles this was correct.
|
Would it make sense to also publish out the values for the other
active_route_*** to MQTT so that I can at least use values? Or would those
be something that will not be reported cleanly ?
…On Wed, Mar 27, 2024 at 1:51 AM JakobLichterfeld ***@***.***> wrote:
Getting back to this issue, we can't clear the top 3 values, because these
values are showing up in the API.
Even if I wish it was not, my assumption about how the Tesla API handles
this was correct.
—
Reply to this email directly, view it on GitHub
<#3748 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGNXO5CREAIBBCGLAZJSXZLY2JM4VAVCNFSM6AAAAABE6IDCNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGA3TKMJYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. This is WIP because it hasn't had any testing yet, and is likely to fail even the CI tests :-) Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. This is WIP because it hasn't had any testing yet, and is likely to fail even the CI tests :-) Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. This is WIP because it hasn't had any testing yet, and is likely to fail even the CI tests :-) Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
See my PR, #3789. |
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
This refactors the existing code to make it more maintainable. Nil values are published as "nil" string. This ensures that they will get published, and ensures that MQTT doesn't drop the retained data. Fixes #3748
Great - thanks for looking into it. |
Is there an existing issue for this?
What happened?
The active route MQTT values are not resetting after arriving to destination. I navigated to the store - it showed the values correctly. But then when I drove home without navigation - the values remained from the store.
Expected Behavior
It should clear out your values once you're parked.
Steps To Reproduce
No response
Relevant log output
Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
1.28.4
The text was updated successfully, but these errors were encountered: