BMW ConnectedDrive component

Can you try the latest version of the custom_component from here?

The error in your log is caused by the switches script and that is not used anymore and replaced by services which will also be part of the new HA version.

Hi,

I’m running 0.67.1, but are missing the climate, horn and lights function, can I just add the custom component? Will this over ride the HA component or do I need to change something?

@gerard33 - the component is now working with my US BMW i3!!! Let me know if there is anything specific you’d like me to test.

@gerard33 - Can you add these attributes for an i3? Works perfectly.

In HA 0.68 two things are added for BMW ConnectedDrive component:

  • climate, horn and lights are added as a service

  • a unique_id is added so you can change the name of a device in the frontend (click on the cog wheel)
    Screenshot_10

Example script for the services:

bmw_airco:
  sequence:
    - service: bmw_connected_drive.activate_air_conditioning
      data:
        vin: '<your_17_char_vin>'
bmw_horn:
  sequence:
    - service: bmw_connected_drive.sound_horn
      data:
        vin: '<your_17_char_vin>'
bmw_light:
  sequence:
    - service: bmw_connected_drive.light_flash
      data:
        vin: '<your_17_char_vin>'
bmw_refresh:
  sequence:
    - service: bmw_connected_drive.update_state

:+1:

Yes I will add these attributes via a PR to Home Assistant. I am currently in the last phase of testing these new attributes for electric/hybrid cars. Then only the applicable sensor for the car will be shown (no fuel stuff for electric cars and vice versa).

You can already test this version by using the custom component. I guess your screenshot is from the custom component as well, but it’s not the latest version. Maybe you can give the version from the link above a try.

How will that work for my car? Mine is a rex which has both gas and electric. Either you can auto detect or you can add a config to show gas, electric, or both I guess

It will work fine. It auto detecs which type of car you have.
Already saw the results of a hybrid car (and also a i3 without rex) and that works great.
Just give it a try :grinning:

Works great (thank you!!!). Any way you can add an option for “miles” instead of kilometers?

I will have a look at the unit to see if it can be determined automatically. I guess your app also shows miles by default?

Can you share a screenprint of the HA sensors so I can do some last checks if everything is showing as I expect?

My BMW iPhone app shows miles - It’s probably doing the conversion based on the region you are in.

I am really missing the fact I can’t get this on my 2016 440i BMW. I will have to replace it just to get the new NBT version :wink:

1 Like

Thanks for the screenshots.

The sensor.i3_94_rex_charging_status is missing due to a bug in my code. That has been fixed in the meanwhile. Can you download the latest version of the sensor here and try to see if that is correctly added now?

The distance in miles is available in the data we have as shown in https://github.com/m1n3rva/bimmer_connected/blob/master/test/responses/I01_REX/status.json#L19.
So let’s see if we can use the HA unit_system setting to determine what will be shown.

Edit: showing the distance in miles is WIP.
Does the app show you the remaining fuel in liters or gallons?

My 2016 F10 M5 is showing unknowing for mileage, remaining fuel, and remaining fuel range, but my 2018 740 is showing everything right.

Have you tested with an i3s as I only get remaining_fuel and remaining_range_fuel when it is a electric only car?

(I might have made a setup error as I’m not a power user)

Thank you for the work on this component btw.

Yes it’s tested with an i3. See this post for screenshots.
Make sure you download the custom component which is mentioned in this post.

Tried changing ha unit, no difference. My BMW app shows miles but this HA component shows KM.

Currently the component will always show km. It’s on our list to add the functionallity to get the units from the HA settings and use that in the component.

Awesome, thanks