audi_connect_ha icon indicating copy to clipboard operation
audi_connect_ha copied to clipboard

Values are set or not set by current API call only

Open brettonw opened this issue 2 years ago • 2 comments

When I'm charging my car, the remainingChargeTime API call returns a value with that key. If the charging is done, the API call does not return a value, and the entity sets it to None by default. The dashboard says, "Unknown". Unfortunately this also triggers a notification I have for "unknown" entities because HA drops entities a lot and sometimes I have to take an action. I can add this value to the ignore list, but...

The entity should recognize that if a value was set before, and is not set now, it's not an unsupported key and should not be None, but should instead be something like "n/a", because on investigation the remainingChargeTime has no meaning unless the vehicle is plugged in. I suspect there are other cases like this, so a bit of hysteresis on all values is probably a good idea.

brettonw avatar May 22 '22 22:05 brettonw

It also appears that if a "required" value is not returned or the integration fails to read it, the integration fails to update entirely and won't update again until all the values are returned. Maybe harden it a bit so that all retuend values are updated, and a missing value doesn't kill the whole integration.

brettonw avatar Jun 18 '22 17:06 brettonw

This issue is stale because it has been open for 60 days with no activity. Are you still experiencing this issue?

github-actions[bot] avatar Mar 16 '24 02:03 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Apr 07 '24 02:04 github-actions[bot]