Skip to content
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

Get all home charging sessions #32

Open
waltster3 opened this issue Jan 25, 2022 · 20 comments
Open

Get all home charging sessions #32

waltster3 opened this issue Jan 25, 2022 · 20 comments
Assignees
Labels
enhancement New feature or request

Comments

@waltster3
Copy link

I would like to export all home charging sessions to evaluate how much energy was taken from which wallbox and authenticated by which charging card.

So far I am working with the iobroker.vw-connect and iobroker.simple-api adapter. I am requesting the data from a python script using the simple-api REST API. This is not very efficient but was working in a first POC. I would like to get rid of the iobroker dependency providing an exporting possibility that is kind of standalone. It would be great to use the weconnect-python module to handle the VW API. However, I think there is no API yet to return the former home charging sessions . Would it be possible to add it?

@waltster3 waltster3 added the enhancement New feature or request label Jan 25, 2022
@tillsteinbach
Copy link
Owner

You mean the data from the Elli Chargers?

@waltster3
Copy link
Author

yes

@tillsteinbach
Copy link
Owner

Ok, that is a good request, I already had that in mind to allow automatically to connect charging sessions in VWsFriend with the data from WeCharge. That would be the same authentication. The problem for home charging is that I do not have such a charger. So once the groundwork is done I would need some data examples. But First of all I would need some refactoring so.
To summarise: I can imagine to implement that but it is a bigger part and will need some time.

@waltster3
Copy link
Author

Hi,

we have three ID Chargers with 4 different RFID charging cards. We already generated 300+ records and I would share the data. Is there something else I could contribute (question also relates to source code)?

@tillsteinbach
Copy link
Owner

I guess it is also json what is coming from the server.
The WeCharge items need a different authentication, thus I will first refactor out the current WeConnect auth, (login, token refresh, ...) in a separate class. Then I can add the auth for the charging. The actual retrieval of the data should be a piece of cake, but it would be helpful to have a sample of the data in json format if you can capture that.

@tillsteinbach
Copy link
Owner

Short update: I was able to login to WeCharge the first time and fetch some data. I still have a lot of cleanup todo before I can think of integrating it into a release, but a first proof of concept is done.

@waltster3
Copy link
Author

I just have the json string coming from io-broker. However, I am not sure if this is the same format than returned by WeCharge.

@tillsteinbach
Copy link
Owner

We can have a try. You can anonymize it if it contains personal data.

@waltster3
Copy link
Author

Sure!

100 records with anonymized serial numbers, IDs and addresses.

wecharge_anonym.zip

@tillsteinbach
Copy link
Owner

super danke! Wird noch ein paar tage dauern, ich muss erst die neue Authentifizierung einbauen, aber ich bin dran versprochen!

@Peter1984Git
Copy link

Any update on this? Elli Charger now supports EEBUS and VW Passat GTE is here (still waiting for ID.4...)

@tillsteinbach
Copy link
Owner

I have a working example, unfortunately I did not find enough time to finish it yet. I would need one or two days. Unfortunately my real job and family keeps me busy right now. But ist is not forgotten.

@waltster3
Copy link
Author

Any update on this? Elli Charger now supports EEBUS and VW Passat GTE is here (still waiting for ID.4...)

Is the EEBUS update finally available? I am waiting for the respective Fota update since 1,5 years meanwhile…

@Peter1984Git
Copy link

Any update on this? Elli Charger now supports EEBUS and VW Passat GTE is here (still waiting for ID.4...)

Is the EEBUS update finally available? I am waiting for the respective Fota update since 1,5 years meanwhile…

Yes, it is. You can install it via VW Connect ID App or wait for Autoupdate.

@Schnabel80
Copy link

I have a working example, unfortunately I did not find enough time to finish it yet. I would need one or two days. Unfortunately my real job and family keeps me busy right now. But ist is not forgotten.

Hi @tillsteinbach have you any news about the ID Chargers?

@tillsteinbach
Copy link
Owner

Unfortunately not. Got even worse with spare time. Sorry.

@Schnabel80
Copy link

Unfortunately not. Got even worse with spare time. Sorry.

we all have the same problems...
thank you for your great work!

@ksokol
Copy link

ksokol commented Jan 13, 2024

Could you use the API endpoint from the Volkswagen app? The charging processes are already displayed there.

IMG_34D5AA5A6240-1

@tillsteinbach
Copy link
Owner

Yes, I was able to get the charging sessions.

@ksokol
Copy link

ksokol commented Jan 13, 2024

Can you tell us the http endpoint? I'm not familiar with the API yet and I'd like to play around with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants