Integrate FusionSolar into you Home Assistant.
FusionSolar has a kiosk mode. When this kiosk mode is enabled we can access data about our plants through a JSON REST api.
{% if installed %} {% if version_installed.replace("v", "").replace(".","") | int < 300 %}
Your current configuration should be updated. Before v3.0.0 we used the kiosk id. Starting with v3.0.0 the full kiosk url should be used:
sensor:
- platform: fusion_solar_kiosk
kiosks:
- url: "REPLACE THIS WITH THE KIOSK URL"
name: "A readable name for the plant"
See the "Configuration" section for more details {% endif %} {% endif %}
In kiosk mode the "realtime" data is not really realtime, it is cached at FusionSolars end for 30 minutes.
If you need more accurate information you can use Home Assistant FusionSolar OpenAPI Integration by @olibos. This integration requires an OpenAPI account.
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.
The configuration of this integration happens in a few steps:
- Sign in on the Huawei FusionSolar portal: https://eu5.fusionsolar.huawei.com/.
- Select your plant if needed.
- At the top there is a button: "Kiosk", click it.
- An overlay will open, and you need to enable the kiosk view by enabling the toggle.
- Note down the url that is shown.
Open your configuration.yaml
, add the code below:
sensor:
- platform: fusion_solar_kiosk
kiosks:
- url: "REPLACE THIS WITH THE KIOSK URL"
name: "A readable name for the plant"
I strongly advise to store the unique urls as a secret. The kiosk url is public, so anybody with the link can access your data. Be careful when sharing this.
More information on secrets: Storing secrets.
You can configure multiple plants:
sensor:
- platform: fusion_solar_kiosk
kiosks:
- url: "KIOSK URL XXXXX"
name: "A readable name for plant XXXXX"
- url: "KIOSK URL YYYYY"
name: "A readable name for plant YYYYY"