Git Product home page Git Product logo

Comments (15)

wlcrs avatar wlcrs commented on June 18, 2024

Please increase the logging level as described in the readme. Otherwise I cannot diagnose the problem

from huawei_solar.

netcraker01 avatar netcraker01 commented on June 18, 2024

Same problem here ... I make a new template sensor to invert negative value (abs) and use it on energy panel , but it is a temporaly fix... I think that is a issue derivated from energy meter coneccted to Huawei that send values on negative , i´m not sure of this.

from huawei_solar.

wlcrs avatar wlcrs commented on June 18, 2024

I will need extensive logging to verify the values sent by the inverter. Please add the following to your configuration.yaml , restart HA and let it run for a few minutes:

logger:
  logs:
    huawei_solar: debug
    homeassistant.components.huawei_solar: debug

Other questions:

  • what is reported in FusionSolar?
  • is the clamp of the power meter correctly attached around the wiring in your electrical cabinet? Verify the direction of the arrow on the clamp. Also verify how the blue/white wires are attached to the power meter.

In my case one clamp was mounted in the wrong direction and another clamp was connected wrong to the power meter. So I don't trust installers to always do the correct thing.

from huawei_solar.

yousaf465 avatar yousaf465 commented on June 18, 2024

@djwmarcx open fusion app click on your name open statistics from button and scroll down and take a screenshot. Post here. If your green and red curves are separate, Your clamp might be fine .

these are my values during nighttime
image

from huawei_solar.

djwmarcx avatar djwmarcx commented on June 18, 2024

@wlcrs wlcrs

Please increase the logging level as described in the readme. Otherwise I cannot diagnose the problem

I have updated the original issue with the only logs I have (repeated a bunch of times)

My metering device is a Carlo Gavazzi EM112 (More information here). I'm not using clamps.

The Fusion Solar app is working fine since the first day, I've never noticed anything weird (isn't, right? O_O):
image

Checking the manual for my meter I confirmed that my numbers are indeed shown on the meter screen as they should (In the correct sign values, not reversed):

image

Maybe fusion solar is doing some sort of "adaptation" of the values...

Thanks!!!

from huawei_solar.

netcraker01 avatar netcraker01 commented on June 18, 2024

Hello I attach a log Im using same meter that @djwmarcx
About questions:
1: On Fusion Solar all is ok , and values are positive
2: I have a Energy meter Carlo Gavazzi EM112, is a compact modbus RTU Energy meter conected to Inverter, have no isusues with Wires, have a connector to Neutral wire and it is working in a correct way. I attach Datasheet and Modbus registers.

image

Carlo-Gavazzi-EM112-Installation-and-Use-Instructions-EN.pdf
em111_em112_et112_cp.pdf
EM112DS.pdf

from huawei_solar.

wlcrs avatar wlcrs commented on June 18, 2024

Grid Active Power being negative at night is consistent with what my inverter reports: this value is positive when I export electricity to the grid during the day, and negative when I draw electricity from the grid at night. Do you also observe this behavior, or do I misunderstand it?

As I understand from the manual your power meter also reports the exported energy with a negative value (the red arrow you draw points to it). This seems to be passed on as-is by the inverter.

The modbus definitions of the power meter are not relevant as this is internal to the inverter, and not exposed to the outside world.

from huawei_solar.

djwmarcx avatar djwmarcx commented on June 18, 2024

My Grid Active Power values for last 2 days:
image

Yes, my meter is reporting the exported energy as negative.
image

I guess the problem is that the inverter is passing the meter information as-is to the Modbus, while the fusion solar is aware of this "negative" value situation, fixing it internally during runtime. This can explain why the Fusion Solar app works fine but the integration is reporting it as negative.

The value we are getting it's correct but negative. Since a negative value won't ever work in the energy dashboard, Can we just apply an ABS function to the value? That will ensure work in both cases.

from huawei_solar.

peaceduck avatar peaceduck commented on June 18, 2024

Edited: Read further below. This post can be useable if you want a "real-time" view of the consumption. Use grid_exported and grid_consumption, as @wlcrs writes below for the energy-dashboard.

The thing is, we "need" the active power to be both negative and positive, for other reasons. You do not want to put that into the energy dashboard as-is.
I would recommend that you define 2 template-sensors, and use them. Mine looks like this:

 - name: ”imported electricity”
    unit_of_measurement: "W"
    device_class: power
    state_class: measurement
    state: >-
      {{  -min(0, states('sensor.grid_active_power') | float(0)) }}
  - name: ”Exported ”electricity
    unit_of_measurement: "W"
    device_class: power
    state_class: measurement
    state: >-
      {{ max(0, states('sensor.grid_active_power') | float(0)) }}

With those, the energy-dashboard works perfectly!

from huawei_solar.

wlcrs avatar wlcrs commented on June 18, 2024

I advice against using grid_active_power in the Energy Dashboard as this results in less accurate results: HA will use a Riemann sum to deduce the total energy consumption/export. Use the accumulative values like grid_exported and grid_consumption instead, as these can be used without conversion (and loss of accuracy) by HA.

More info: https://www.home-assistant.io/docs/energy/faq/#energy-vs-power

from huawei_solar.

peaceduck avatar peaceduck commented on June 18, 2024

My bad... I have given my sensors the same display-name, so I picked the wrong ones when writing here... Of course you should use what @wlcrs writes. Those are also what I have there. They work perfect. The ones I wrote above can be used if you want to display real-time usage of electricity. Sorry for the confusion!

from huawei_solar.

wlcrs avatar wlcrs commented on June 18, 2024

@djwmarcx @netcraker01 Can you please test the fix I implemented in the huawei-solar library version 2.0.2rc1 ?

Change the value in requirements from /config/custom_components/huawei_solar/manifest.json to:

huawei-solar==2.0.2rc1

You might need to restart your HA twice before the download succeeds (due to how PyPI caches it's downloads).

image

from huawei_solar.

djwmarcx avatar djwmarcx commented on June 18, 2024

it works!

image

Thanks, @wlcrs. I'll leave this open to allow you to create the pull request for this change if you want.

from huawei_solar.

netcraker01 avatar netcraker01 commented on June 18, 2024

Works perfect!!
image

from huawei_solar.

wlcrs avatar wlcrs commented on June 18, 2024

I've released v1.0.2 which bumps the huawei-solar lib to 2.0.2

from huawei_solar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.