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

Charging locations #187

Open
are0002 opened this issue Apr 11, 2023 · 3 comments
Open

Charging locations #187

are0002 opened this issue Apr 11, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@are0002
Copy link

are0002 commented Apr 11, 2023

This is a feature request to monitor when the car is in a configured charge location.

You can configure in the car a location to set up some charging options like: departure time, preferred charging hours, etc. Once you car is in a configured location, the mobile app detects and let you choose to charge immediately or use the charging location configuration.

It will be great to have the option to monitor:
1 - If the car is in a configured location.
2 - If the selected option is charge using location configuration or immediately.

Thanks in advanced.

Regards,

@Farfar Farfar added the enhancement New feature or request label Apr 11, 2023
@Farfar
Copy link
Collaborator

Farfar commented Apr 11, 2023

Currently I don't have any API endpoints that provide this information but development of a new library for interacting with the API is in the works. I will keep this in mind and see if we can find the info from API and populate HA with the charging locations.
The logic to see if the car is in a charging location or not must be setup in HA though.

@Farfar
Copy link
Collaborator

Farfar commented Apr 11, 2023

Thanks to others with access to Enyaq data we have looked at how we can implement this in the future.
There doesn't seem to be any data related to charging locations in the API unfortunately.
The only thing we can implement is the "charging mode" options: Manual, Departure time, Departure time with AC, and "Preferred time"

@aritmeester
Copy link

aritmeester commented Nov 8, 2023

This feature combined with the mentioned charging mode will help me a lot! This functionality allows me to automatically program the best charging times in my car based on the prices of my dynamic energy contract.

I am not that much experienced with Python so here you have the api details which you need to implement the Charging Locations.

API URLS:

@GET("api/v1/charging/{vin}/profiles")
@PUT("api/v1/charging/{vin}/profiles/{id}")

JSON profiles:

{
  chargingProfiles: [
    {
      id: 1, 
      "name": "",
      "settings": {
        "maxChargingCurrent": "",
        "minBatteryStateOfCharge": "",
        "targetStateOfChargeInPercent": 80,
        "autoUnlockWhenCharged": ""
      },
      "timers": [{
        // these are departure timers (same format as airco timers)
      }, ...],
      "preferredChargingTimes": [{
        "id": 1,
        "enabled": true,
        "startTime": ""
        "endTime": ""
      }, ...]
    }, ....
  ]
}

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

3 participants