tillsteinbach / WeConnect-python

Python API for the Volkswagen WeConnect Services
MIT License
105 stars 28 forks source link

Not sure if it's a bug, but I can't find a way to set the value of targetSOC_pct. Setting the value in vehicle.domains["charging"]["chargingSettings"].targetSOC_pct does not seem to have any effect, and I can't find anything in vehicle.controls. Is there any way to set it? Otherwise, a great library which has been extremely useful - thank you! #146

Closed brian-rayner closed 10 months ago

brian-rayner commented 10 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Logs IF applicable logs that show the problem. Please take care to remove any confidential data from the logs (e.g. your vehicles VIN number, usernames or passwords)

Additional context Add any other context about the problem here.

tillsteinbach commented 10 months ago

hmmm, this should work. What type of car is it?

brian-rayner commented 10 months ago

It’s a VW ID.3 2021 model.

On further investigation, if I immediately read back the value of vehicle.domains["charging"]["chargingSettings"].targetSOC_pct after the update, the change is reflected in the data. However, it isn’t reflected in the vehicle itself and when I do a subsequent call to weConnect.update() it has reverted to the original value. Am I missing a step to commit the change to the vehicle?

From: Till Steinbach @.*** Sent: 03 September 2023 12:51 To: tillsteinbach/WeConnect-python Cc: Brian Rayner; Author Subject: Re: [tillsteinbach/WeConnect-python] Not sure if it's a bug, but I can't find a way to set the value of targetSOC_pct. Setting the value in vehicle.domains["charging"]["chargingSettings"].targetSOC_pct does not seem to have any effect, and I can't find a

hmmm, this should work. What type of car is it?

— Reply to this email directly, view it on GitHub https://github.com/tillsteinbach/WeConnect-python/issues/146#issuecomment-1704265560 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQVS3BLHDH4IDG6OQRGSYTXYRVL7ANCNFSM6AAAAAA4JF6UAM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ALQVS3AP6H6LBCM5HYYKBUTXYRVL7A5CNFSM6AAAAAA4JF6UAOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTFSUDVQ.gif Message ID: @.***>

brian-rayner commented 10 months ago

OK, it's working now. It appears that the car will only accept increments of 10%, so was not allowing me to set it to 85%. When I set it to 90% all was well!