wez3 / volkswagen-carnet-client

A Python client to use Volkswagen CarNet
40 stars 21 forks source link

Start RemoteAccessHeating in non-electric cars with carnet #7

Closed bgewehr closed 3 years ago

bgewehr commented 6 years ago

Hi folks,

I own an Arteon 2.0 TDI Elegance and want to start the remoteAccessHeating with Siri.

I used fiddler to get to know the commands and found out this should work:

def startRemoteAccessHeating(s,url_base):
        post_data = {
                'triggerAction': True,
                'startMode':'HEATING',
                'spin':'YOURSECURITYPINHERE'
        }
        print(CarNetPostAction(s,url_base, '/-/rah/quick-start', post_data))
        return 0

def stopRemoteAccessHeating(s,url_base):
        post_data = {
                'triggerAction': True,
        }
        print(CarNetPostAction(s,url_base, '/-/rah/quick-stop', post_data))
        return 0

But I get the error of

 python vw_carnet_web.py startRemoteAccessHeating
/-/rah/quick-start
{"errorCode":"1","errorType":"RAH.INSUFFICIENT_SEC_LEVEL"}

Any idea how to fix that?

bgewehr commented 6 years ago

I'm at least able to request the status:

def statusRemoteAccessHeating(s,url_base):
        post_data = {
                'triggerAction': False,
        }
        print(CarNetPostAction(s,url_base, '/-/rah/get-status', post_data))
        return 0

and to refresh it from the car before asking also:

def statusReqRemoteAccessHeating(s,url_base):
        post_data = {
                'triggerAction': False,
        }
        print(CarNetPostAction(s,url_base, '/-/rah/get-request-status', post_data))
        return 
bgewehr commented 6 years ago

You can see a lot of cookie handling here: https://github.com/reneboer/lua-carnet-client/blob/master/vw_carnet.lua

Are you sure @wez3 that we have all the cookies that a browser would collect in our session object?

bgewehr commented 3 years ago

solved for a longer time now