Coder Social home page Coder Social logo

Comments (8)

agm15 avatar agm15 commented on May 26, 2024 1

Hello,

You can close the issue, I've submitted everything to huawei support, pictures of the permissions and everything and they have fixed the issue, i'm now receiving information correctly!

Thanks a lot!

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 26, 2024

First of all: the warning in the logs is just so you know you have hit the rate limiting.
Are you 100% sure there is no other integration of anything else using your credentials?
Feel free to send your OpenAPI credentials to me (fusionsolar [at] Verkoyen.eu)

from homeassistant-fusionsolar.

agm15 avatar agm15 commented on May 26, 2024

Yeah, im sure, the credentials were sent to me this morning by the company that did the installation of the pannels and I've only requested it for using it on your plugin.

I've just emailed the info, thanks in advance!!

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 26, 2024

@agm15 the problem is that there is no data returned for your residential inverter.

In essence the following call:

curl --location --request POST 'https://eu5.fusionsolar.huawei.com/thirdData/getDevRealKpi' \
--header 'XSRF-TOKEN: x-REDACTED' \
--header 'Content-Type: application/json' \
--data-raw '{
  "devIds": "XXXX",
  "devTypeId": "38"
}'

Return the following data:

{
    "data": [
        {
            "devId": XXXX,
            "dataItemMap": {}
        }
    ],
    "failCode": 0,
    "message": null,
    "params": {
        "currentTime": 1673365478224,
        "devIds": "XXXX",
        "devTypeId": 38
    },
    "success": true
}

Where it should look like:

{
    "data": [
        {
            "devId": XXX,
            "dataItemMap": {
                "pv1_u": 0.0,
                "pv2_u": 0.0,
                "pv3_u": 0.0,
                "pv4_u": 0.0,
                "pv5_u": 0.0,
                "pv6_u": 0.0,
                "power_factor": 0.0,
                "pv7_u": 0.0,
                "pv8_u": 0.0,
                "inverter_state": 40960.0,
                "open_time": 1673336086000,
                "a_i": 0.0,
                "total_cap": 6177.93,
                "c_i": 0.0,
                "b_i": 0.0,
                "mppt_3_cap": 0.0,
                "a_u": 0.0,
                "reactive_power": 0.0,
                "c_u": 0.0,
                "temperature": 24.9,
                "b_u": 0.0,
                "bc_u": 0.0,
                "elec_freq": 0.0,
                "mppt_4_cap": 0.0,
                "efficiency": 0.0,
                "day_cap": 0.72,
                "mppt_power": 0.0,
                "run_state": 1,
                "close_time": 1673364384000,
                "mppt_1_cap": 6376.98,
                "pv1_i": 0.0,
                "pv2_i": 0.0,
                "pv3_i": 0.0,
                "pv4_i": 0.0,
                "mppt_2_cap": 0.0,
                "active_power": 0.0,
                "pv5_i": 0.0,
                "ca_u": 0.0,
                "ab_u": 0.0,
                "pv6_i": 0.0,
                "pv7_i": 0.0,
                "pv8_i": 0.0
            }
        }
    ],
    "failCode": 0,
    "message": null,
    "params": {
        "currentTime": 1673365696381,
        "devIds": "XXXX",
        "devTypeId": 38
    },
    "success": true
}

I don't have installer access, but from what I found in docs and screenshots I think you should ask your installer to enable "Real-time plant data"

Cursor_and_2022FSV8001_Create_API_account_on_FusionSolar_Server__only_Company_Admin____pdf

from homeassistant-fusionsolar.

agm15 avatar agm15 commented on May 26, 2024

from homeassistant-fusionsolar.

agm15 avatar agm15 commented on May 26, 2024

I've talked to the company and they are assuring me that all the checks for the permisions are enabled and that I should have access to everything.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 26, 2024

I rechecked, and the data is still empty. There is not much I can do at this point.
I think it would be best to contact Fusion Solar Support [email protected] and explain them that there is no data returned for your residential inverter (1000000034152004) when calling the /thirdData/getDevRealKpi endpoint.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on May 26, 2024

Thx for the update!
Glad it has been resolved

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.