thomluther / anker-solix-api

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

Explore usage of new device_attrs endpoints #107

Open thomluther opened 1 week ago

thomluther commented 1 week ago

There are new endpoint with Solarbank 2 support that needs to be explored for capability and usability:

print(json.dumps((await myapi.request("post", "power_service/v1/app/device/get_device_attrs",json={"device_sn": deviceSn, "attributes": []})), indent=2))
print(json.dumps((await myapi.request("post", "power_service/v1/app/device/set_device_attrs",json={"device_sn": deviceSn, "attributes": []})), indent=2))

The get_device endpoint is included now in the export_system tool, but it is not clear which keywords can/should be specified for the mandatory attributes list.