bimmer_connected icon indicating copy to clipboard operation
bimmer_connected copied to clipboard

EMISSION_CHECK not an allowed condition based service

Open pixel8383 opened this issue 1 year ago • 1 comments

Describe the issue

I am getting the following error:

'EMISSION_CHECK' not an allowed condition based service (ConditionBasedService(service_type='EMISSION_CHECK', state=<ConditionBasedServiceStatus.OK: 'OK'>, due_date=datetime.datetime(2062, 9, 1, 0, 0, tzinfo=datetime.timezone.utc), due_distance=ValueWithUnit(value=None, unit=None)))

HA tells this error appears only once during the startup process.

Expected behavior

My BMW is a Diesel mild hybrid (320d G21), I am not sure if EMISSION_CHECK is reserved to cars with different engine.

Which Home Assistant version are you using?

2022.10.x

What was the last working version of Home Assistant Core?

No response

What is your region?

Rest of world

MyBMW website

  • [X] I can still successfully login to the BMW MyBMW website and the car status is available there.
  • [X] I have MyBMW enabled for my vehicle.

Number of cars

  • [ ] I have 2 or more cars linked to the MyBMW account.
  • [ ] I have a Mini vehicle linked to my account.

Output of bimmer_connected fingerprint

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

pixel8383 avatar Oct 05 '22 21:10 pixel8383

Thanks for the report! This shouldn't break anything except not giving details about this specific condition based service.

rikroe avatar Oct 06 '22 17:10 rikroe

Yep, I do confirm nothing seems to be broken. Maybe the code could check if the function is available or not before trying to retrieve those data.

pixel8383 avatar Oct 20 '22 21:10 pixel8383

Will be fixed in HA 2022.11. Unfortunately no automatic inclusion of new values is possible due to HA code policy (technically it could be done easily).

rikroe avatar Oct 24 '22 20:10 rikroe