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

Traccar Integration: extra keys not allowed #84540

Closed
WarmChocolateCake opened this issue Dec 25, 2022 · 11 comments · Fixed by #103319
Closed

Traccar Integration: extra keys not allowed #84540

WarmChocolateCake opened this issue Dec 25, 2022 · 11 comments · Fixed by #103319
Assignees

Comments

@WarmChocolateCake
Copy link

The problem

Traccar Android Web Client has been updated to version 6.18
This introduces an extra parameter in the HTTP traffic, which the HA integration does not handle

Found the following (redacted) messages via wireshark capture

Using curl this can be verified with the ver 6.17 message:
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" "http://homeassistantURL:8123/api/webhook/LONGAPIKEY?id=Traccar&timestamp=1671214794&lat=00.00&lon=00.00&speed=00.00&bearing=00.00&altitude=00.00&accuracy=0.0&batt=81.0"

And with the ver 6.18 message (see last parameter):
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" "http://homeassistantURL:8123/api/webhook/LONGAPIKEY?id=Traccar&timestamp=1671214794&lat=00.00&lon=00.00&speed=00.00&bearing=00.00&altitude=00.00&accuracy=0.0&batt=81.0&charge=true"
Which returns extra keys not allowed and HA Traccar Integration no longer updates.

Downgrading the Android App to 6.17 works correctly.

Could someone update the HA Integration inline with the Traccar app?

Many thanks for this - it's a great help

What version of Home Assistant Core has the issue?

Home Assistant 2022.12.8 Supervisor 2022.11.2 Operating System 9.4 Frontend 20221213.1 - latest

What was the last working version of Home Assistant Core?

Home Assistant 2022.12.8 Supervisor 2022.11.2 Operating System 9.4 Frontend 20221213.1 - latest

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Traccar

Link to integration documentation on our website

https://www.home-assistant.io/integrations/traccar/

Diagnostics information

No diagnostics appear during the failure - I presume HA webhook intercepts this before Traccar sees it???

Example YAML snippet

No response

Anything in the logs that might be useful for us?

See above

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of traccar can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign traccar Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


traccar documentation
traccar source
(message by IssueLinks)

@WarmChocolateCake
Copy link
Author

Just to update this.
Traccar Webclient is now at v7.0, which continues the new data format that is not recognised by HA.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@WarmChocolateCake
Copy link
Author

Can confirm that we're running:

Home Assistant 2023.5.3
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

And this is still an issue.

Thanks

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@WarmChocolateCake
Copy link
Author

Whilst Traccar Client has not been updated since February, I can confirm that we're running:

Home Assistant 2023.8.3
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230802.1 - latest

Thanks

@ildar170975
Copy link

@ludeeus
In #103319 a "charging" attribute is noticed.
So far the Traccar integration does not give users a "battery charging" attribute:

image

But the Traccar itself does show this attribute in Web manager (as well as in iOS/Win Traccar manager):

image

Is it possible somehow to get this flag in HA?
Shall I open an issue here in Core?

@ludeeus
Copy link
Member

ludeeus commented Nov 11, 2023

A feature request on the forums would be the place for that.

@ildar170975
Copy link

@ludeeus
Fine, but are your latest changes with "charging" somehow related to the "battery charging" data in Traccar itself?

@ludeeus
Copy link
Member

ludeeus commented Nov 11, 2023

Not at all.

@ildar170975
Copy link

@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants