Coder Social home page Coder Social logo

pymyenergi's People

Contributors

chkorn avatar cjne avatar gaborherman avatar sparks1372 avatar trizmark avatar videojedi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pymyenergi's Issues

Accuracy of ct clamp figures

The ct clamp figures not be converted correctly. For example:
CT 1 Internal Load 0W
CT 2 Grid 122W
CT 3 Generation -25W
CT 4 None 0W
CT 5 None 0W
CT 6 None 0W

Supply voltage: 231.3V frequency: 49.94Hz
Power:
Grid : 115W
Generated : -25W

at that time the generation figure was 2.5kw, house consumtiption was 2.5kw and grid 0.1kw.

[Request] MyEnergi device priority

Hi,
I am creating custom sensors to correctly calculate the green energy used by the house, zappi and eddi. They essentially work backwards using House power (total - myenergi) and solar, if solar is > house power then put it into priority 1 device, if what this is greater than what is in priority 1 device then assign it to priority 2 device ....
To do this accurately going forward it would be great to have the priority of the devices. Right now I have it hardcoded.

Support libbi dual tariff

It would be great if we could support libbi dual tariff ... for example, this would allow "charge from grid now" and "sync libbi tariff from dynamic tariff (such as Octopus Intelligent)"

API is

GET https://myaccount.myenergi.com/api/EnergySetup/GetDualTariffEnergyPrices?hubId=<hubid>

returns

{
    "content": [
        {
            "days": [
                0,
                1,
                2,
                3,
                4,
                5,
                6
            ],
            "energySetupId": "47a272a0-584d-ee11-abf4-0aa731bd900a",
            "tariffs": [
                {
                    "fromMinutes": 0,
                    "id": "3fc421ff-d283-ee11-abf4-0aa731bd900a",
                    "price": 7.5,
                    "toMinutes": 300
                },
                {
                    "fromMinutes": 1410,
                    "id": "40c421ff-d283-ee11-abf4-0aa731bd900a",
                    "price": 7.5,
                    "toMinutes": 1440
                },
                {
                    "fromMinutes": 360,
                    "id": "41c421ff-d283-ee11-abf4-0aa731bd900a",
                    "price": 30.6,
                    "toMinutes": 1410
                },
                {
                    "fromMinutes": 330,
                    "id": "42c421ff-d283-ee11-abf4-0aa731bd900a",
                    "price": 30.6,
                    "toMinutes": 360
                },
                {
                    "fromMinutes": 300,
                    "id": "43c421ff-d283-ee11-abf4-0aa731bd900a",
                    "price": 30.6,
                    "toMinutes": 330
                }
            ]
        }
    ],
    "field": "",
    "message": "",
    "status": true
}

then to update :

POST https://myaccount.myenergi.com/api/EnergySetup/SaveDualTariffEnergyPrices

with

[
    {
        "days": [
            0,
            1,
            2,
            3,
            4,
            5,
            6
        ],
        "energySetupId": "47a272a0-584d-ee11-abf4-0aa731bd900a",
        "tariffs": [
            {
                "fromMinutes": 0,
                "price": 7.5,
                "toMinutes": 300
            },
            {
                "fromMinutes": 1410,
                "price": 7.5,
                "toMinutes": 1440
            },
            {
                "fromMinutes": 360,
                "price": 30.6,
                "toMinutes": 1410
            },
            {
                "fromMinutes": 330,
                "price": 30.6,
                "toMinutes": 360
            },
            {
                "fromMinutes": 300,
                "price": 30.6,
                "toMinutes": 330
            }
        ]
    }
]

Ability to control Libbi charging from grid

It would be good to toggle grid charging.

This could for the basis for controlling how much to charge battery overnight based on predicted weather for the following day.

Incorrect boost times shown with zappi

With my zappi and no scheduled boosts set, the script returns invalid data -

myenergi zappi show
...
Boost with -1kWh
Smart Boost start at 17:-1 add 5kWh
Minimum green level: 100%

In this case API response from cgi-boost-time was -

{
    "boost_times": [
        {
            "bdd": "00000000",
            "bdh": 0,
            "bdm": 0,
            "bsh": 0,
            "bsm": 0,
            "slt": 11
        },
        {
            "bdd": "00000000",
            "bdh": 0,
            "bdm": 0,
            "bsh": 0,
            "bsm": 0,
            "slt": 12
        },
        {
            "bdd": "00000000",
            "bdh": 0,
            "bdm": 0,
            "bsh": 0,
            "bsm": 0,
            "slt": 13
        },
        {
            "bdd": "00000000",
            "bdh": 0,
            "bdm": 0,
            "bsh": 0,
            "bsm": 0,
            "slt": 14
        }
    ]
}

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.