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

cannot connect with BMW i3 #4

Closed
wvdmaarl opened this issue Jun 28, 2021 · 11 comments
Closed

cannot connect with BMW i3 #4

wvdmaarl opened this issue Jun 28, 2021 · 11 comments

Comments

@wvdmaarl
Copy link

Hi Filip,

As already posted on the domoticz forum I can't connect with BMW Connected to my BMW i3. Could you take a look, can I send you the testing details via a PM (don't know how to do that via github). Thank you in advance.

Wim vd Maarl

Hereby the complete log (excluding login credentials)

--- complete domoticz log after enabling BMW Connected plugin
2021-06-28 21:35:00.775 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2021-06-28 21:35:31.947 BMW Connected: (BMW Connected) Update BMW Connected - Remain mileage (elec): 0 - ''
2021-06-28 21:35:31.947 (BMW Connected - Charging) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:31.957 BMW Connected: (BMW Connected) Update BMW Connected - Charging: 0 - ''
2021-06-28 21:35:31.957 (BMW Connected - Charging time) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:31.966 BMW Connected: (BMW Connected) Update BMW Connected - Charging time: 0 - ''
2021-06-28 21:35:31.966 (BMW Connected - Battery Level) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:31.975 BMW Connected: (BMW Connected) Update BMW Connected - Battery Level: 0 - ''
2021-06-28 21:35:31.975 (BMW Connected - Remote Services) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:31.999 BMW Connected: (BMW Connected) Update BMW Connected - Remote Services: 0 - ''
2021-06-28 21:35:31.560 Status: BMW Connected: (BMW Connected) Entering work loop.
2021-06-28 21:35:31.560 Status: BMW Connected: (BMW Connected) Started.
2021-06-28 21:35:31.882 Status: BMW Connected: (BMW Connected) Initialized version 1.1.0, author 'Filip Demaertelaere'
2021-06-28 21:35:32.000 (BMW Connected - Car) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:32.013 BMW Connected: (BMW Connected) Update BMW Connected - Car: 0 - ''
2021-06-28 21:35:32.014 (BMW Connected - Remote Services) Updating device from 0:'' to have values 0:''.
2021-06-28 21:35:32.043 BMW Connected: (BMW Connected) Update BMW Connected - Remote Services: 0 - ''
2021-06-28 21:35:32.043 BMW Connected: (BMW Connected) Pushing 'ProtocolDirective' on to queue
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) Pushing 'ConnectDirective' on to queue
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'HardwareID':'10'
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'HomeFolder':'/home/pi/domoticz/plugins/Bmw/'
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'StartupFolder':'/home/pi/domoticz/'
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'UserDataFolder':'/home/pi/domoticz/'
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'Database':'/home/pi/domoticz/domoticz.db'
2021-06-28 21:35:32.044 BMW Connected: (BMW Connected) 'Language':'en'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Version':'1.1.0'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Author':'Filip Demaertelaere'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Name':'BMW Connected'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Port':'0'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Key':'Bmw'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Mode1':'XXXX'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Mode2':'XXXX'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Mode3':'New'
2021-06-28 21:35:32.045 BMW Connected: (BMW Connected) 'Mode4':'XXXX'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) 'Mode5':'5'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) 'Mode6':'Debug'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) 'DomoticzVersion':'2021.1'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) 'DomoticzHash':'8547c5b7e'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) 'DomoticzBuildTime':'2021-04-17 17:29:11'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) Device count: 10
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) Device: 1 - ID: 654, Name: 'BMW Connected - Mileage', nValue: 0, sValue: ''
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) Device ID: '654'
2021-06-28 21:35:32.046 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Mileage'
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device: 2 - ID: 656, Name: 'BMW Connected - Doors', nValue: 0, sValue: ''
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device ID: '656'
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Doors'
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.047 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device: 3 - ID: 657, Name: 'BMW Connected - Windows', nValue: 0, sValue: ''
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device ID: '657'
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Windows'
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device: 4 - ID: 658, Name: 'BMW Connected - Remain mileage (fuel)', nValue: 0, sValue: ''
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device ID: '658'
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Remain mileage (fuel)'
2021-06-28 21:35:32.048 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device: 5 - ID: 659, Name: 'BMW Connected - Remain mileage (elec)', nValue: 0, sValue: ''
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device ID: '659'
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Remain mileage (elec)'
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.049 BMW Connected: (BMW Connected) Device: 6 - ID: 660, Name: 'BMW Connected - Charging', nValue: 0, sValue: ''
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device ID: '660'
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Charging'
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device: 7 - ID: 661, Name: 'BMW Connected - Charging time', nValue: 0, sValue: ''
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device ID: '661'
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Charging time'
2021-06-28 21:35:32.050 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device: 8 - ID: 662, Name: 'BMW Connected - Battery Level', nValue: 0, sValue: ''
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device ID: '662'
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Battery Level'
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device: 9 - ID: 655, Name: 'BMW Connected - Remote Services', nValue: 0, sValue: ''
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device ID: '655'
2021-06-28 21:35:32.051 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Remote Services'
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device: 10 - ID: 663, Name: 'BMW Connected - Car', nValue: 0, sValue: ''
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device ID: '663'
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device Name: 'BMW Connected - Car'
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device nValue: 0
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device sValue: ''
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Device LastLevel: 0
2021-06-28 21:35:32.052 (BMW Connected) Processing 'ProtocolDirective' message
2021-06-28 21:35:32.052 BMW Connected: (BMW Connected) Protocol set to: 'HTTPS'.
2021-06-28 21:35:32.053 (BMW Connected) Processing 'ConnectDirective' message
2021-06-28 21:35:32.053 BMW Connected: (BMW Connected) Transport set to: 'TCP/IP', customer.bmwgroup.com:443.
2021-06-28 21:35:32.063 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["baseType"]="device", ["subType"]="Custom Sensor", ["rawData"]={}, ["timedOut"]=true, ["iconNumber"]=224, ["id"]=654, ["deviceType"]="General", ["data"]={["Image"]="Bmw", ["sensorUnit"]="km", ["hardwareType"]="Bmw", ["protected"]=false, ["_state"]="0", ["unit"]=1, ["hardwareName"]="BMW Connected", ["icon"]="Bmw", ["hardwareID"]=1972728, ["sensorType"]=0, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["customImage"]=101}, ["name"]="BMW Connected - Mileage", ["switchTypeValue"]=0, ["protected"]=false, ["changed"]=true, ["lastLevel"]=255, ["switchType"]="On/Off", ["signalLevel"]=1755306648, ["batteryLevel"]=1755306720, ["description"]="", ["image"]="", ["deviceID"]="", ["lastUpdate"]=""}
2021-06-28 21:35:32.262 Error: dzVents: Error: (3.1.7) Discarding device. No last update info found: {["id"]=655, ["batteryLevel"]=1755306720, ["image"]="", ["name"]="BMW Connected - Remote Services", ["switchType"]="Selector", ["changed"]=true, ["data"]={["hardwareType"]="Bmw", ["usedByCamera"]=false, ["Image"]="Bmw", ["levelActions"]="||||", ["levelNames"]="|LIGHT_FLASH|HORN_BLOW|CLIMATE_NOW", ["levelVal"]=0, ["_nValue"]=0, ["hardwareID"]=1972728, ["customImage"]=101, ["hardwareTypeValue"]=94, ["_state"]="", ["protected"]=false, ["hardwareName"]="BMW Connected", ["levelOffHidden"]=true, ["unit"]=9, ["icon"]="Light", ["maxDimLevel"]=100}, ["subType"]="Selector Switch", ["timedOut"]=false, ["signalLevel"]=1755306648, ["switchTypeValue"]=18, ["protected"]=false, ["baseType"]="device", ["iconNumber"]=224, ["deviceID"]="", ["deviceType"]="Light/Switch", ["lastLevel"]=255, ["lastUpdate"]="", ["rawData"]={}, ["description"]=""}
2021-06-28 21:35:35.344 RFLink Gateway USB: Temp + Humidity (T+H Woonkamer)
2021-06-28 21:35:37.082 BMW Connected: (BMW Connected) Connect directive received, action initiated successfully.
2021-06-28 21:35:42.257 BMW Connected: (BMW Connected) Sending 537 bytes of data
2021-06-28 21:35:42.257 BMW Connected: (BMW Connected) 50 4f 53 54 20 2f 67 63 64 6d 2f 6f 61 75 74 68 2f 74 6f 6b POST./gcdm/oauth/tok
2021-06-28 21:35:42.257 BMW Connected: (BMW Connected) 65 6e 20 48 54 54 50 2f 31 2e 31 0d 0a 43 6f 6e 74 65 6e 74 en.HTTP/1.1..Content
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 -Type:.application/x
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 2d 77 77 77 2d 66 6f 72 6d 2d 75 72 6c 65 6e 63 6f 64 65 64 -www-form-urlencoded
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 31 ..Content-Length:.11
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 38 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 8..Connection:.Keep-
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 41 6c 69 76 65 0d 0a 48 6f 73 74 3a 20 63 75 73 74 6f 6d 65 Alive..Host:.custome
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 72 2e 62 6d 77 67 72 6f 75 70 2e 63 6f 6d 0d 0a 41 63 63 65 r.bmwgroup.com..Acce
2021-06-28 21:35:42.258 BMW Connected: (BMW Connected) 70 74 2d 45 6e 63 6f 64 69 6e 67 3a 20 6a 73 6f 6e 0d 0a 41 pt-Encoding:.json..A
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 75 74 68 6f 72 69 7a 61 74 69 6f 6e 3a 20 42 61 73 69 63 20 uthorization:.Basic.
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 5a 44 63 32 4e 6d 49 31 4d 7a 63 74 59 54 59 31 4e 43 30 30 ZDc2NmI1MzctYTY1NC00
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 59 32 4a 6b 4c 57 45 7a 5a 47 4d 74 4d 47 4e 68 4e 54 59 33 Y2JkLWEzZGMtMGNhNTY3
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 4d 6d 51 33 5a 6a 68 6b 4f 6a 45 31 5a 6a 59 35 4e 32 59 32 MmQ3ZjhkOjE1ZjY5N2Y2
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 4c 57 45 31 5a 44 55 74 4e 47 4e 68 5a 43 30 35 4f 57 51 35 LWE1ZDUtNGNhZC05OWQ5
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 4c 54 4e 68 4d 54 56 69 59 7a 64 6d 4d 7a 6b 33 4d 77 3d 3d LTNhMTViYzdmMzk3Mw==
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 0d 0a 43 72 65 64 65 6e 74 69 61 6c 73 3a 20 6e 51 76 36 43 ..Credentials:.nQv6C
2021-06-28 21:35:42.259 BMW Connected: (BMW Connected) 71 74 78 4a 75 58 57 50 37 34 78 66 33 43 4a 77 55 45 50 3a qtxJuXWP74xf3CJwUEP:
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 31 7a 44 48 78 36 75 6e 34 63 44 6a 79 62 4c 45 4e 4e 33 6b 1zDHx6un4cDjybLENN3k
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 79 66 75 6d 58 32 6b 45 59 69 67 57 50 63 51 70 64 76 44 52 yfumX2kEYigWPcQpdvDR
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 70 49 42 6b 37 72 4f 4a 0d 0a 55 73 65 72 2d 41 67 65 6e 74 pIBk7rOJ..User-Agent
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 3a 20 6f 6b 68 74 74 70 2f 33 2e 31 32 2e 32 0d 0a 0d 0a 73 :.okhttp/3.12.2....s
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 63 6f 70 65 3d 61 75 74 68 65 6e 74 69 63 61 74 65 5f 75 73 cope=authenticate_us
2021-06-28 21:35:42.260 BMW Connected: (BMW Connected) 65 72 2b 76 65 68 69 63 6c 65 5f 64 61 74 61 2b 72 65 6d 6f er+vehicle_data+remo
2021-06-28 21:35:42.261 BMW Connected: (BMW Connected) 74 65 5f 73 65 72 76 69 63 65 73 26 75 73 65 72 6e 61 6d 65 te_services&username
2021-06-28 21:35:42.261 BMW Connected: (BMW Connected) 3d 65 76 64 6d 72 6c 25 34 30 67 6d 61 69 6c 2e 63 6f 6d 26 =evdmrl%40gmail.com&
2021-06-28 21:35:42.261 BMW Connected: (BMW Connected) 70 61 73 73 77 6f 72 64 3d 56 64 6d 61 61 72 6c 31 26 67 72 password=Vdmaarl1&gr
2021-06-28 21:35:42.261 BMW Connected: (BMW Connected) 61 6e 74 5f 74 79 70 65 3d 70 61 73 73 77 6f 72 64 .. .. .. ant_type=password
2021-06-28 21:35:42.522 BMW Connected: (BMW Connected) Pushing 'ReadEvent' on to queue
2021-06-28 21:35:42.562 (BMW Connected) Processing 'ReadEvent' message
2021-06-28 21:35:42.562 BMW Connected: (BMW Connected) Received 1034 bytes of data
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 65 3a 20 4d 6f 6e 2c 20 32 38 20 4a 75 6e 20 32 30 32 31 20 e:.Mon,.28.Jun.2021.
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 31 39 3a 33 35 3a 34 32 20 47 4d 54 0d 0a 43 6f 6e 74 65 6e 19:35:42.GMT..Conten
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f t-Type:.application/
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 6a 73 6f 6e 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 json..Transfer-Encod
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 43 6f 6e 6e 65 63 ing:.chunked..Connec
2021-06-28 21:35:42.563 BMW Connected: (BMW Connected) 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 53 65 tion:.keep-alive..Se
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 72 76 65 72 3a 20 41 70 61 63 68 65 0d 0a 4d 61 78 2d 46 6f rver:.Apache..Max-Fo
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 72 77 61 72 64 73 3a 20 32 30 0d 0a 56 69 61 3a 20 31 2e 30 rwards:.20..Via:.1.0
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 20 6c 70 63 64 61 70 69 67 61 70 70 30 33 20 28 29 0d 0a 58 .lpcdapigapp03.()..X
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 2d 43 6f 72 72 65 6c 61 74 69 6f 6e 49 44 3a 20 49 64 2d 38 -CorrelationID:.Id-8
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 65 32 34 64 61 36 30 35 66 37 65 34 31 64 36 65 31 31 38 39 e24da605f7e41d6e1189
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 30 36 31 20 30 0d 0a 58 2d 63 32 62 2d 72 65 71 75 65 73 74 061.0..X-c2b-request
2021-06-28 21:35:42.564 BMW Connected: (BMW Connected) 2d 69 64 3a 20 59 4e 6f 6b 6a 73 57 69 56 36 30 31 65 31 71 -id:.YNokjsWiV601e1q
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 41 39 33 41 43 62 67 41 41 46 47 30 0d 0a 58 2d 63 32 62 2d A93ACbgAAFG0..X-c2b-
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 74 69 6d 65 73 74 61 6d 70 3a 20 31 36 32 34 39 30 38 39 34 timestamp:.162490894
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 32 33 35 32 0d 0a 58 2d 46 72 61 6d 65 2d 4f 70 74 69 6f 6e 2352..X-Frame-Option
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 73 3a 20 53 41 4d 45 4f 52 49 47 49 4e 0d 0a 56 61 72 79 3a s:.SAMEORIGIN..Vary:
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 20 41 63 63 65 70 74 2d 45 6e 63 6f 64 69 6e 67 0d 0a 41 63 .Accept-Encoding..Ac
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 2d 4f cess-Control-Allow-O
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 72 69 67 69 6e 3a 20 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 rigin:...Access-Cont
2021-06-28 21:35:42.565 BMW Connected: (BMW Connected) 72 6f 6c 2d 41 6c 6c 6f 77 2d 48 65 61 64 65 72 73 3a 20 41 rol-Allow-Headers:.A
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 75 74 68 6f 72 69 7a 61 74 69 6f 6e 2c 20 4f 72 69 67 69 6e uthorization,.Origin
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 2c 20 58 2d 63 32 62 2d 41 75 74 68 6f 72 69 7a 61 74 69 6f ,.X-c2b-Authorizatio
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 6e 2c 20 58 2d 63 32 62 2d 6d 54 41 4e 2c 20 58 2d 52 65 71 n,.X-c2b-mTAN,.X-Req
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 75 65 73 74 65 64 2d 57 69 74 68 2c 20 58 2d 63 32 62 2d 53 uested-With,.X-c2b-S
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 65 6e 64 65 72 2d 49 64 2c 20 58 2d 63 32 62 2d 45 78 74 65 ender-Id,.X-c2b-Exte
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 72 6e 61 6c 2d 49 64 2c 20 43 6f 6e 74 65 6e 74 2d 54 79 70 rnal-Id,.Content-Typ
2021-06-28 21:35:42.566 BMW Connected: (BMW Connected) 65 2c 20 41 63 63 65 70 74 2c 20 43 61 63 68 65 2d 43 6f 6e e,.Accept,.Cache-Con
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 74 72 6f 6c 2c 20 4b 65 79 49 64 0d 0a 41 63 63 65 73 73 2d trol,.KeyId..Access-
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 43 6f 6e 74 72 6f 6c 2d 4d 61 78 2d 41 67 65 3a 20 33 36 32 Control-Max-Age:.362
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 38 38 30 30 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 8800..Access-Control
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 2d 41 6c 6c 6f 77 2d 43 72 65 64 65 6e 74 69 61 6c 73 3a 20 -Allow-Credentials:.
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 74 72 75 65 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c true..Access-Control
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 2d 41 6c 6c 6f 77 2d 4d 65 74 68 6f 64 73 3a 20 50 4f 53 54 -Allow-Methods:.POST
2021-06-28 21:35:42.567 BMW Connected: (BMW Connected) 2c 20 47 45 54 2c 20 4f 50 54 49 4f 4e 53 2c 20 50 55 54 2c ,.GET,.OPTIONS,.PUT,
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 20 44 45 4c 45 54 45 2c 20 48 45 41 44 0d 0a 52 65 66 65 72 .DELETE,.HEAD..Refer
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 72 65 72 2d 50 6f 6c 69 63 79 3a 20 6e 6f 2d 72 65 66 65 72 rer-Policy:.no-refer
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 72 65 72 2d 77 68 65 6e 2d 64 6f 77 6e 67 72 61 64 65 0d 0a rer-when-downgrade..
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 0d 0a 66 31 0d 0a 7b 0a 20 20 22 61 63 63 65 73 73 5f 74 6f ..f1..{..."access_to
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 6b 65 6e 22 20 3a 20 22 4c 61 31 44 48 35 34 4e 6c 32 4d 4a ken".:."La1DH54Nl2MJ
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 74 42 64 4d 75 65 6b 36 44 6c 65 36 59 34 41 43 6e 44 67 31 tBdMuek6Dle6Y4ACnDg1
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 22 2c 0a 20 20 22 74 6f 6b 65 6e 5f 74 79 70 65 22 20 3a 20 ",..."token_type".:.
2021-06-28 21:35:42.568 BMW Connected: (BMW Connected) 22 42 65 61 72 65 72 22 2c 0a 20 20 22 65 78 70 69 72 65 73 "Bearer",..."expires
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 5f 69 6e 22 20 3a 20 33 35 39 39 2c 0a 20 20 22 72 65 66 72 in".:.3599,..."refr
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 65 73 68 5f 74 6f 6b 65 6e 22 20 3a 20 22 70 4a 32 4c 42 75 esh_token".:."pJ2LBu
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 54 67 44 78 34 43 72 74 79 48 42 4d 4b 67 51 51 55 41 30 43 TgDx4CrtyHBMKgQQUA0C
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 76 46 33 6a 35 52 44 4b 77 66 36 66 4a 34 7a 78 62 78 4d 62 vF3j5RDKwf6fJ4zxbxMb
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 72 64 22 2c 0a 20 20 22 73 63 6f 70 65 22 20 3a 20 22 76 65 rd",..."scope".:."ve
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 68 69 63 6c 65 5f 64 61 74 61 20 72 65 6d 6f 74 65 5f 73 65 hicle_data.remote_se
2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 72 76 69 63 65 73 20 61 75 74 68 65 6e 74 69 63 61 74 65 5f rvices.authenticate

2021-06-28 21:35:42.569 BMW Connected: (BMW Connected) 75 73 65 72 22 0a 7d 0d 0a 30 0d 0a 0d 0a .. .. .. .. .. .. user".}..0....
2021-06-28 21:35:42.570 BMW Connected: (BMW Connected) Pushing 'onMessageCallback' on to queue
2021-06-28 21:35:42.571 (BMW Connected) Processing 'onMessageCallback' message
2021-06-28 21:35:42.571 BMW Connected: (BMW Connected) Calling message handler 'onMessage'.
2021-06-28 21:35:42.571 BMW Connected: (BMW Connected) onMessage called (BmwAuth)
2021-06-28 21:35:42.572 BMW Connected: (BMW Connected) La1DH54Nl2MJtBdMuek6Dle6Y4ACnDg1
2021-06-28 21:35:42.572 BMW Connected: (BMW Connected) Pushing 'DisconnectDirective' on to queue
2021-06-28 21:35:42.572 BMW Connected: (BMW Connected) Pushing 'ProtocolDirective' on to queue
2021-06-28 21:35:42.572 BMW Connected: (BMW Connected) Pushing 'ConnectDirective' on to queue
2021-06-28 21:35:42.573 (BMW Connected) Processing 'DisconnectDirective' message
2021-06-28 21:35:42.573 BMW Connected: (BMW Connected) Disconnect directive received for 'customer.bmwgroup.com:443'.
2021-06-28 21:35:42.573 (BMW Connected) Handling TCP disconnect, socket (customer.bmwgroup.com:443) is connected
2021-06-28 21:35:42.573 (BMW Connected) Processing 'ProtocolDirective' message
2021-06-28 21:35:42.573 (BMW Connected) Queued asynchronous secure read aborted.
2021-06-28 21:35:42.574 BMW Connected: (BMW Connected) Pushing 'DisconnectedEvent' on to queue
2021-06-28 21:35:42.574 BMW Connected: (BMW Connected) Protocol set to: 'HTTPS'.
2021-06-28 21:35:42.574 (BMW Connected) Processing 'ConnectDirective' message
2021-06-28 21:35:42.574 BMW Connected: (BMW Connected) Transport set to: 'TCP/IP', b2vapi.bmwgroup.com:443.

@FilipDem
Copy link
Owner

Hi Wim,
This can only be done if I have all your credentials (username, password, VIN)...
Don't know if you are ready to do it? Personally I won't do anything wrong with it however as we don't know eachother it can only be done based on trust...
I don't have immediately time at this moment, but if you want to share I can take a look once I have some free time... I will let you know it advance if I start work with it... Up to you to decide.
Btw: if you agree, leave your email address here. I will then contact you by email.
Filip

@wvdmaarl
Copy link
Author

Hi Filip,

Thank you for your shift reply. I can give you the credentials by mail when you have some time to take a look at it. My email is wvdmrl@gmail.com

Thanks again,

Wim

@FilipDem
Copy link
Owner

I made version that uses bimmer_connected (see the README). This should solve also the i3 (as this is supported by the bimmer_connected).
Let me know if you are still interested (and whether it works).
I made the new version of the plugin, but haven't it tested yet with an electric vehicle (I don't have one), however I took into account all the information supplied by several car drivers (including electric and hybrid).

