Core: bmw_connected_drive: ligths_parking is unavailable

Created on 5 Mar 2020  ·  12Comments  ·  Source: home-assistant/core

The problem

Environment

  • Home Assistant release with the issue: 0.106.5
  • Last working Home Assistant release (if known):
  • Operating environment (Hass.io/Docker/Windows/etc.): hass.io on Pi
  • Integration causing this issue: bmw_connected_drive
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/bmw_connected_drive/

Problem-relevant configuration.yaml

bmw_connected_drive:
  name: 
    username: !secret bmw_username
    password: !secret bmw_password
    region: "rest_of_world"

Traceback/Error logs

2020-03-05 21:49:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 328, in _async_write_ha_state
    attr.update(self.device_state_attributes or {})
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 122, in device_state_attributes
    result["lights_parking"] = vehicle_state.parking_lights.value
AttributeError: 'NoneType' object has no attribute 'value'
![Screenshot 2020-03-05 at 22 23 45](https://user-images.githubusercontent.com/36936293/76026920-ff53b900-5f2f-11ea-87a4-dc528e52b0d1.png)

Additional information

bmw_connected_drive

All 12 comments

Screenshot 2020-03-05 at 22 27 05

Hey there @gerard33, mind taking a look at this issue as its been labeled with a integration (bmw_connected_drive) you are listed as a codeowner for? Thanks!

This is the first time I see this. Usually lights_parking is always available.
Can you run a fingerprint from here so I can check the details of your car?

For my X1 the parking light is available. From what year is your car?

Here you are the fingerprint results.
My car is brad new made in 2020.

Thank You for your support.

Gerard wrote on 10/03/2020 00:18:
>

This is the first time I see this. Usually |lights_parking| is always
available.
Can you run a |fingerprint| from here
https://github.com/bimmerconnected/bimmer_connected#data-contributions
so I can check the details of your car?

For my X1 the parking light is available. From what year is your car?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/core/issues/32515?email_source=notifications&email_token=AIZZUZORBZ4L752LAIOQTRDRGV2MDA5CNFSM4LCS3MY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOJNCQI#issuecomment-596824385,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIZZUZM26DUW6BGKUI5VJQ3RGV2MDANCNFSM4LCS3MYQ.

The fingerprint results are not attached. Can you please add these to a new issue here -> https://github.com/bimmerconnected/bimmer_connected/issues

Just done!
Hope all is right

Thank You

Gerard wrote on 10/03/2020 00:18:
>

This is the first time I see this. Usually |lights_parking| is always
available.
Can you run a |fingerprint| from here
https://github.com/bimmerconnected/bimmer_connected#data-contributions
so I can check the details of your car?

For my X1 the parking light is available. From what year is your car?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/core/issues/32515?email_source=notifications&email_token=AIZZUZORBZ4L752LAIOQTRDRGV2MDA5CNFSM4LCS3MY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOJNCQI#issuecomment-596824385,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIZZUZM26DUW6BGKUI5VJQ3RGV2MDANCNFSM4LCS3MYQ.

--
Sent from Postbox https://www.postbox-inc.com

I have the same issue with lights_parking on a brand new BMW X5 45e

Also with "door_lock_state": vehicle_state.door_lock_state.value,
AttributeError: 'NoneType' object has no attribute 'value'

This worked perfectly for the BMW 330e and BMW i3

@nilsvdb82 the issue with the door_lock_state is solved in HA 0.107.
The issue with lights_parking is on our list to fix.

Hi there!

Any update about the fix?

Is not a big issue, just a bit annoying :)

Thanks for the work!

It’s still on our list to fix in the bimmerconnected library.

We want to add another check to the function that determines which sensors are available and can be added to HA. That way the parking_lights will only be added when the data is available.

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 now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

The issue is still there.

Thanks

Was this page helpful?
0 / 5 - 0 ratings