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

Error when sending POI / bmw_connected_drive #127272

Closed
mibo-wb-gh opened this issue Oct 2, 2024 · 5 comments · Fixed by #132005
Closed

Error when sending POI / bmw_connected_drive #127272

mibo-wb-gh opened this issue Oct 2, 2024 · 5 comments · Fixed by #132005

Comments

@mibo-wb-gh
Copy link

The problem

Error when sending POI / integration: bmw_connected_drive

After deleting the location entry line / see Issue #125314

The POI send request fails with:
HTTPStatusError: Bad Request

image

YAML Code:
data:
message: HT auf / EMA inaktiv
data:
latitude: 51.500729
longitude: -0.124625
street: HT & GT auf / EMA inaktiv
title: WB HA
action: notify.bmw_connected_drive_ix_xdrive50

What version of Home Assistant Core has the issue?

2024.9.3 also with 2024.8.3

What was the last working version of Home Assistant Core?

2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BMW Connected Drive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bmw_connected_drive/#send-a-point-of-interest-to-your-vehicle

Diagnostics information

2024-10-02 10:47:48.358 ERROR (MainThread) [bimmer_connected.api.client] MyBMWAPIError due to HTTPStatusError: Bad Request -
2024-10-02 10:47:48.358 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: HTTPStatusError: Bad Request -
2024-10-02 10:47:48.359 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140302965518928] Error handling message: HTTPStatusError: Bad Request - (home_assistant_error) MIBO from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0)
2024-10-02 10:53:40.850 DEBUG (MainThread) [bimmer_connected.account] Getting vehicle list
2024-10-02 10:53:40.850 DEBUG (MainThread) [bimmer_connected.vehicle.vehicle] Getting vehicle list
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.coordinator] Finished fetching [email protected] data in 1.333 seconds (success: True)
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'lids' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'windows' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'door_lock_state' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'condition_based_services' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'check_control_messages' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'charging_status' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'connection_status' of iX xDrive50
2024-10-02 10:53:42.183 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.binary_sensor] Updating binary sensor 'is_pre_entry_climatization_enabled' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.lock] Updating lock data of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.select] Updating select 'ac_limit' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.select] Updating select 'charging_mode' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.charging_end_time' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.charging_status' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.charging_target' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.remaining_battery_percent' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'mileage' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.remaining_range_total' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'fuel_and_battery.remaining_range_electric' of iX xDrive50
2024-10-02 10:53:42.184 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'climate.activity' of iX xDrive50
2024-10-02 10:53:42.185 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'tires.front_left.current_pressure' of iX xDrive50
2024-10-02 10:53:42.185 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'tires.front_right.current_pressure' of iX xDrive50
2024-10-02 10:53:42.185 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'tires.rear_left.current_pressure' of iX xDrive50
2024-10-02 10:53:42.185 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.sensor] Updating sensor 'tires.rear_right.current_pressure' of iX xDrive50
2024-10-02 10:53:45.007 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.notify] Sending message to iX xDrive50
2024-10-02 10:53:45.188 ERROR (MainThread) [bimmer_connected.api.client] MyBMWAPIError due to HTTPStatusError: Bad Request -
2024-10-02 10:53:45.188 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: HTTPStatusError: Bad Request -
2024-10-02 10:53:45.189 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140302965518928] Error handling message: HTTPStatusError: Bad Request - (home_assistant_error) MIBO from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0)

Example YAML snippet

data:
  message: HT auf / EMA inaktiv
  data:
    latitude: 51.500729
    longitude: -0.124625
    street: HT & GT auf / EMA inaktiv
  title: WB HA
action: notify.bmw_connected_drive_ix_xdrive50

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Oct 2, 2024

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

Code owner commands

Code owners of bmw_connected_drive 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 bmw_connected_drive 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)


bmw_connected_drive documentation
bmw_connected_drive source
(message by IssueLinks)

@mibo-wb-gh
Copy link
Author

Any ideas ?

@rikroe
Copy link
Contributor

rikroe commented Oct 22, 2024

Unfortunately I haven't had the chance to look into it.

@mibo-wb-gh
Copy link
Author

Unfortunately I haven't had the chance to look into it.

If you need any further info or logs, just let me know.

@rikroe
Copy link
Contributor

rikroe commented Nov 29, 2024

Fix in library with bimmerconnected/bimmer_connected#695

@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2024
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.

2 participants