@wvdmaarl
Copy link
Author

Hi Filip,

Thanks for your reply and help. At the moment I am short of time, I hope to test the new version in the coming weeks. I let you know.

@wvdmaarl
Copy link
Author

wvdmaarl commented Dec 1, 2021

I've reinstalled python3.7 (because of some errors) and updated the Bimmer-connected and the Domoticz BMW connected plugin. I can connect to the vehicle with bimmer-connected
I am sorry but now the plugin is not added to the hardware list in Domoticz. In the log this line is created:
2021-12-01 22:36:00.097 Error: PluginList: Parsing '/home/pi/domoticz/plugins/Bmw/', 'Error document empty.' at line 0 column 0 in XML ''.
I have added plugin.py, Bmw.zip and README.md to ~/Domoticz/plugins/Bmw. Furthermore I changed the permissions of the files to the domoticz user, but no succes.
Do you have any idea what to do about it?

@FilipDem
Copy link
Owner

FilipDem commented Dec 2, 2021

Hi,
This is indeed strange... On which system is it running? RPI or PC or other? I have it running on a RPI3 and PC with Ubuntu.
Btw: you don't need the readme.md. (but this is not the reason of the error).

As I am not using XML, I would imagine it comes from Domoticz itself and perhaps the XML with the description of the plugin. I checked again and am not seeing any error. Moreover it runs at my side on the 2 systems and I know that somebody else also uses the plugin and successfully installed this version.

