Coder Social home page Coder Social logo

Comments (33)

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Yes, I'm using Northbound API / OpenAPI, but I don't see this values.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

There are the items that are exposed:

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Hi,

I have 4 entities, this is right, but you see the image now from fusionsolar webpage please:

imagen

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.

imagen

Thanks

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@jvcsw that is in kiosk mode?

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

@jvcsw that is in kiosk mode?

No, using Open API

#94 (comment)

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

Could you mail fusionsolar [at] Verkoyen [dot] eu your credentials? Then I will have a look, but no promises.

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

Sent.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@jvcsw do you want the statistics for lifetime or current year?
Current year is probably much easier to add.

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@jvcsw see #95
Would you be able to test this?

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

mmm... How can I test it?

A new version does not appear in Hacs.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Now there are more sensors:

imagen

imagen

Desconegut = not available

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Hi again,

I leave here some points.

The name of the these sensors should be changed with the prefix "Lifetime - "

imagen

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@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.

PacmanForever avatar PacmanForever commented on September 27, 2024

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Yes Yes, I know that the endpoints are from fusionsolar, I was just asking if there was one for each range.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Hi @tijsverkoyen,

I found these sensors without units (kWh):

imagen

imagen

Thanks

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

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.

PacmanForever avatar PacmanForever commented on September 27, 2024

Ok, you're right, I was confused.

Well, if so, these two annual and lifetime values are missing

imagen

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

Yeah, I have added all data items I found in the documentation. Probably these are calculations based on other data?

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

I don't know how.

There are these values only (lifetime, in this case):

imagen

The orange value can be calculated, but the red ones? Missing at least one value.

imagen

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

@jvcsw probably best to contact Fusion Solar Helpdesk () and ask them where these values are exposed through the API.

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

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.

tijsverkoyen avatar tijsverkoyen commented on September 27, 2024

Beter to ask them which endpoints expose these data and how they are named.

from homeassistant-fusionsolar.

PacmanForever avatar PacmanForever commented on September 27, 2024

I tried it two times with no response.

from homeassistant-fusionsolar.

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.