home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.23k stars 31.18k forks source link

Speed Limit attribute no longer being passed through the HA integration in device tracker entity #114211

Closed jata1 closed 8 months ago

jata1 commented 8 months ago

The problem

I think since the last update to HA core (2024.3.3), the custom attribute - speedLimit - is no longer being passed to HA. This was working previously and has stopped working.

What version of Home Assistant Core has the issue?

2024.3.3

What was the last working version of Home Assistant Core?

2024.3.1

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Traccar Server

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Additional information

I have been testing this over the last few weeks and although speed limit is working in traccar, this information is no longer being passed to HA via the integration.

In addition, I have found other custom attribute (e.g. fixTime) are not being passed at all (and never have for me) - it shows up as unavailable in the device_tracker entity in HA.

SpeedLimit comes through as 0 even when traccar is correctly identifying exceeding speed limit events.

Here is the screenshot of my integration config.

image

image

and in traccar...

image

home-assistant[bot] commented 8 months ago

Hey there @ludeeus, mind taking a look at this issue as it has been labeled with an integration (traccar_server) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `traccar_server` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign traccar_server` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


traccar_server documentation traccar_server source (message by IssueLinks)

ludeeus commented 8 months ago

Please attach the diagnostic dump from the integration or that device.

jata1 commented 8 months ago

Please attach the diagnostic dump from the integration or that device.

Do you mean turn on debug logging for the integration and post the log file after collecting some data?

if not, then please let me know how to do diagnostic dump!

ludeeus commented 8 months ago

Here is an example of how to get that file https://www.home-assistant.io/docs/configuration/troubleshooting/#download-diagnostics

jata1 commented 8 months ago

config_entry-traccar_server-1138c81633ffbba2fa39dfd83018d828.json

jata1 commented 8 months ago

I also wanted to say that you are doing good work with this integration. So thank you!

Please let me know if you need anything more from me to help.

ludeeus commented 8 months ago

I see the problem(s).

jata1 commented 8 months ago

I see. Thanks. I must have changed some settings on the device inside traccar trying to get speedLimit working.

So now I only have speedLimit attribute setup for the server and not my devices. Is this what you mean by 'position'?

ludeeus commented 8 months ago

Yes, the "position" is the data that the server provides to the integration whenever a checkin is done. So if you now have removed it from the device inside traccar it should be working from the next restart of Home Assistant (unless traccar caches that data).

jata1 commented 8 months ago

That’s great. It seems to be working now. Thank you!

I am using this speed limit data from Traccar to monitor actual driving speed vs limit to flag when my son is driving too fast.

Is this a good approach or do you have other suggestions?

ludeeus commented 8 months ago

That I can not answer for you. Whatever gives you the information/data you need would be a good approach.

jata1 commented 8 months ago

Understood. Thanks for your help.

Is there a Traccar server topic/thread on the home assistant community that you or other SMEs monitor? I haven’t really found an active one to post questions so far

ludeeus commented 8 months ago

You should create your own topic (and preferably 1 for each question). That way it is contained to your question(s).