tillsteinbach / WeConnect-python

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

how to set the preferredChargeMode ? #137

Open marco44 opened 1 year ago

marco44 commented 1 year ago

Describe the bug I'm not sure it's really a bug, but I can't find a way to do it.

I managed to get the preferredChargeMode of my car (VW ID.3), and want to set it if I detect it's incorrectly set (which happens randomly, I suppose another bug from VW)

I managed to get up to this point:

>>> chargemode.preferredChargeMode.value
<ChargeModeEnum.PREFERRED_CHARGING_TIMES: 'preferredChargingTimes'>

But I couldn't find the method to change it. I tried to use the valueSetter in this preferredChargeMode object, but with no success…

TypeError: 'NoneType' object is not callable

How can I fix this ? Thanks a lot

tillsteinbach commented 1 year ago

Hi, it is not implemented to be changed. I am not sure if the API allows to change it at all.

marco44 commented 12 months ago

I just checked (sorry i was away from home for a while): I can switch between immediate and "preferred" charging times via the app, so I suppose the API allows it

marco44 commented 11 months ago

BTW can I do anything to help ?