huawei_solar: [Bug]: Loosing the battery configuration during the night

Describe the issue

Lately, I’ve been losing the battery controls during the night. Reloading the integration or restarting HA makes everything work.

Battery sensors, Inverter, and SmartMeter are not lost and work perfectly. It is only the controls that become unavilable.

image

Bescribe your Huawei Solar Setup

Inverter Type: SUN2000-10KTL-M1SUN2000-12 Inverter Firmware version: V100R001C00SPC153 SDongle present: yes Power meter present: three phase Battery: LUNA2000 10kWh Battery Firmware version: V100R002C00SPC119

How do you connect to the inverter?

Via the SDongle, wired connection

Upload your Diagnostics File

config_entry-huawei_solar-b6969ff22160fb972ea75303bbc34452.json.txt

Upload your relevant debug logs

I dont have any debug logs yet.

Please confirm the following:

  • The problem is still present in the latest release of this integration.
  • I did not find an existing issue describing this problem.
  • I did upload the diagnostics-file that I could retrieve from the ‘Devices & Services Page’
  • I did upload the relevant debug logs (via ‘Enable Debug Logging’-feature or by manually configuring HA logging)

About this issue

  • Original URL
  • State: open
  • Created 9 months ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I tried to update both the inverter, battery, and dongle to the latest version from FusionSolar. The issue still persists. I’m wondering if it happens when the battery is empty (5%) and goes into hibernation.

This is my lame mitigation so far, simply to restart HA so it works again.

alias: Huawei Solar - Restart HA if the battery is unavailable
description: ""
trigger:
  - platform: time_pattern
    minutes: /5
condition:
  - condition: template
    value_template: "{{ states.switch.battery_charge_from_grid.state == 'unavailable' }}"
  - condition: template
    value_template: >-
      {{ ((as_timestamp(now()) - as_timestamp(states('sensor.uptime'))) / 60) |
      round(0) > 30 }}
action:
  - service: homeassistant.restart
    data: {}
mode: single