audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
238 stars 97 forks source link

feat: Sensor: Charging Complete Time #335

Closed coreywillwhat closed 7 months ago

coreywillwhat commented 7 months ago

this PR is dependent upon PR #334

New Sensor - Charging Complete Time

sensor.charging_complete_time device_class: timestamp

This sensor displays the estimated completion timestamp for vehicle charging, as suggested in issue #318. This sensor aims to provide users with an accurate prediction of when their car's charging process will be completed, enhancing the overall user experience and providing valuable information for planning purposes.

Implementation Details

Considerations

Rationale

This enhancement addresses a specific need/gap identified in issue #318, where the user expressed a desire for a calculated point in time, vs the existing remaining_charge_time which only displays an int of minutes. The gap in the previous sensor is that if the vehicle isn't updated, or "active polling" is turned off or has a large interval, the int minutes will not update regularly and for instance, could remain as 80 minutes even if the charging has already stopped.

This again, reduces the need for frequent active polling.

cdnninja commented 7 months ago

Happy to review once merge conflicts are resolved but it should be good.

coreywillwhat commented 7 months ago

Happy to review once merge conflicts are resolved but it should be good.

This is all set!