thomluther / anker-solix-api

Python library for Anker Solix API
MIT License
74 stars 15 forks source link

Investigate how possible firmware upgrades can be queried and reported (and eventually performed) #46

Closed thomluther closed 4 months ago

thomluther commented 7 months ago

An outstanding firmware upgrade per device should be reflected in the api data structures if possible. Investigate api capabilitiies for OTA queries and explore mechanism to report outstanding upgrades. Explore if and how update can be performed with Api.

thomluther commented 4 months ago

Available OTA udates seem to be flagged in the get_ota_update query: "data": { "is_ota_update": false, "need_retry": false, "retry_interval": 0, "device_list": null },

When an update is available, is_ota_update will be true. There does not seem to be a query to get the latest available firmware version from the cloud api.

This query will be added to the device details method for solarbanks only and the setting will be added to the solarbank device api cache.