thomluther / anker-solix-api

Python library for Anker Solix API
MIT License
38 stars 12 forks source link

Code simplifications and new operational mode #53

Closed thomluther closed 4 months ago

thomluther commented 4 months ago

Created Enums for device types and device param. Also figured out that there is another operation mode while reporting status 3 Bypass: When Charge priority is enabled, 0W will go home but solarbank reports Bypass mode. Introduced new mode for charge_priority which is set when 3 is reported but 0W go to home (no bypass power)

Mapped set home load power acordingly to system and device details. The api reports the settings in different fields, depending on the system constellation with 1 or 2 solarbanks. This is now properly mapped for each device (hopefully)