thomluther / anker-solix-api

Python library for Anker Solix API
MIT License
36 stars 10 forks source link

Update current presets in api cache from cached solarbank schedule with site refreshes #90

Closed thomluther closed 2 months ago

thomluther commented 3 months ago

The Api cache dictionaries contain presets to represent the active parameters for the current solarbank schedule timeslot. When time is progressing and the next slot starts, the preset values are not automatically updated in the device details cache, just upon next device refresh method call, which typically is less frequently. The current preset values should be synched with the cached schedule during update site method calls as well to provide better up-to-date values when used for Home Assistant sensor values.