jgriss / FusionSolarPy

A basic client to the Huawei Fusion Solar cloud interface for solar power plants
MIT License
30 stars 12 forks source link

Add support for optimizer info API #9

Closed Miouge1 closed 1 year ago

Miouge1 commented 1 year ago

Add support for optimizer info API

Below is an example of the output of the README.md example

[...]
Optimizer-1: Connected Operating: 25.4 W / 30.9 V / 0.85 A / 13.2 C
[...]
jgriss commented 1 year ago

Hi @Miouge1

Thanks a lot! This looks great!

One question: is the inverter_id the same as the plant_id or does it require a different one?

Miouge1 commented 1 year ago

plant_id and inverted_id are different, I suppose someone could have several inverter in the same plant. The inverted_id has the plant_id as parentDn.

jgriss commented 1 year ago

Do you know how to get the inverter ids for a specific plant?

Miouge1 commented 1 year ago

Yes, it can be obtained with client.get_device_ids(). I've updated README.md to show an example usage of get_device_ids