thomluther / anker-solix-api

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

Explore how to identify OTA upgrades for Solarbank 2 and Smartmeter #116

Open thomluther opened 2 days ago

thomluther commented 2 days ago

The original method to query available OTA updates is not working for Solarbank 2 sites.

                        await myapi.request(
                            "post",
                            api._API_ENDPOINTS["get_ota_update"],  # noqa: SLF001
                            json={"device_sn": sn, "insert_sn": ""},
                        ),

Either this is not supported for Solarbank 2 and Smartmeter device SNs, or json parameters are missing for them? Eventually also the mandatory insert_sn field must be specified for those devices?