bimmer_connected
bimmer_connected copied to clipboard
EMISSION_CHECK not an allowed condition based service
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
Thanks for the report! This shouldn't break anything except not giving details about this specific condition based service.
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.
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).