Skip to content

heinemannj/huawei_solar_hems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huawei Solar HEMS

Home Assistent (HA) Home Energy Management System (HEMS)

License GitHub Last Commit GitHub Stars GitHub Watchers GitHub Forks

Community Forum

Huawei Solar HEMS assist you with a set of custom HA template sensors, automations and dashboards also referred to as the "Huawei Solar HEMS package".

Dashboard: Level 1
Dashboard-1

These custom sensors and automations calculate all the power and energy flows of your Huawei FusionSolar PV installation based on the sensors, services and information provided by Huawei Solar Integration, because this custom HA integration ONLY exposes the information and functions made available by Huawei Solar inverters directly via one of its Modbus interfaces, which is far away from enhanced requirements of an HEMS.

All custom template sensors and automations are available as HA package files and all dashboards are available through HA YAML dashboards for an easy Installation. For an overview and a more detailed description of the custom sensors and automations, please refer to the Huawei Solar HEMS Wiki Pages.

Table of Contents

Additional HEMS features

Forecasting

Dashboard: Level 2
Dashboard-2
  • PV Solar forecasts by the usage of Solcast integration
    This custom component integrates the Solcast Hobby PV Forecast API into HA.
  • EPEX Spot electricity price forecasts by the usage of EPEXSpot integration
    This custom component adds electricity prices from the European Power EXchange ( EPEX Spot ) into HA.
    It covers Austria, Belgium, Denmark, Germany, Finland, France, Luxembourg, the Netherlands, Norway, Poland, Sweden, the United Kingdom and Switzerland at this time.
  • Hourly Weather forecasts
  • House load and batteries SOC forecasts by the usage of the EMHASS Add-on
    EMHASS (Energy Management for Home Assistant) is an optimization tool designed for residential households connected to HA.

Monitoring

Dashboard: Level 3
Dashboard-3

Tibber prices

Dashboard: Level 4-1 - Today & tomorrow Dashboard: Level 4-2 - Past
Dashboard-4-1 Dashboard-4-2

Tibber consumption and costs

Dashboard: Level 4-3-1 - Hourly Dashboard: Level 4-3-2 - Daily
Dashboard-4-3-1 Dashboard-4-3-2
Dashboard: Level 4-3-3 - Monthly Dashboard: Level 4-3-4 - Yearly
Dashboard-4-3-3 Dashboard-4-3-4

Installation

For installation follow all prerequisites and installation guides strictly!

  • Step by step.

System setup

House load

Power distribution
- AC-Back-up fuses
- Surge protection
- Residual Current Devices (RCD)
- Circuit breaker
Energy measurement
- Smart meter
  HUAWEI Smart Power Sensor DTSU666-H 100A/50mA
- Tibber Pulse
- Three-phase energy meters
  Shelly Pro 3EM - 120A

FusionSolar PV

The provided custom sensors are based on a setup with one Huawei Smart Energy Controller (Inverter) and multiple Huawei Smart String ESS (Batteries):

  • Inverter Type: SUN2000-6KTL-M1 (High Current)
  • Inverter Firmware version: V100R001C00SPC165
  • MBUS Firmware version: V100R001C00SPC335
  • PV1: 3900 Wp
  • PV2: 3900 Wp
  • sDongle Type: sDongleA-05 (WiFi / Ethernet)
  • sDongle Connectivitiy: Ethernet
  • sDongle Firmware: V200R022C10SPC118
  • Power meter present: three phase
  • Optimizers Present: No
  • Battery-1: LUNA2000-5KW-C0
  • Battery-2: LUNA2000-10KW-C0
  • Batteries Firmware version: V100R002C00SPC624
  • Connect to the inverter: Via the SUN200-<serial_no> WiFi

This is reflected throughout this README and the Huawei Solar HEMS Wiki Pages.

Notes

  • Alpha version at this stage.
    • Especially the persistant template sensors and all automations should be validated by the community.
    • Not for HA beginners, but hopefully our community will help ...
  • In my environment Wife Acceptance Factor (WAF) is strongly increasing - Save your money to have more fun ;-)
  • Save our earth and protect next generations of our children!
  • Think long term and do the needful.

Already opened Discussion: Huawei Solar Discussion > Dashboard #355

  • Private information is stored in secrets.yaml (not uploaded).

FAQ - Troubleshooting

At this time just a copy of Huawei Solar FAQ.
To be adjusted in short time ;-)


Q: Why do I get the error "Connection succeeded, but failed to read from inverter." while setting up this integration?

A: While the integration was able to setup the initial connection to the Huawei Inverter, it did not respond to any queries in time. This is either caused by using an invalid slave ID (typically 0 or 1, try both or ask your installer if unsure), or because an other device established a connection with the inverter, causing the integration to lose it's connection


Q: Will the FusionSolar App still work when using this integration?

A: The inverter will still send it's data to the Huawei cloud, and you will still be able to see live statistics from your installation in the FusionSolar App. However, if you are using this integration via the network, and you (or your installer) need to use the 'Device commissioning' feature of the app, you will need to disable this integration.


Q: The "Daily Yield" value reported does not match with the value from FusionSolar?

A: The "Daily Yield" reported by the inverter is the output yield of the inverter, and not the input from your solar panels. It therefore includes the yield from discharging the battery, but misses the yield used to charge the battery. FusionSolar computes the "Yield" by combining the values from "Daily Yield", "Battery Day Charge" and "Battery Day Discharge". More information on the Wiki ...


Q: I can't get this integration to work. What am I doing wrong?

A: First make sure that 'Modbus TCP' access is enabled in the settings of your inverter. Next, check if the port is correct. Some inverters use port 6607 instead of 502 (this can change for you after a firmware update!). If that doesn't work for you, and you intend to write an issue, make sure you have the relevant logs included. For this integration, you can enable all relevant logs by including the following lines in your configuration.yaml:

logger:
  logs:
    pymodbus: debug # only include this if you're having connectivity issues
    huawei_solar: debug
    homeassistant.components.huawei_solar: debug

By providing logs directly when creating the issue, you will likely get help much faster.