Integration Solar inverter huawei 2000L

well… i have mine as above, and i have all sorted

i can see every consume, energy etc and also the total amount from grid, battery and PV

Okay, then it has something to do with the fact that i have 2 cascading inverters connected in the group sensor.inverter_active_power_group to get the overall power of both inverters. Do you have more than one inverter?

i have on

but i guess you just have to do a plus

something like this i guess (guessing a lot !!)

{% set meter_power1 = states(‘sensor.power_meter_active_power-1’) | float %}
{% set meter_power2 = states(‘sensor.power_meter_active_power-2’) | float %}
{% set inverter_power1 = states(‘sensor.inverter_active_power-1’) | float %}
{% set inverter_power2 = states(‘sensor.inverter_active_power-2’) | float %}
{{ ((inverter_power1 + inverter_power2) - meter_power ) | float(0) }}

I’m experiencing the same problem as described here since lastest HA core and superviser update


Any idea how to investiguate?

All you need is this, also the ‘max(0,’ will stop it showing negative values on the inverter(s) active_power, which they normally show each inverter with a battery discharging at night.

########### Start: Power Meter - Calculates the Active Power being consumed in the house from grid, inveters & battery ###########

  # Provides the calculated current load, in Watts, of the house including power being drawn from solar, battery & grid.
  - sensor:
    - name: "House Consumption - Power"
      unique_id: house_consumption_power
      unit_of_measurement: "W"
      icon: mdi:home-lightning-bolt-outline
      device_class: "power"
      state_class: measurement
      state: >-
        {% set inverters_power = states('sensor.inverters_active_power') | float(default=0) %}
        {% set power_meter_power = states('sensor.power_meter_active_power') | float(default=0) %}

        {{ max(0, (inverters_power - power_meter_power)) }}

      availability: >-
        {{  states('sensor.inverters_active_power') | is_number
        and states('sensor.power_meter_active_power') | is_number }}

@cailloup this thread and the WLCRS issues area have the same people looking at it. Just subscribe to the issue you’ve flagged for updates. You’ll also see that the WCLRS dev has already replied pointing out its a ‘clash’ between two integrations both using python, but expecting/compatible with different versions of it.

1 Like

Here my Card:

type: vertical-stack
cards:

  • square: false
    type: grid
    cards:
    • type: gauge
      entity: sensor.consumed_total_power
      name: Consumo
      max: 12
      severity:
      green: 0
      yellow: 0.001
      red: 0
    • type: gauge
      entity: sensor.solar_plants_total_power
      max: 10
      name: Producción Solar
      severity:
      green: 0.001
      yellow: 0
      red: 0
      needle: false
      min: 0
      columns: 2
  • square: false
    type: grid
    cards:
    • type: gauge
      entity: sensor.inverter_input_power
      max: 11.65
      name: Huawei
    • type: gauge
      entity: sensor.ecu_current_power
      max: 1200
      name: µAPSystems
      columns: 2
  • square: false
    type: grid
    cards:
    • type: gauge
      entity: sensor.battery_energy
      needle: true
      severity:
      green: 1
      yellow: 0.001
      red: 0
      name: Batería
      min: 0
      max: 10
    • type: gauge
      entity: sensor.battery_charge_discharge_power
      name: Descarga / Carga
      max: 5
      needle: true
      severity:
      green: 0.01
      yellow: -5000
      red: 0
      min: -5
      columns: 2
  • type: horizontal-stack
    cards:
    • square: false
      type: grid
      cards:
      • type: picture
        image: local/homeassistant_images/Tarifas_Electricidad_HA_LV.png
        columns: 1
    • type: gauge
      entity: sensor.power_meter_active_power
      name: Octopus Energy
      min: -9.9
      max: 9.9
      needle: true
      severity:
      green: 0.001
      yellow: -9.9
      red: 0
  • square: false
    type: grid
    cards:
    • show_name: true
      show_icon: false
      type: button
      entity: sensor.consumed_energy_daily
      name: Consum.
      show_state: true
      icon_height: 20px
      icon: mdi:transmission-tower-import
      theme: Fluent Orange
    • show_name: true
      show_icon: false
      type: button
      entity: sensor.solar_energy_daily
      name: Prod. Solar
      show_state: true
      icon_height: 20px
      icon: mdi:transmission-tower-import
      theme: Fluent Blue
    • show_name: true
      show_icon: false
      type: button
      entity: sensor.power_meter_consumption_daily
      show_state: true
      name: Import.
      icon: mdi:home
      icon_height: 20px
      theme: Fluent Red
    • show_name: true
      show_icon: false
      type: button
      entity: sensor.power_meter_exported_daily
      name: Export.
      show_state: true
      icon_height: 20px
      icon: mdi:transmission-tower-import
      theme: Fluent Green
      columns: 4

And thanks a lot for your information about Huawei Values :1st_place_medal::clap::beers:

Is there any possibility to see the grid voltage as entity or attribute? I upgraded the firmware of my 5KTL-M0 inverter to SPC130 today and as far as I remember in SCP117 the grid voltage was shown as entity.

Hi @Ribe

Could you please edit your post above, as you’ve pasted the code as normal text, meaning the formating and some characters has been broken.

When posting yaml on this site, you need to enter 3 of the ` (the key usually to the left of the 1 key, or the key that also has the tilde ~ character on it) before you paste the code, then close the code section by placing another 3 of them at the end of the code.

This gives this code section appearance in which format / character / indents etc are maintained, e.g.:

Yaml needs to be pasted between  ```  to start and ``` at the end, to maintain formattng etc.
1 Like

Just had to upgrade to beta version 1.4.0a1. to solve the issue :slight_smile:
Thanks

Does anyone know where we should report notes about the 1.4.0 alpha? Doesn’t make sense in the forum, does it? So as a GitHub issue?

I’m asking because I noticed that my battery device is listed as a duplicate device in the alpha.

mine stopped working

had to rollback

type: vertical-stack
cards:
  - square: false
    type: grid
    cards:
      - type: gauge
        entity: sensor.consumed_total_power
        name: Consumo
        max: 12
        severity:
          green: 0
          yellow: 0.001
          red: 0
      - type: gauge
        entity: sensor.solar_plants_total_power
        max: 10
        name: Producción Solar
        severity:
          green: 0.001
          yellow: 0
          red: 0
        needle: false
        min: 0
    columns: 2
  - square: false
    type: grid
    cards:
      - type: gauge
        entity: sensor.inverter_input_power
        max: 11.65
        name: Huawei
      - type: gauge
        entity: sensor.ecu_current_power
        max: 1200
        name: µAPSystems
    columns: 2
  - square: false
    type: grid
    cards:
      - type: gauge
        entity: sensor.battery_energy
        needle: true
        severity:
          green: 1
          yellow: 0.001
          red: 0
        name: Batería
        min: 0
        max: 10
      - type: gauge
        entity: sensor.battery_charge_discharge_power
        name: Descarga / Carga
        max: 5
        needle: true
        severity:
          green: 0.01
          yellow: -5000
          red: 0
        min: -5
    columns: 2
  - type: horizontal-stack
    cards:
      - square: false
        type: grid
        cards:
          - type: picture
            image: local/homeassistant_images/Tarifas_Electricidad_HA_LV.png
        columns: 1
      - type: gauge
        entity: sensor.power_meter_active_power
        name: Octopus Energy
        min: -9.9
        max: 9.9
        needle: true
        severity:
          green: 0.001
          yellow: -9.9
          red: 0
  - square: false
    type: grid
    cards:
      - show_name: true
        show_icon: false
        type: button
        entity: sensor.consumed_energy_daily
        name: Consum.
        show_state: true
        icon_height: 20px
        icon: mdi:transmission-tower-import
        theme: Fluent Orange
      - show_name: true
        show_icon: false
        type: button
        entity: sensor.solar_energy_daily
        name: Prod. Solar
        show_state: true
        icon_height: 20px
        icon: mdi:transmission-tower-import
        theme: Fluent Blue
      - show_name: true
        show_icon: false
        type: button
        entity: sensor.power_meter_consumption_daily
        show_state: true
        name: Import.
        icon: mdi:home
        icon_height: 20px
        theme: Fluent Red
      - show_name: true
        show_icon: false
        type: button
        entity: sensor.power_meter_exported_daily
        name: Export.
        show_state: true
        icon_height: 20px
        icon: mdi:transmission-tower-import
        theme: Fluent Green
    columns: 4

Did you get this fixed?

Hi,
sorry if I missed this, but I haven’t been around for quite some time since the integration was working perfectly. Today, I updated to 1.3.3 and Home Assistant 2024.4.3 and now the power meter active power value is not updated anymore. What could be the problem?
Any hints are highly appreciated!
Thanks and regards!

UPDATE: I installed v1.3.4beta and now it seems to work again. I guess it was the pymodbus problem also reported on Github.

hello

just notice a new “field”

what is “Inverter Power deratin” ?

I’ve recently installed a grid balancing computer from a company in Sweden that takes over my battery Luna2000 and uses it for balancing the power grid, instead of using the battery yourself. The benefit being you get paid to do so.

Now that the balancing computer is installed and is communicating via Modbus TCP with the SDongle, I can no longer establish a connection to HA via @wlcrs integration Huawei Solar.

Is it not possible to establish two different connections via Modbus to the SDongle? Even if one of them is only for monitoring?

@Millet
It’s mentioned in a number of places / threads, that the connections via sDongle / AP can only support a single modbus connection.

The SmartLogger 3000A supports multiple connections, but is NOT supported by the WLCRS integration. It appears that the forthcoming EMMA device ‘MAY’ be able to support multiple connections, however it hasn’t been released widely yet and is still pending if/when WLCRS will add support for it.

Hello, I read with interest your discussion.
In my case the input power is different from the active power, but the battery is fully charge.
My electricity provider did not signed my contract yet, so I’m not allowed to export to the grid. There’s a feature in my huawei inverter for this specific case. There is a limitation in the production not to export.

→ So my assumption is (I put aside the battery) that the import power reflect the real production from the panels, while the active power is a reduced ammount of power calculated to match the house consumption without any excess production that may be exported.
This is just my assumption and I’d be very interested to know your opinion about it.

Actually the reason why I’m interested in understandinv the inverter input power meaning is that I need to know the “real” production of my panels. I guess it would be the inverter active power + exported power. But as I don’t export and my inverter automaticaly limits the production, it’s not so easy to find.
→ any idea would be more than welcome.

Thank you for rhe clarification. I read that it supports only one connection type, but I could not find anything about two of the same type.

I’m assuming the smart logger takes up the same spot as the SDongle or can they be run at the same time?

Is there is any -other- way to get the inverter data into HA?