Integrate FusionSolar into you Home Assistant.
FusionSolar allows you to query your plants through an OpenAPI.
At this point the integration is not part of the default HACS repositories, so you will need to add this repository as a custom repository in HACS.
When this is done, just install the repository.
- Contact service team at eu_inverter_support@huawei.com to create an openAPI account for your plant.
- Get credentials
- Find your PlantID (aka station code)
Follow the documentation and especially the Step 5: Interface of Plant List Copy the stationCode.
Add the code below:
sensor:
- platform: fusion_solar_openapi
credentials:
username: !secret fusion_solar_username
password: !secret fusion_solar_password
plants:
- id: "REPLACE THIS WITH YOUR STATION CODE"
name: "A readable name for the plant"
I strongly advise to store your crendials as a secret.
More information on secrets: Storing secrets.
You can configure multiple plants:
sensor:
- platform: fusion_solar_openapi
credentials:
username: !secret fusion_solar_username
password: !secret fusion_solar_password
plants:
- id: "REPLACE THIS WITH YOUR STATION CODE XXXXX"
name: "A readable name for plant XXXXX"
- id: "REPLACE THIS WITH YOUR STATION CODE YYYYY"
name: "A readable name for plant YYYYY"
This integration is based on the awsome work of @tijsverkoyen on https://github.com/tijsverkoyen/Home-Assistant-FusionSolar-Kiosk/