Git Product home page Git Product logo

Comments (6)

isottipietro avatar isottipietro commented on August 10, 2024 2

@briancmpbll

Yeah, the /ivp/ensemble/inventory endpoint does not give input/output. I calculate the Battery Energy Charged and
Discharged entities by taking the difference between the two most recent values of Total Battery Capacity. Does that give you want you need?

I suppose I can also calculate watts from the watt hours of the Battery Energy Charged/Discharged and elapsed time.

I found an endpoint exposing input/output power: https://envoy.local/ivp/ensemble/power

{
    "devices:": [
        {
            "serial_num": "xxx",
            "real_power_mw": -227000,
            "apparent_power_mva": -227000,
            "soc": 82
        },
        {
            "serial_num": "xxx",
            "real_power_mw": 0,
            "apparent_power_mva": 0,
            "soc": 14
        },
        {
            "serial_num": "xxx",
            "real_power_mw": -92000,
            "apparent_power_mva": -92000,
            "soc": 93
        },
        {
            "serial_num": "xxx",
            "real_power_mw": 0,
            "apparent_power_mva": 0,
            "soc": 8
        },
        {
            "serial_num": "xxx",
            "real_power_mw": -27000,
            "apparent_power_mva": -27000,
            "soc": 94
        },
        {
            "serial_num": "xxx",
            "real_power_mw": -88000,
            "apparent_power_mva": -88000,
            "soc": 100
        }
    ]
}

pwer is in mW
soc is the battery percentage
power_mw is negative when charging

software version on envoy is D7.6.111

from home_assistant_custom_envoy.

briancmpbll avatar briancmpbll commented on August 10, 2024

I have a system where the battery info comes in through the /ivp/ensemble/inventory endpoint and not the /production.json endpoint. I would need someone with production.json to work on this.

from home_assistant_custom_envoy.

jackson-tim avatar jackson-tim commented on August 10, 2024

I can help with data/samples/access if it'd help. Let me know what data/help needed and I'll get it to you.

from home_assistant_custom_envoy.

jackson-tim avatar jackson-tim commented on August 10, 2024

Actually looking, I see all of the individual battery information under /ivp/ensemble/inventory but I don't see the input/output power to each battery there.

from home_assistant_custom_envoy.

briancmpbll avatar briancmpbll commented on August 10, 2024

Yeah, the /ivp/ensemble/inventory endpoint does not give input/output. I calculate the Battery Energy Charged and Discharged entities by taking the difference between the two most recent values of Total Battery Capacity. Does that give you want you need?

I suppose I can also calculate watts from the watt hours of the Battery Energy Charged/Discharged and elapsed time.

from home_assistant_custom_envoy.

jackson-tim avatar jackson-tim commented on August 10, 2024

The ivp endpoint doesn't, but the production.json does (even when the rest of the stats is in the ivp endpoint).. I've just worked around it for myself by adding CTs to the battery panel and to the load panel to view input/output there.

I get wh, etc from the batteries via /ivp/ensemble/inventory just real-time is in production.json in the storage bit..

from home_assistant_custom_envoy.

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.