BMW Connected Drive

The BMW Connected Drive integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] lets you retrieve data of your BMW or MINI vehicle from the MyBMW portal (previously BMW Connected Drive).

Note

The entities实体表示 Home Assistant 中的传感器、执行器或功能。实体用于监控物理属性或控制其他实体。实体通常是设备或服务的一部分。 [Learn more] available in Home Assistant heavily depend on your vehicle’s capabilities (model year, headunit, etc.). The integration will make sure all available car attributes are added as entities.

Prerequisites

You need to have an active MyBMW account with a connected car. For MINI vehicles, you register with MINI Connected.

For compatibility with your BMW vehicle check the bimmer_connected page on GitHub.

配置

要将 BMW Connected Drive integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:

手动配置步骤

如果上述 My 按钮不起作用,您也可以手动执行以下步骤:

  • 浏览到您的 Home Assistant 实例。

  • 转到 设置 > 设备与服务

  • 在右下角,选择 Add Integration 按钮。

  • 从列表中选择 BMW Connected Drive

  • 按照屏幕上的说明完成设置。

Username

Username of your MyBMW/MINI Connected account.

 

China: Your username/phone number must be prefixed with 86, i.e. 8612345678.

Password

Password of your MyBMW/MINI Connected account.

Region

Region of your MyBMW/MINI Connected account.

Captcha token (second step, only for North America and Rest of World)

The North America and Rest of World regions require a captcha challenge to be solved, that means you need to verify that you are not a robot.

  • After entering your login data, a second step will ask for a Captcha token and provide you with a link to a website.
  • Open this link, solve the “Are you a human?” challenge and press Submit.
  • Copy the resulting token into Home Assistant and continue.

No data of your Home Assistant instance is shared with any third party during this step.

选项

BMW Connected Drive 的选项可以通过用户界面设置,具体步骤如下:

  • 浏览到您的 Home Assistant 实例。
  • 转到 设置 > 设备与服务
  • 如果配置了多个 BMW Connected Drive 实例,请选择您想配置的实例。
  • 选择集成,然后选择 配置
Read-only

No execution of actions to the vehicle. You can only send POIs to the vehicle via notify.

Data updates

The integration will pull data from MyBMW/MINI servers at the following intervals:

Region Interval
China 5 minutes
North America 10 minutes
Rest of world 5 minutes

Note

This will only refresh data from the BMW/MINI servers and not from your car. Updates from the car to the servers typically happen:

  • for combustion engine vehicles when the car is parked and the engine is shut off.
  • for electric vehicles when the car is parked and turned off or while the car is charging.

While driving, the servers are not updated.

Defining a custom polling interval

如果您想要定义一个特定的间隔来轮询您的设备以获取数据,可以禁用默认的轮询间隔并创建自己的轮询自动化。

要添加自动化:

  1. 转到 设置 > 设备与服务,并选择您的集成。
  2. 在集成条目上,选择
    • 然后,选择 系统选项 并切换按钮以禁用轮询。 禁用轮询以获取更新
  3. 要定义您的自定义轮询间隔,创建一个自动化。
  4. 保存您的新自动化以轮询数据。

Available platforms

This integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] provides the following platforms平台是某些集成提供的构建块,可供其他集成使用。 [Learn more]:

  • Binary sensors: Doors, windows, condition based services, check control messages, parking lights, door lock state, charging status (electric cars) and connections status (electric cars).
  • Device tracker: The location of your car.
  • Lock: Control the lock of your car.
  • Sensors: Mileage, remaining range, remaining fuel, charging time remaining (electric cars), charging status (electric cars), remaining range electric (electric cars).
  • Notifications: Send Points of Interest (POI) to your car.
  • Buttons: Turn on air condition, sound the horn, flash the lights, update the vehicle location and update the state.
  • Selects: Display and control charging related settings for (PH)EVs.
  • Switches: Display and toggle settings on your car.
  • Numbers: Display and control numeric charging related settings for (PH)EVs.

Warning

Every platform except binary sensors and sensors can change the state of your vehicle. Once you change the state in Home Assistant, a command is sent to your car.

 

Important

The North America and Rest of world regions require a captcha challenge to be solved, i.e. you need to verify that you are a human. After entering your login data, a second step will ask for a Captcha token and provide you with a link to a website. Please open this link, solve the “are you a human?” challenge and press Submit. Copy the resulting token into Home Assistant and continue.

No data of your Home Assistant instance is shared with any third party during this step.

Note

For china, it is mandatory to prefix your username/phone number with 86, i.e. 8612345678.

Notifications

The BMW Connected Drive integration offers a notification action. Using this action you can send Points of Interest (POI) to your vehicle. In your vehicle, you can select this POI, and the navigation will automatically start using the POI as a destination. The name of the action is notify.bmw_connected_drive_<your_vehicle>.

