trocotronic / weconnect

API to interact with Volkswagen's service We Connect (formerly CarNet)
Open Data Commons Open Database License v1.0
83 stars 17 forks source link

heating disallowed query parameters #14

Open michiii1337 opened 1 year ago

michiii1337 commented 1 year ago

got following error when i call vwc.heating - Disallowed query parameters

[27/02/2023 20:13:27] [API::CRITICAL] Raising error msg: Error 400: [gw.error.parameter] Disallowed query parameters
Traceback (most recent call last):
  File "/weconnect-1.5.1/example.py", line 103, in <module>
   vwc.heating(vin, action='on')
  File "/weconnect-1.5.1/NativeAPI.py", line 737, in heating
   r = self.__command('/bs/rs/v1/{brand}/{country}/vehicles/'+vin+'/actions', dashboard=self.BASE_URL, data=data, scope=self.__oauth['sc2:fal'], accept=self.__accept_mbb, content_type='application/vnd.vwg.mbb.RemoteStandheizung_v2_0_0+xml', secure_token=secure_token)
  File "/weconnect-1.5.1/NativeAPI.py", line 171, in __command
    r = self.__get_url(dashboard+command, json=post, post=data, headers=headers)
  File "/weconnect-1.5.1/NativeAPI.py", line 130, in __get_url
    raise UrlError(r.status_code, msg, r)
NativeAPI.UrlError: Error 400: [gw.error.parameter] Disallowed query parameters