-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve API Documentation #133
Comments
Hi @K1ngjulien! I appreciate your support :) For "reverse engineering" the API use, as you already pointed out, Chrome's DevTools on the smartmeter portal. I create already a ticket for specific test cases we didn't cover yet: #113 Since the API is not open, I fear it could change faster than we could adapt code and documentation. So better just change test cases for that matter. If you coincidentally have access to a PV sensor, we are still missing test code for that as well. :) Thanks in advance for any contribution what so ever. |
Wiener Netze changing the API on us is not really something i would fear (unless it has happened before). It looks to me like they're propperly versioning their endpoint urls. I'll have a look what I can do and probably write some api docs at least for myself :)
Funny you mention that... we have PV on our roof, but wien energie has been stealing all our unused electricity since they installed the smart meters and won't give us an "einspeisezählpunkt" for our 10 year old installation... My neighbor seems to have finally gotten one, so I'll have to talk to him how he did that and maybe then i could help with the PV api :) |
Also: Do I just copy my code to |
It happened before, and afaik they are not versioning it (at least I am not aware of proper versioning)
If you write it any way, then please contribute it to the Wiki :)
I'd suggest switching to another service provider. Wien Energie is not giving you that, as they probably don't want to buy electricity from you. But there are other good options available for selling. Wiener Netze has to provide the infrastructure in this case, i.e. the smart meter.
No major differences, but potentially some difference in the way it is reported in smart meter webportal. See #51 for more information |
tests go here please: https://github.com/DarwinsBuddy/WienerNetzeSmartmeter/tree/main/tests/it there is already a |
if you want to develop on it and fiddle around, I can recommend my set up: I checked out homeassistant-core, set up a dev container in vscode there and symlinked this repository into |
there seems to be some issue with pytest-homeassistant-custom-component python3 -m venv .venv
source .venv/bin/activate
pip install -r tests/requirements.txt setup and pip install work just fine but when i run the tests (even just pytest alone without any parameters) i get the following output:
looking in I manually upgraded with Is this something you've encountered before? Might be worth a version bump in case the tests are just working because the have an old version cached 😅 |
yeah but the problem is, before we can switch to something like OeMAG, we need Wiener Netze to give us the damn zählpunktnummer :D |
Hi!
Loving the simplicity of this and would like to contribute!
Unfortunately, it is not quite obious to me from reading the code how the api communication is set up and what the different endpoints provide. I see two different api tokens and have no clue how and what they are used for and how they are aquired.
It would be nice to have a bit of documentation about this to make it easier to get started!
Something like this would toatally suffice:
/api/zaehler
Example Request:
Example Response:
I can try writing some of this if you show me where to look :). Chrome Devtools on the smartmeter dashboard?
The text was updated successfully, but these errors were encountered: