thomluther / anker-solix-api

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

Add Solarbank 2 inverter channel power to device details #105

Open thomluther opened 1 week ago

thomluther commented 1 week ago

Solarbank 2 provide additional fields for each inverter channel power. They will be added to the solarbank device details.

thomluther commented 6 days ago

This was added to 2.0.0. Device details now show the power per supported solar channel. There is also an ac_output field for solarbanks that must be understood properly. Testing is needed to interprete the new fields accurately. The Solarbank monitor will now also show the power per MPPT channel for supported solarbank types

stephan-l commented 3 days ago

Is it possible that ac_output is the AC socket on the Pro version? I'll connect some devices later today to watch that value.

thomluther commented 3 days ago

That is my assumption too, would be good if you can prove it with reliable power consumer to compare the value. I plan to add the new fields only to the solarbank device cache when the model supports the field. Otherwise the HA integration will create entities that always show 0 W which is not usefull for the device. I did the same already for the solar power chanel 1-4, they are only shown when applicable to the solarbank model type. The plus version probably uses only channels 1-2 and the later normal version has no inverter included to my knowledge. The ac_power should then be added only to the pro devices since that is the only one with a socket.

thomluther commented 3 days ago

By the way, following are the new added solarbank_info fields in the scene_info for any site containing solarbanks. "ac_power": "0", "to_home_load": "0", "is_display_data": true, "solar_power_1": "0", "solar_power_2": "0", "solar_power_3": "0", "solar_power_4": "0"

The ac_power may be the power socket to be confirmed. But what is the to_home_load field? Is that used in any of your setups and what does it show? Maybe it is duplicate information, since there is already a field as used by Solarbank 1 systems: "total_output_power": "97.00", How does to_home_load relate to total_output_power for the solarbank 2? Sounds to be the same, but could also be the combination of bypass and discharge power, which was not possible for Solarbank 1?

stephan-l commented 2 days ago

I tried to replicate this but I experienced a flaw. The output is shut down at flat battery. So I had to disconnect my device before I collected data. I need to wait for recharging the battery and it a rainy day...