cjne / pymyenergi Goto Github PK
View Code? Open in Web Editor NEWAn async python library for interfacing with MyEnergi devices
License: MIT License
An async python library for interfacing with MyEnergi devices
License: MIT License
Trivial change:
sensor.home_home_consumpttion_2
Suggest amend to:
sensor.home_home_consumption_2
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.
I've written some routines for GivEnergy batteries to set overnight SoC targets based on daily usage and Solcast forecasts. I'd be happy to share for use with the Libbi if there's any interest.
www.github.com/salewis38/palm
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.
Since libbi 5.408 ( https://support.myenergi.com/hc/en-gb/articles/19276846239377-libbi-Firmware-Version-5-408 ) libbi supports export to grid. This is useful if you wanted to use your libbi to charge by cheap electricity (or solar) and export when export prices are high.
App now supports this :
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
}
]
}
]
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.
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
}
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.