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
73.83k stars 30.91k forks source link

Error when sending POI / bmw_connected_drive #127272

Open mibo-wb-gh opened 1 month ago

mibo-wb-gh commented 1 month ago

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 bmw_connected_drive-mbosch@upg.de 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[bot] commented 1 month ago

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 commented 1 month ago

Any ideas ?

rikroe commented 4 weeks ago

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

mibo-wb-gh commented 4 weeks ago

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

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