Send a Point of Interest to your vehicle

...
actions:
  - action: notify.bmw_connected_drive_<your_vehicle>
    data:
      message: The name of the POI # this is shown on the iDrive dashboard
      data:
        latitude: 48.177024
        longitude: 11.559107
        street: Street name  # Optional
        city: City name  # Optional
        postal_code: Postal Code  # Optional
        country: Country  # Optional

Lock

The vehicle can be locked and unlocked via the lock integration that is created automatically for each vehicle.

Note

If your vehicle does not provide its current state (no sensor entities are created), you will not see the current lock state either. You still can lock/unlock the car.

Buttons

Buttons are used to trigger actions in your car. The buttons are automatically created and can be pressed/executed from the UI or using the button.press action. Please see the button documentation for more information.

Air conditioning

The air conditioning of the vehicle can be activated with the button.<your_vehicle>_activate_air_conditioning button.

What exactly is started here depends on the type of vehicle. It might range from just ventilation over auxiliary heating to real air conditioning. If your vehicle is equipped with auxiliary heating, only trigger this action if the vehicle is parked in a location where it is safe to use it (e.g., not in an underground parking or closed garage).

Sound the horn

The button.<your_vehicle>_sound_horn button sounds the horn of the vehicle. This option is not available in some countries (among which the UK). Use this feature responsibly, as it might annoy your neighbors.

Flash the lights

The button.<your_vehicle>_light_flash button flashes the lights of the vehicle.

Vehicle finder

The button.<your_vehicle>_find_vehicle button requests the vehicle to update the GPS location. This can be used for older vehicles which don’t automatically send the updated GPS location.

Warning

Using this action will send your Home Assistant location to BMW, as this is required by the API (like sharing your mobile phone’s location with the MyBMW app for vehicle tracking). If you do not want this, trigger the vehicle_finder action from your phone and it should update in Home Assistant within 5 minutes.

Note

On some older cars (non i3/i8 series produced before 7/2014) this action will fail in getting your vehicles position, if the vehicle is more than 1.5 km away from the location of your Home Assistant instance. This is a limitation of the BMW API.

Selects

If you have a (PH)EV, you can control the charging process through Home Assistant. The selects are created automatically depending on your vehicle’s capabilities and can be pressed/executed from the UI or using the select.select_option action. For more information, please see the select documentation.

  • Charging Mode: Vehicle can be set to IMMEDIATE_CHARGING (charge as soon as plugged in) or DELAYED_CHARGING (charge only if within charging window). It can be used to start/stop charging if the charging window is set accordingly.
  • AC Charging Limit: The maximum current a vehicle will charge with. Not available on all EVs.

Switches

If supported by your vehicle, you can display and toggle remote actions with start/stop functionality.

  • Climate: Toggle vehicle climatization. It is not possible to force it to heat or cool; the vehicle will decide on its own. If turned on, it will run for 30 minutes (as if toggled via the MyBMW app).
  • Charging: Toggle vehicle charging if plugged in. Only available on some electric vehicles.

Numbers

If you have a (PH)EV, you can control the charging process through Home Assistant. The number entities are created automatically depending on your vehicle’s capabilities and can be changed from the UI or using the number.set_value action. For more information, please see the number documentation.

  • Target SoC: Vehicle will charge until this battery level is reached. Not available on all EVs.

Troubleshooting

Problem: Invalid authentication

This can happen during initial login or after some time. Please do the following steps:

  • Log in to your MyBMW website and verify your credentials (for example, ensure that username and password are correct).
  • If you cannot login on the website, please deactivate polling (see Defining a custom polling interval) and wait for at least 24 hours.
  • Once you can login to the website, reconfigure/reauthenticate the integration via Settings > Devices & services, click and select Reconfigure.
  • Activate polling again
Problem: Captcha validation missing

Sometimes, your account can be force-logged-out. For North America and Rest of World, the recovery requires manual intervention.

Home Assistant will show a repair issue to reconfigure the integration. Follow the steps to log in again.

Known limitations

  • The entities available to Home Assistant depend on your vehicle. Even inside the same model code (for example, U11 for BMW X1) you will see different entities, depending on your specific car’s features.
  • Not all features, mostly related to charging control for (PH)EVs, are implemented. If you have a functionality in your MyBMW/MINI app that is not yet available, search for an existing feature request in the bimmer_connected discussions or create a new one.

Removing the integration

从Home Assistant中移除集成实例

  1. 前往 设置 > 设备与服务 并选择集成卡片。
  2. 从设备列表中,选择要删除的集成实例。
  3. 在条目旁边,选择三个点 菜单。然后,选择 删除

Disclaimer

This software is not affiliated with or endorsed by BMW Group.