Comments (33)
@jvcsw if you use the Open API version (not the kiosk mode) there is a lot of data available.
For the correct descriptions, see: https://github.com/tijsverkoyen/HomeAssistant-FusionSolar#what-do-all-entities-mean
from homeassistant-fusionsolar.
Yes, I'm using Northbound API / OpenAPI, but I don't see this values.
from homeassistant-fusionsolar.
There are the items that are exposed:
- https://support.huawei.com/enterprise/en/doc/EDOC1100261860/3557ba96/real-time-device-data-interface
- https://support.huawei.com/enterprise/en/doc/EDOC1100261860/4d0ba389/yearly-plant-data-interface
If you don't see them there is something wrong with your Open API configuration. Check Settings → Devices & Services → Fusion Solar → Click "xx entities" to see all the entities that are exposed.
from homeassistant-fusionsolar.
Hi,
I have 4 entities, this is right, but you see the image now from fusionsolar webpage please:
The pink circles are values that I found in your integration, Ok.
The orange circles are values that can be calculed with other previous values, Ok.
But the yellow circles are values that I don't found in the integration.
For this reason, my request was add the consumption values in the integration like total production values.
Thanks
from homeassistant-fusionsolar.
@jvcsw that is in kiosk mode?
from homeassistant-fusionsolar.
@jvcsw that is in kiosk mode?
No, using Open API
from homeassistant-fusionsolar.
Could you mail fusionsolar [at] Verkoyen [dot] eu
your credentials? Then I will have a look, but no promises.
from homeassistant-fusionsolar.
Sent.
from homeassistant-fusionsolar.
Some research, mostly for myself
Lifetime: sum of all collections in /thirdData/getKpiStationYear since the start of the station
Current year: /thirdData/getKpiStationYear, with date in the current year
Consumed = use_power
from homeassistant-fusionsolar.
@jvcsw do you want the statistics for lifetime or current year?
Current year is probably much easier to add.
from homeassistant-fusionsolar.
In my case the most important is from lifetime. It would be interesting to have it as shown in energy productions (lifetime, year, month, day).
from homeassistant-fusionsolar.
@jvcsw see #95
Would you be able to test this?
from homeassistant-fusionsolar.
mmm... How can I test it?
A new version does not appear in Hacs.
from homeassistant-fusionsolar.
You can apply the changes manually in the folder custom_components
or download https://github.com/tijsverkoyen/HomeAssistant-FusionSolar/archive/refs/heads/year-plant-data.zip and replace the existing integration with that zip.
After that restart Home Assistant.
from homeassistant-fusionsolar.
Now there are more sensors:
Desconegut = not available
from homeassistant-fusionsolar.
The ones that are not available are the ones therefor the API does not return data. Eg:
...
{
"collectTime": 1672527600000,
"stationCode": "XXXXXX",
"dataItemMap": {
"radiation_intensity": null, # Global Irradiation
"installed_capacity": 0.0,
"use_power": 1031.29,
"inverter_power": 1558.06,
"reduction_total_tree": 1.044,
"power_profit": 348.124,
"theory_power": null, # Theoretical yield
"reduction_total_coal": 0.643,
"perpower_ratio": null, # Specific energy (kWh/kWp)
"reduction_total_co2": 0.764,
"ongrid_power": 683.98,
"performance_ratio": null # Performance ratio
}
....
Can you check if the values match with what you see on your portal? There can be differences, but they should be in the same range.
from homeassistant-fusionsolar.
Yes, I have reviewed and I do not see any errors, but I have done it very quickly.
I'll check everything when I have more time.
Thank you so much
from homeassistant-fusionsolar.
Ok, let me know if you had the time to review it more in detail. If everything works fine I will create a release.
from homeassistant-fusionsolar.
Hi again,
I leave here some points.
The name of the these sensors should be changed with the prefix "Lifetime - "
The name of the previous sensors had the name of the plant and the new ones did not. Also, some have "total" and others don't.
sensor.casa_total_current_month_energy
sensor.current_year_consumption
Some values are not exact, they vary a bit because of the difference between the get and the post to the api.
When it's night and they don't change I'll check it better.
UPDATE: all values seems right.
from homeassistant-fusionsolar.
@jvcsw the names for the new entities are fixed in 3b2d3cb
Total Current Day Energy, Total Current Month Energy and Total Lifetime Energy are coming from another endpoint. The Total Current Year Energy is based on the /thirdData/getKpiStationYear
, this was added to be able to give the same information that is available in Kioskmode.
With the new entities all data from the /thirdData/getKpiStationYear
is exposed. So that is why there are some duplicate entities with other names.
I will create a release later this week. Let me know if there any issues with these changes.
And a big thanks for helping me out to improve the integration.
from homeassistant-fusionsolar.
You are welcome. Thank you for the integration.
You could eliminate the 4 sensors "- Tota *" if you make a "current month" and "current day" as you have done with the "current year". I would do it, but it's just my opinion. This way you will have more and better structured information using only one endpoint (I think).
Can there be one endpoint per month and another per day?
from homeassistant-fusionsolar.
I don't create the endpoints, these are what Huawei Fusion Solar exposes.
I will keep the entities for backwards compatibility, as probably a lot of users use them and have collected statistics for these entities.
from homeassistant-fusionsolar.
Yes Yes, I know that the endpoints are from fusionsolar, I was just asking if there was one for each range.
from homeassistant-fusionsolar.
There are, but I need to look into that. And it will also increase the number of calls that are made. And Huawei Fusion Solar is becoming more strict with the rate limiting.
I have created an issue: #96
Feel free to give your opinion.
from homeassistant-fusionsolar.
Hi @tijsverkoyen,
I found these sensors without units (kWh):
Thanks
from homeassistant-fusionsolar.
Aren't they monetary values? See https://support.huawei.com/enterprise/en/doc/EDOC1100261860/4d0ba389/yearly-plant-data-interface, where the unit of Revenue is "The currency specified in the management system", and the type is Double
.
from homeassistant-fusionsolar.
Ok, you're right, I was confused.
Well, if so, these two annual and lifetime values are missing
from homeassistant-fusionsolar.
Yeah, I have added all data items I found in the documentation. Probably these are calculations based on other data?
from homeassistant-fusionsolar.
I don't know how.
There are these values only (lifetime, in this case):
The orange value can be calculated, but the red ones? Missing at least one value.
from homeassistant-fusionsolar.
@jvcsw probably best to contact Fusion Solar Helpdesk () and ask them where these values are exposed through the API.
from homeassistant-fusionsolar.
Hi, this is the Huawei response:
_Nr1 :production minus fed to grid ( from perspective of feeding to grid )
Nr 2:consumtion minus from grid value (from perspective of purchasing from grid)
Nr 3: consumption from grid .
Best regards_
But I don't see the value of "from grid". Exist a lifetime/year sensor with "Feed-in energy" but not a with "Feed-out energy".
from homeassistant-fusionsolar.
Beter to ask them which endpoints expose these data and how they are named.
from homeassistant-fusionsolar.
I tried it two times with no response.
from homeassistant-fusionsolar.
Related Issues (20)
- Kiosk mode: SyntaxWarning: invalid escape sequence '\?' HOT 2
- Question: have you ever considered using APIs from the web portal? HOT 5
- Error requesting FusionSolarKiosk data HOT 1
- Not in coordinator data HOT 5
- Some numerical sensors do not allow to be used completely in the statistics cards HOT 6
- New entities created when updating kiosk URL HOT 1
- sensor.solar_total_lifetime_energy unknown HOT 6
- Some sensors take previous values at midnight HOT 2
- Not all kiosk sensors are present in Home assistant HOT 2
- Possible to adjust 'Active Power Adjustment'? HOT 3
- login issue with the Northbound API HOT 17
- FusionSolar Kiosk server side is not updating automatically. HOT 36
- Attribute not in coordinator data HOT 7
- Realtime Power shows 0 since 4 days HOT 1
- Received data points from Kiosk Override HA History HOT 4
- Missing sensors with Emma-A02 HOT 6
- Detected code that calls async_forward_entry_setup
- Smartguard Power Meter Sensors missing - no metering HOT 3
- OAuth2Error: The device code has expired. HOT 4
- No API configuration option HOT 5
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 homeassistant-fusionsolar.