Could indeed be a problem with access rights? I would recommend to check another plugin and be sure the same access rights are applicable (not only the user, but also R/W rights).

When you add the debug information, do you get output? In other words, is the plugin at least started (the OnStart)? I assume not... but good to know.

For the rest, I am a bit out of idea... Do you have other python plugins running? If not, perhaps add one to see if it is a general problem or only focused on this plugin...

@wvdmaarl wvdmaarl changed the title cannot connect wit BMW i3 cannot connect with BMW i3 Dec 2, 2021
@wvdmaarl
Copy link
Author

wvdmaarl commented Dec 2, 2021

Hi Filip,

Thanks again for your help. I finally got it working after reinstalling bimmer-connected and installing the plugin via git clone. It seems it was not problem with acces rights, but may be the extra hidden .git directory?

Now there are two Bmw entries in the hardware device list, but it works! I can now read battery level, mileage and so on. I assume it is only informative, no commands can be given from Domoticz to the car? Like start charging and closing doors?

@FilipDem
Copy link
Owner

FilipDem commented Dec 2, 2021 via email

@wvdmaarl
Copy link
Author

wvdmaarl commented Sep 24, 2022 via email

@FilipDem
Copy link
Owner

I would recommend to consult first the bimmer_connected documentation as the plugin is a layer on top of bimmer_connected.
Recently there was a change at BMW to restrict the number of calls with quotas (see issue. This leads to failed logins (I had the same).
In the meantime there is patch for the bimmer_connected... Please install at least version 0.10.4 and the problem should be solved (at least it worked at my side).

@wvdmaarl
Copy link
Author

wvdmaarl commented Jan 23, 2023

Hi Filip,

I have recently tried again to get the plugin working again. With the newest Bimmerconnected and your last plugin it can succesfully login again, nice! But now it seems thee log of domoticz is flooded with messages like:
2023-01-23 22:12:51.215 (BMW Connected) Acquiring lock for 'BMW Connected'
2023-01-23 22:12:51.215 (BMW Connected) Releasing lock for 'BMW Connected'
2023-01-23 22:12:51.265 (BMW Connected) Acquiring lock for 'BMW Connected'
2023-01-23 22:12:51.266 (BMW Connected) Releasing lock for 'BMW Connected'
2023-01-23 22:12:51.316 (BMW Connected) Acquiring lock for 'BMW Connected'
2023-01-23 22:12:51.316 (BMW Connected) Releasing lock for 'BMW Connected'
2023-01-23 22:12:51.367 (BMW Connected) Acquiring lock for 'BMW Connected'
2023-01-23 22:12:51.367 (BMW Connected) Releasing lock for 'BMW Connected'
2023-01-23 22:12:51.417 (BMW Connected) Acquiring lock for 'BMW Connected'
2023-01-23 22:12:51.418 (BMW Connected) Releasing lock for 'BMW Connected'
2023-01-23 22:12:51.468 (BMW Connected) Acquiring lock for 'BMW Connected'

Furthermore it writes an error in the domoticz log:
2023-01-23 22:19:39.341 Error: BMW Connected: General error TaskHandler: 'NoneType' object has no attribute 'latitude'

Is this normal? Or could you look into it a bit?

Edit: when I set debug on false the messages disappear.

Thanks again.

Wim van der Maarl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants