Comments (15)
Please increase the logging level as described in the readme. Otherwise I cannot diagnose the problem
from huawei_solar.
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.
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.
@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
from huawei_solar.
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):
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):
Maybe fusion solar is doing some sort of "adaptation" of the values...
Thanks!!!
from huawei_solar.
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.
Carlo-Gavazzi-EM112-Installation-and-Use-Instructions-EN.pdf
em111_em112_et112_cp.pdf
EM112DS.pdf
from huawei_solar.
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.
My Grid Active Power values for last 2 days:
Yes, my meter is reporting the exported energy as negative.
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.
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.
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.
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.
@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).
from huawei_solar.
it works!
Thanks, @wlcrs. I'll leave this open to allow you to create the pull request for this change if you want.
from huawei_solar.
from huawei_solar.
I've released v1.0.2 which bumps the huawei-solar lib to 2.0.2
from huawei_solar.
Related Issues (20)
- Set max power to grid (register 40125) HOT 2
- [Bug]: v1.40A2 - State Class and Device Class Differs Between Batteries HOT 1
- [Bug]: 1.4.0a3 - Battery Sensors HOT 5
- Add support for Reconfiguration HOT 1
- [Feature Request]: Battery operating mode Time usage: set times in Home Assistant HOT 1
- [Bug]: Failed Setup using 2024.4.b0 HOT 5
- [Feature Request]: Power value for DC strings HOT 1
- [Feature Request]: 1.4.0a# - Inverter's' Total Sensors HOT 5
- [Bug]: polling frequence in the latest beta release HOT 10
- [Bug]: Static values HOT 3
- [Bug]: 1.4.0a3 - sensor.power_meter_reactive_energy - state class total_increasing, but its state is negative HOT 2
- [Bug]: Integration fails to load HOT 4
- Verbindung geht immer wieder verloren
- [Bug]: Inverter Input Power and Active Power always the same HOT 1
- [Bug]: Unable to setup Huawei Solar integration HOT 3
- [Bug]: Inverter Daily Yield Erroneous values between two inverter polls (30s) HOT 6
- [Bug]: v1.4.0a3 - Delete Plant and Huawei Service Removed (and won't reinstall) HOT 2
- [Bug]: Grid-Connected, Grid connection with derating due to power rationing HOT 16
- [Feature Request]: Entities with editable entries HOT 8
- [Bug]: Error between Battery and Batteries Charge/Discharge Power sensor values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huawei_solar.