Closed Vondee closed 3 years ago
Hi Wim, Very strange... Can you dump the complete logging? Normally the milage is the total milage of the car so far and it is correct in my case. See below (third line ""mileage":9091"). As my car is a classic fuel driven car (no EV), I don't have any split... However would be strange that the milage is split... Are you sure you are not mixing with the "remaining milage"? So a complete dump of the status of your car would be helpful.
2020-11-06 17:23:07.427 (Test BMW) 7b 22 76 65 68 69 63 6c 65 53 74 61 74 75 73 22 3a 7b 22 76 {"vehicleStatus":{"v
2020-11-06 17:23:07.427 (Test BMW) xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx in":"XXXXXXXXXXXXXXX
2020-11-06 17:23:07.427 (Test BMW) xx xx 22 2c 22 6d 69 6c 65 61 67 65 22 3a 39 30 39 31 2c 22 XX","mileage":9091,"
2020-11-06 17:23:07.427 (Test BMW) 75 70 64 61 74 65 52 65 61 73 6f 6e 22 3a 22 44 4f 4f 52 5f updateReason":"DOOR_
2020-11-06 17:23:07.427 (Test BMW) 53 54 41 54 45 5f 43 48 41 4e 47 45 44 22 2c 22 75 70 64 61 STATE_CHANGED","upda
2020-11-06 17:23:07.427 (Test BMW) 74 65 54 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 36 54 teTime":"2020-11-06T
2020-11-06 17:23:07.427 (Test BMW) 31 34 3a 35 36 3a 34 30 2b 30 30 30 30 22 2c 22 64 6f 6f 72 14:56:40+0000","door
2020-11-06 17:23:07.427 (Test BMW) 44 72 69 76 65 72 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 DriverFront":"CLOSED
2020-11-06 17:23:07.427 (Test BMW) 22 2c 22 64 6f 6f 72 44 72 69 76 65 72 52 65 61 72 22 3a 22 ","doorDriverRear":"
2020-11-06 17:23:07.427 (Test BMW) 43 4c 4f 53 45 44 22 2c 22 64 6f 6f 72 50 61 73 73 65 6e 67 CLOSED","doorPasseng
2020-11-06 17:23:07.427 (Test BMW) 65 72 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 64 erFront":"CLOSED","d
2020-11-06 17:23:07.427 (Test BMW) 6f 6f 72 50 61 73 73 65 6e 67 65 72 52 65 61 72 22 3a 22 43 oorPassengerRear":"C
2020-11-06 17:23:07.427 (Test BMW) 4c 4f 53 45 44 22 2c 22 77 69 6e 64 6f 77 44 72 69 76 65 72 LOSED","windowDriver
2020-11-06 17:23:07.427 (Test BMW) 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e Front":"CLOSED","win
2020-11-06 17:23:07.427 (Test BMW) 64 6f 77 44 72 69 76 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 dowDriverRear":"CLOS
2020-11-06 17:23:07.427 (Test BMW) 45 44 22 2c 22 77 69 6e 64 6f 77 50 61 73 73 65 6e 67 65 72 ED","windowPassenger
2020-11-06 17:23:07.427 (Test BMW) 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e Front":"CLOSED","win
2020-11-06 17:23:07.427 (Test BMW) 64 6f 77 50 61 73 73 65 6e 67 65 72 52 65 61 72 22 3a 22 43 dowPassengerRear":"C
2020-11-06 17:23:07.427 (Test BMW) 4c 4f 53 45 44 22 2c 22 73 75 6e 72 6f 6f 66 22 3a 22 43 4c LOSED","sunroof":"CL
2020-11-06 17:23:07.427 (Test BMW) 4f 53 45 44 22 2c 22 74 72 75 6e 6b 22 3a 22 43 4c 4f 53 45 OSED","trunk":"CLOSE
2020-11-06 17:23:07.427 (Test BMW) 44 22 2c 22 72 65 61 72 57 69 6e 64 6f 77 22 3a 22 49 4e 56 D","rearWindow":"INV
2020-11-06 17:23:07.427 (Test BMW) 41 4c 49 44 22 2c 22 68 6f 6f 64 22 3a 22 43 4c 4f 53 45 44 ALID","hood":"CLOSED
2020-11-06 17:23:07.427 (Test BMW) 22 2c 22 64 6f 6f 72 4c 6f 63 6b 53 74 61 74 65 22 3a 22 53 ","doorLockState":"S
2020-11-06 17:23:07.427 (Test BMW) 45 43 55 52 45 44 22 2c 22 72 65 6d 61 69 6e 69 6e 67 46 75 ECURED","remainingFu
2020-11-06 17:23:07.427 (Test BMW) 65 6c 22 3a 34 33 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e el":43,"remainingRan
2020-11-06 17:23:07.427 (Test BMW) 67 65 46 75 65 6c 22 3a 37 36 33 2c 22 72 65 6d 61 69 6e 69 geFuel":763,"remaini
2020-11-06 17:23:07.427 (Test BMW) 6e 67 52 61 6e 67 65 46 75 65 6c 4d 6c 73 22 3a 34 37 34 2c ngRangeFuelMls":474,
2020-11-06 17:23:07.427 (Test BMW) 22 66 75 65 6c 50 65 72 63 65 6e 74 22 3a 36 39 2c 22 70 6f "fuelPercent":69,"po
2020-11-06 17:23:07.427 (Test BMW) 73 69 74 69 6f 6e 22 3a 7b 22 6c 61 74 22 3a 35 30 2e 39 34 sition":{"lat":50.94
2020-11-06 17:23:07.427 (Test BMW) 35 35 31 35 2c 22 6c 6f 6e 22 3a 33 2e 38 30 35 34 38 37 39 5515,"lon":3.8054879
2020-11-06 17:23:07.427 (Test BMW) 2c 22 68 65 61 64 69 6e 67 22 3a 34 36 2c 22 73 74 61 74 75 ,"heading":46,"statu
2020-11-06 17:23:07.427 (Test BMW) 73 22 3a 22 4f 4b 22 7d 2c 22 70 75 62 6c 69 63 4b 65 79 22 s":"OK"},
Filip,
Sorry, I looked at the remaining milage, not the total driven. The plug-in does work correct. Is it possible to extend the plug in for the remaining data?
Wim
Thanks Wim, however which data do you want to see... All data seems a lot and I think they are not all useful.
Op vr 6 nov. 2020 om 19:41 schreef Vondee notifications@github.com:
Filip,
Sorry, I looked at the remaining milage, not the total driven. The plug-in does work correct. Is it possible to extend the plug in for the remaining data?
Wim
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/2#issuecomment-723238175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SGC625KY5FAY7FKRA3NLSOQ7NBANCNFSM4TMSUPQQ .
I saw on the domoticz forum you wanted to see: doors closed, remainingRangeFuel, remainingRangeElectric, ChargingStatus, ChargingTimeRemaining and Position. I can do this, but you need to send me a copy of your log (seen my car has no EV features, I could miss some things). Btw: I won't do the position for privacy reason... Filip
Not doing the position makes sense....
Here is the log (I removed / crossed out the position and VIN of the car)
2020-11-06 16:05:06.598 (BMW) 7b 22 76 65 68 69 63 6c 65 53 74 61 74 75 73 22 3a 7b 22 76 {"vehicleStatus":{"v 2020-11-06 16:05:06.598 (BMW) 69 6e 22 3a in":"xxxxxxxxxxxxxxx 2020-11-06 16:05:06.598 (BMW) 22 6d 69 6c 65 61 67 65 22 3a 36 37 39 2c 22 75 xx","mileage":679,"u 2020-11-06 16:05:06.598 (BMW) 70 64 61 74 65 52 65 61 73 6f 6e 22 3a 22 43 48 41 52 47 49 pdateReason":"CHARGI 2020-11-06 16:05:06.598 (BMW) 4e 47 5f 53 54 41 52 54 45 44 22 2c 22 75 70 64 61 74 65 54 NG_STARTED","updateT 2020-11-06 16:05:06.598 (BMW) 69 6d 65 22 3a 22 32 30 32 30 2d 31 31 2d 30 36 54 31 35 3a ime":"2020-11-06T15: 2020-11-06 16:05:06.599 (BMW) 30 35 3a 30 36 2b 30 30 30 30 22 2c 22 64 6f 6f 72 44 72 69 05:06+0000","doorDri 2020-11-06 16:05:06.599 (BMW) 76 65 72 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 verFront":"CLOSED"," 2020-11-06 16:05:06.599 (BMW) 64 6f 6f 72 44 72 69 76 65 72 52 65 61 72 22 3a 22 43 4c 4f doorDriverRear":"CLO 2020-11-06 16:05:06.599 (BMW) 53 45 44 22 2c 22 64 6f 6f 72 50 61 73 73 65 6e 67 65 72 46 SED","doorPassengerF 2020-11-06 16:05:06.599 (BMW) 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 64 6f 6f 72 ront":"CLOSED","door 2020-11-06 16:05:06.600 (BMW) 50 61 73 73 65 6e 67 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 PassengerRear":"CLOS 2020-11-06 16:05:06.600 (BMW) 45 44 22 2c 22 77 69 6e 64 6f 77 44 72 69 76 65 72 46 72 6f ED","windowDriverFro 2020-11-06 16:05:06.600 (BMW) 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e 64 6f 77 nt":"CLOSED","window 2020-11-06 16:05:06.600 (BMW) 44 72 69 76 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 45 44 22 DriverRear":"CLOSED" 2020-11-06 16:05:06.600 (BMW) 2c 22 77 69 6e 64 6f 77 50 61 73 73 65 6e 67 65 72 46 72 6f ,"windowPassengerFro 2020-11-06 16:05:06.600 (BMW) 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e 64 6f 77 nt":"CLOSED","window 2020-11-06 16:05:06.601 (BMW) 50 61 73 73 65 6e 67 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 PassengerRear":"CLOS 2020-11-06 16:05:06.601 (BMW) 45 44 22 2c 22 73 75 6e 72 6f 6f 66 22 3a 22 43 4c 4f 53 45 ED","sunroof":"CLOSE 2020-11-06 16:05:06.601 (BMW) 44 22 2c 22 74 72 75 6e 6b 22 3a 22 43 4c 4f 53 45 44 22 2c D","trunk":"CLOSED", 2020-11-06 16:05:06.601 (BMW) 22 72 65 61 72 57 69 6e 64 6f 77 22 3a 22 49 4e 56 41 4c 49 "rearWindow":"INVALI 2020-11-06 16:05:06.601 (BMW) 44 22 2c 22 68 6f 6f 64 22 3a 22 43 4c 4f 53 45 44 22 2c 22 D","hood":"CLOSED"," 2020-11-06 16:05:06.602 (BMW) 64 6f 6f 72 4c 6f 63 6b 53 74 61 74 65 22 3a 22 53 45 43 55 doorLockState":"SECU 2020-11-06 16:05:06.602 (BMW) 52 45 44 22 2c 22 70 61 72 6b 69 6e 67 4c 69 67 68 74 22 3a RED","parkingLight": 2020-11-06 16:05:06.602 (BMW) 22 4f 46 46 22 2c 22 70 6f 73 69 74 69 6f 6e 4c 69 67 68 74 "OFF","positionLight 2020-11-06 16:05:06.602 (BMW) 22 3a 22 4f 46 46 22 2c 22 72 65 6d 61 69 6e 69 6e 67 46 75 ":"OFF","remainingFu 2020-11-06 16:05:06.602 (BMW) 65 6c 22 3a 31 37 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e el":17,"remainingRan 2020-11-06 16:05:06.602 (BMW) 67 65 45 6c 65 63 74 72 69 63 22 3a 33 32 2c 22 72 65 6d 61 geElectric":32,"rema 2020-11-06 16:05:06.603 (BMW) 69 6e 69 6e 67 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c iningRangeElectricMl 2020-11-06 16:05:06.603 (BMW) 73 22 3a 32 30 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e 67 s":20,"remainingRang 2020-11-06 16:05:06.603 (BMW) 65 46 75 65 6c 22 3a 32 33 30 2c 22 72 65 6d 61 69 6e 69 6e eFuel":230,"remainin 2020-11-06 16:05:06.603 (BMW) 67 52 61 6e 67 65 46 75 65 6c 4d 6c 73 22 3a 31 34 33 2c 22 gRangeFuelMls":143," 2020-11-06 16:05:06.603 (BMW) 6d 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 22 3a 34 31 maxRangeElectric":41 2020-11-06 16:05:06.604 (BMW) 2c 22 6d 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c ,"maxRangeElectricMl 2020-11-06 16:05:06.604 (BMW) 73 22 3a 32 35 2c 22 63 6f 6e 6e 65 63 74 69 6f 6e 53 74 61 s":25,"connectionSta 2020-11-06 16:05:06.604 (BMW) 74 75 73 22 3a 22 43 4f 4e 4e 45 43 54 45 44 22 2c 22 63 68 tus":"CONNECTED","ch 2020-11-06 16:05:06.604 (BMW) 61 72 67 69 6e 67 53 74 61 74 75 73 22 3a 22 43 48 41 52 47 argingStatus":"CHARG 2020-11-06 16:05:06.604 (BMW) 49 4e 47 22 2c 22 63 68 61 72 67 69 6e 67 54 69 6d 65 52 65 ING","chargingTimeRe 2020-11-06 16:05:06.604 (BMW) 6d 61 69 6e 69 6e 67 22 3a 31 30 33 2c 22 63 68 61 72 67 69 maining":103,"chargi 2020-11-06 16:05:06.605 (BMW) 6e 67 4c 65 76 65 6c 48 76 22 3a 38 31 2c 22 6c 61 73 74 43 ngLevelHv":81,"lastC 2020-11-06 16:05:06.605 (BMW) 68 61 72 67 69 6e 67 45 6e 64 52 65 61 73 6f 6e 22 3a 22 55 hargingEndReason":"U 2020-11-06 16:05:06.605 (BMW) 4e 4b 4e 4f 57 4e 22 2c 22 6c 61 73 74 43 68 61 72 67 69 6e NKNOWN","lastChargin 2020-11-06 16:05:06.605 (BMW) 67 45 6e 64 52 65 73 75 6c 74 22 3a 22 55 4e 4b 4e 4f 57 4e gEndResult":"UNKNOWN 2020-11-06 16:05:06.605 (BMW) 22 2c 22 70 6f 73 69 74 69 6f 6e 22 3a 7b 22 6c 61 74 22 3a ","position":{"lat": 2020-11-06 16:05:06.605 (BMW) xx.xxxxxx,"lon":x.xx 2020-11-06 16:05:06.606 (BMW) xxxx,"heading":271," 2020-11-06 16:05:06.606 (BMW) 73 74 61 74 75 73 22 3a 22 4f 4b 22 7d 2c 22 69 6e 74 65 72 status":"OK"},"inter 2020-11-06 16:05:06.606 (BMW) 6e 61 6c 44 61 74 61 54 69 6d 65 55 54 43 22 3a 22 32 30 32 nalDataTimeUTC":"202 2020-11-06 16:05:06.606 (BMW) 30 2d 31 31 2d 30 36 54 31 33 3a 33 38 3a 30 32 22 2c 22 73 0-11-06T13:38:02","s 2020-11-06 16:05:06.606 (BMW) 69 6e 67 6c 65 49 6d 6d 65 64 69 61 74 65 43 68 61 72 67 69 ingleImmediateChargi 2020-11-06 16:05:06.606 (BMW) 6e 67 22 3a 66 61 6c 73 65 2c 22 63 68 61 72 67 69 6e 67 43 ng":false,"chargingC 2020-11-06 16:05:06.607 (BMW) 6f 6e 6e 65 63 74 69 6f 6e 54 79 70 65 22 3a 22 43 4f 4e 44 onnectionType":"COND 2020-11-06 16:05:06.607 (BMW) 55 43 54 49 56 45 22 2c 22 76 65 68 69 63 6c 65 43 6f 75 6e UCTIVE","vehicleCoun 2020-11-06 16:05:06.607 (BMW) 74 72 79 22 3a 22 4e 4c 22 2c 22 63 68 65 63 6b 43 6f 6e 74 try":"NL","checkCont 2020-11-06 16:05:06.607 (BMW) 72 6f 6c 4d 65 73 73 61 67 65 73 22 3a 5b 5d 2c 22 63 62 73 rolMessages":[],"cbs 2020-11-06 16:05:06.607 (BMW) 44 61 74 61 22 3a 5b 7b 22 63 62 73 54 79 70 65 22 3a 22 4f Data":[{"cbsType":"O 2020-11-06 16:05:06.607 (BMW) 49 4c 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 4f 4b 22 2c IL","cbsState":"OK", 2020-11-06 16:05:06.608 (BMW) 22 63 62 73 52 65 6d 61 69 6e 69 6e 67 4d 69 6c 65 61 67 65 "cbsRemainingMileage 2020-11-06 16:05:06.608 (BMW) 22 3a 33 30 30 30 30 2c 22 63 62 73 44 75 65 44 61 74 65 22 ":30000,"cbsDueDate" 2020-11-06 16:05:06.608 (BMW) 3a 22 32 30 32 32 2d 30 38 22 2c 22 63 62 73 44 65 73 63 72 :"2022-08","cbsDescr 2020-11-06 16:05:06.608 (BMW) 69 70 74 69 6f 6e 22 3a 22 4e 65 78 74 20 73 65 72 76 69 63 iption":"Next.servic 2020-11-06 16:05:06.608 (BMW) 65 20 64 75 65 20 77 68 65 6e 20 74 68 65 20 73 74 61 74 65 e.due.when.the.state 2020-11-06 16:05:06.608 (BMW) 64 20 64 69 73 74 61 6e 63 65 20 68 61 73 20 62 65 65 6e 20 d.distance.has.been. 2020-11-06 16:05:06.609 (BMW) 63 6f 76 65 72 65 64 20 6f 72 20 62 79 20 74 68 65 20 73 70 covered.or.by.the.sp 2020-11-06 16:05:06.609 (BMW) 65 63 69 66 69 65 64 20 64 61 74 65 2e 22 7d 2c 7b 22 63 62 ecified.date."},{"cb 2020-11-06 16:05:06.609 (BMW) 73 54 79 70 65 22 3a 22 56 45 48 49 43 4c 45 5f 43 48 45 43 sType":"VEHICLECHEC 2020-11-06 16:05:06.609 (BMW) 4b 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 4f 4b 22 2c 22 K","cbsState":"OK"," 2020-11-06 16:05:06.609 (BMW) 63 62 73 52 65 6d 61 69 6e 69 6e 67 4d 69 6c 65 61 67 65 22 cbsRemainingMileage" 2020-11-06 16:05:06.609 (BMW) 3a 36 30 30 30 30 2c 22 63 62 73 44 75 65 44 61 74 65 22 3a :60000,"cbsDueDate": 2020-11-06 16:05:06.610 (BMW) 22 32 30 32 34 2d 30 38 22 2c 22 63 62 73 44 65 73 63 72 69 "2024-08","cbsDescri 2020-11-06 16:05:06.610 (BMW) 70 74 69 6f 6e 22 3a 22 4e 65 78 74 20 76 69 73 75 61 6c 20 ption":"Next.visual. 2020-11-06 16:05:06.610 (BMW) 69 6e 73 70 65 63 74 69 6f 6e 20 64 75 65 20 77 68 65 6e 20 inspection.due.when. 2020-11-06 16:05:06.610 (BMW) 74 68 65 20 73 74 61 74 65 64 20 64 69 73 74 61 6e 63 65 20 the.stated.distance. 2020-11-06 16:05:06.610 (BMW) 68 61 73 20 62 65 65 6e 20 63 6f 76 65 72 65 64 20 6f 72 20 has.been.covered.or. 2020-11-06 16:05:06.611 (BMW) 62 79 20 74 68 65 20 73 74 61 74 65 64 20 64 61 74 65 2e 22 by.the.stated.date." 2020-11-06 16:05:06.611 (BMW) 7d 2c 7b 22 63 62 73 54 79 70 65 22 3a 22 42 52 41 4b 45 5f },{"cbsType":"BRAKE 2020-11-06 16:05:06.611 (BMW) 46 4c 55 49 44 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 4f FLUID","cbsState":"O 2020-11-06 16:05:06.611 (BMW) 4b 22 2c 22 63 62 73 44 75 65 44 61 74 65 22 3a 22 32 30 32 K","cbsDueDate":"202 2020-11-06 16:05:06.611 (BMW) 33 2d 30 39 22 2c 22 63 62 73 44 65 73 63 72 69 70 74 69 6f 3-09","cbsDescriptio 2020-11-06 16:05:06.611 (BMW) 6e 22 3a 22 4e 65 78 74 20 63 68 61 6e 67 65 20 64 75 65 20 n":"Next.change.due. 2020-11-06 16:05:06.612 (BMW) 61 74 20 74 68 65 20 6c 61 74 65 73 74 20 62 79 20 74 68 65 at.the.latest.by.the 2020-11-06 16:05:06.612 (BMW) 20 73 74 61 74 65 64 20 64 61 74 65 2e 22 7d 5d 2c 22 44 43 .stated.date."}],"DC 2020-11-06 16:05:06.612 (BMW) 53 5f 43 43 48 5f 41 63 74 69 76 61 74 69 6f 6e 22 3a 22 4e S_CCH_Activation":"N 2020-11-06 16:05:06.612 (BMW) 41 22 2c 22 44 43 53 5f 43 43 48 5f 4f 6e 67 6f 69 6e 67 22 A","DCS_CCH_Ongoing"
It's done... I created a branch called "MoreInfo"... Would you be so kind to test it with your car (as my car does not have electric capacity, I cannot do it myself). If you supply feedback, I will either adapt/correct and/or commit it in the main branch. The devices with extra information is not by default visible. You should add them manually through the Setup - Devices menu.
That is fast! I will try this evening to test it. Will let you know the results
Great work.
For some reason I had to update to: Domoticz 2020.2 (build 12554) to have it all working.
README: pip3 install urllib3 (I needed to use to install urllib)
In my own implementation I did add the GEO location. My GF can request the location and it will be pushed to her phone as a telegram MAP, so she can see if the car is on its way home. Also the location is pushed to 'Traccar'.
In addition the GEO is used (polled per minute) so if I enter the driveway the lights go on.
May I suggest to add 'door_lock_state', I connect this info with my home Alarm system 'hood_state', I connect this info with my home Alarm system 'trunk_state', I connect this info with my home Alarm system 'sunroof_state', I connect this info with my home Alarm system & Rain meter ;-)
Filip,
Working (and data is correct)!
I do realized that the "ChargingLevelHv" (Battery level) is also interesting.
Nice work!
Wim
Done (battery level)! Will also merge to the main branche. Btw: small contributions are always welcome :-)
Filip,
Just discovered that the mileage (Fuel) is in fact the Total milage. I saw the value going up during charging of my car... Thanks for the updates
Wim
Do you mean with "mileage (Fuel)" the "Remaining mileage (fuel)"? Would be strange because I checked the code and for the "Remaining mileage (fuel)" I taken the information 'remainingRangeFuel'... Could you give me two logs together with a screenshot of the device (at the same moment). You can take the screenshot from the Setup - Devices (filter on the BMW devices). Be sure that the screenshot contains all the data.
Herwith some data:
2020-11-08 18:43:45.519 (BMW) 44 72 69 76 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 45 44 22 DriverRear":"CLOSED" 2020-11-08 18:43:45.519 (BMW) 2c 22 77 69 6e 64 6f 77 50 61 73 73 65 6e 67 65 72 46 72 6f ,"windowPassengerFro 2020-11-08 18:43:45.519 (BMW) 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e 64 6f 77 nt":"CLOSED","window 2020-11-08 18:43:45.520 (BMW) 50 61 73 73 65 6e 67 65 72 52 65 61 72 22 3a 22 43 4c 4f 53 PassengerRear":"CLOS 2020-11-08 18:43:45.520 (BMW) 45 44 22 2c 22 73 75 6e 72 6f 6f 66 22 3a 22 43 4c 4f 53 45 ED","sunroof":"CLOSE 2020-11-08 18:43:45.520 (BMW) 44 22 2c 22 74 72 75 6e 6b 22 3a 22 43 4c 4f 53 45 44 22 2c D","trunk":"CLOSED", 2020-11-08 18:43:45.520 (BMW) 22 72 65 61 72 57 69 6e 64 6f 77 22 3a 22 49 4e 56 41 4c 49 "rearWindow":"INVALI 2020-11-08 18:43:45.520 (BMW) 44 22 2c 22 68 6f 6f 64 22 3a 22 43 4c 4f 53 45 44 22 2c 22 D","hood":"CLOSED"," 2020-11-08 18:43:45.520 (BMW) 64 6f 6f 72 4c 6f 63 6b 53 74 61 74 65 22 3a 22 53 45 43 55 doorLockState":"SECU 2020-11-08 18:43:45.521 (BMW) 52 45 44 22 2c 22 70 61 72 6b 69 6e 67 4c 69 67 68 74 22 3a RED","parkingLight": 2020-11-08 18:43:45.521 (BMW) 22 4f 46 46 22 2c 22 70 6f 73 69 74 69 6f 6e 4c 69 67 68 74 "OFF","positionLight 2020-11-08 18:43:45.521 (BMW) 22 3a 22 4f 46 46 22 2c 22 72 65 6d 61 69 6e 69 6e 67 46 75 ":"OFF","remainingFu 2020-11-08 18:43:45.521 (BMW) 65 6c 22 3a 31 32 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e el":12,"remainingRan 2020-11-08 18:43:45.521 (BMW) 67 65 45 6c 65 63 74 72 69 63 22 3a 33 30 2c 22 72 65 6d 61 geElectric":30,"rema 2020-11-08 18:43:45.521 (BMW) 69 6e 69 6e 67 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c iningRangeElectricMl 2020-11-08 18:43:45.521 (BMW) 73 22 3a 31 38 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e 67 s":18,"remainingRang 2020-11-08 18:43:45.522 (BMW) 65 46 75 65 6c 22 3a 31 38 35 2c 22 72 65 6d 61 69 6e 69 6e eFuel":185,"remainin 2020-11-08 18:43:45.522 (BMW) 67 52 61 6e 67 65 46 75 65 6c 4d 6c 73 22 3a 31 31 35 2c 22 gRangeFuelMls":115," 2020-11-08 18:43:45.522 (BMW) 6d 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 22 3a 34 32 maxRangeElectric":42 2020-11-08 18:43:45.522 (BMW) 2c 22 6d 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c ,"maxRangeElectricMl 2020-11-08 18:43:45.522 (BMW) 73 22 3a 32 36 2c 22 63 6f 6e 6e 65 63 74 69 6f 6e 53 74 61 s":26,"connectionSta 2020-11-08 18:43:45.522 (BMW) 74 75 73 22 3a 22 43 4f 4e 4e 45 43 54 45 44 22 2c 22 63 68 tus":"CONNECTED","ch 2020-11-08 18:43:45.523 (BMW) 61 72 67 69 6e 67 53 74 61 74 75 73 22 3a 22 43 48 41 52 47 argingStatus":"CHARG 2020-11-08 18:43:45.523 (BMW) 49 4e 47 22 2c 22 63 68 61 72 67 69 6e 67 54 69 6d 65 52 65 ING","chargingTimeRe 2020-11-08 18:43:45.523 (BMW) 6d 61 69 6e 69 6e 67 22 3a 31 33 38 2c 22 63 68 61 72 67 69 maining":138,"chargi 2020-11-08 18:43:45.523 (BMW) 6e 67 4c 65 76 65 6c 48 76 22 3a 37 35 2c 22 6c 61 73 74 43 ngLevelHv":75,"lastC 2020-11-08 18:43:45.523 (BMW) 68 61 72 67 69 6e 67 45 6e 64 52 65 61 73 6f 6e 22 3a 22 55 hargingEndReason":"U 2020-11-08 18:43:45.523 (BMW) 4e 4b 4e 4f 57 4e 22 2c 22 6c 61 73 74 43 68 61 72 67 69 6e NKNOWN","lastChargin 2020-11-08 18:43:45.524 (BMW) 67 45 6e 64 52 65 73 75 6c 74 22 3a 22 55 4e 4b 4e 4f 57 4e gEndResult":"UNKNOWN 2020-11-08 18:43:45.524 (BMW) 22 2c 22 70 6f 73 69 74 69 6f 6e 22 3a 7b 22 6c 61 74 22 3a ","position":{"lat": "lon": 2020-11-08 18:43:45.524 (BMW) ,"heading":273, 2020-11-08 18:43:45.524 (BMW) 22 73 74 61 74 75 73 22 3a 22 4f 4b 22 7d 2c 22 69 6e 74 65 "status":"OK"},"inte 2020-11-08 18:43:45.525 (BMW) 72 6e 61 6c 44 61 74 61 54 69 6d 65 55 54 43 22 3a 22 32 30 rnalDataTimeUTC":"20 2020-11-08 18:43:45.525 (BMW) 32 30 2d 31 31 2d 30 38 54 31 35 3a 35 36 3a 31 30 22 2c 22 20-11-08T15:56:10"," 2020-11-08 18:43:45.525 (BMW) 73 69 6e 67 6c 65 49 6d 6d 65 64 69 61 74 65 43 68 61 72 67 singleImmediateCharg 2020-11-08 18:43:45.526 (BMW) 69 6e 67 22 3a 66 61 6c 73 65 2c 22 63 68 61 72 67 69 6e 67 ing":false,"charging 2020-11-08 18:43:45.526 (BMW) 43 6f 6e 6e 65 63 74 69 6f 6e 54 79 70 65 22 3a 22 43 4f 4e ConnectionType":"CON 2020-11-08 18:43:45.526 (BMW) 44 55 43 54 49 56 45 22 2c 22 76 65 68 69 63 6c 65 43 6f 75 DUCTIVE","vehicleCou 2020-11-08 18:43:45.526 (BMW) 6e 74 72 79 22 3a 22 4e 4c 22 2c 22 63 68 65 63 6b 43 6f 6e ntry":"NL","checkCon 2020-11-08 18:43:45.526 (BMW) 74 72 6f 6c 4d 65 73 73 61 67 65 73 22 3a 5b 5d 2c 22 63 62 trolMessages":[],"cb 2020-11-08 18:43:45.526 (BMW) 73 44 61 74 61 22 3a 5b 7b 22 63 62 73 54 79 70 65 22 3a 22 sData":[{"cbsType":" 2020-11-08 18:43:45.527 (BMW) 4f 49 4c 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 4f 4b 22 OIL","cbsState":"OK" 2020-11-08 18:43:45.527 (BMW) 2c 22 63 62 73 52 65 6d 61 69 6e 69 6e 67 4d 69 6c 65 61 67 ,"cbsRemainingMileag 2020-11-08 18:43:45.527 (BMW) 65 22 3a 33 30 30 30 30 2c 22 63 62 73 44 75 65 44 61 74 65 e":30000,"cbsDueDate 2020-11-08 18:43:45.527 (BMW) 22 3a 22 32 30 32 32 2d 30 38 22 2c 22 63 62 73 44 65 73 63 ":"2022-08","cbsDesc 2020-11-08 18:43:45.527 (BMW) 72 69 70 74 69 6f 6e 22 3a 22 4e 65 78 74 20 73 65 72 76 69 ription":"Next.servi 2020-11-08 18:43:45.527 (BMW) 63 65 20 64 75 65 20 77 68 65 6e 20 74 68 65 20 73 74 61 74 ce.due.when.the.stat 2020-11-08 18:43:45.528 (BMW) 65 64 20 64 69 73 74 61 6e 63 65 20 68 61 73 20 62 65 65 6e ed.distance.has.been 2020-11-08 18:43:45.528 (BMW) 20 63 6f 76 65 72 65 64 20 6f 72 20 62 79 20 74 68 65 20 73 .covered.or.by.the.s 2020-11-08 18:43:45.528 (BMW) 70 65 63 69 66 69 65 64 20 64 61 74 65 2e 22 7d 2c 7b 22 63 pecified.date."},{"c 2020-11-08 18:43:45.528 (BMW) 62 73 54 79 70 65 22 3a 22 56 45 48 49 43 4c 45 5f 43 48 45 bsType":"VEHICLE_CHE 2020-11-08 18:43:45.528 (BMW) 43 4b 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 4f 4b 22 2c CK","cbsState":"OK", 2020-11-08 18:43:45.528 (BMW) 22 63 62 73 52 65 6d 61 69 6e 69 6e 67 4d 69 6c 65 61 67 65 "cbsRemainingMileage 2020-11-08 18:43:45.529 (BMW) 22 3a 36 30 30 30 30 2c 22 63 62 73 44 75 65 44 61 74 65 22 ":60000,"cbsDueDate" 2020-11-08 18:43:45.529 (BMW) 3a 22 32 30 32 34 2d 30 38 22 2c 22 63 62 73 44 65 73 63 72 :"2024-08","cbsDescr 2020-11-08 18:43:45.529 (BMW) 69 70 74 69 6f 6e 22 3a 22 4e 65 78 74 20 76 69 73 75 61 6c iption":"Next.visual 2020-11-08 18:43:45.529 (BMW) 20 69 6e 73 70 65 63 74 69 6f 6e 20 64 75 65 20 77 68 65 6e .inspection.due.when 2020-11-08 18:43:45.529 (BMW) 20 74 68 65 20 73 74 61 74 65 64 20 64 69 73 74 61 6e 63 65 .the.stated.distance 2020-11-08 18:43:45.529 (BMW) 20 68 61 73 20 62 65 65 6e 20 63 6f 76 65 72 65 64 20 6f 72 .has.been.covered.or 2020-11-08 18:43:45.530 (BMW) 20 62 79 20 74 68 65 20 73 74 61 74 65 64 20 64 61 74 65 2e .by.the.stated.date. 2020-11-08 18:43:45.530 (BMW) 22 7d 2c 7b 22 63 62 73 54 79 70 65 22 3a 22 42 52 41 4b 45 "},{"cbsType":"BRAKE 2020-11-08 18:43:45.530 (BMW) 5f 46 4c 55 49 44 22 2c 22 63 62 73 53 74 61 74 65 22 3a 22 _FLUID","cbsState":" 2020-11-08 18:43:45.530 (BMW) 4f 4b 22 2c 22 63 62 73 44 75 65 44 61 74 65 22 3a 22 32 30 OK","cbsDueDate":"20 2020-11-08 18:43:45.530 (BMW) 32 33 2d 30 39 22 2c 22 63 62 73 44 65 73 63 72 69 70 74 69 23-09","cbsDescripti 2020-11-08 18:43:45.530 (BMW) 6f 6e 22 3a 22 4e 65 78 74 20 63 68 61 6e 67 65 20 64 75 65 on":"Next.change.due 2020-11-08 18:43:45.530 (BMW) 20 61 74 20 74 68 65 20 6c 61 74 65 73 74 20 62 79 20 74 68 .at.the.latest.by.th 2020-11-08 18:43:45.531 (BMW) 65 20 73 74 61 74 65 64 20 64 61 74 65 2e 22 7d 5d 2c 22 44 e.stated.date."}],"D 2020-11-08 18:43:45.531 (BMW) 43 53 5f 43 43 48 5f 41 63 74 69 76 61 74 69 6f 6e 22 3a 22 CS_CCH_Activation":" 2020-11-08 18:43:45.531 (BMW) 4e 41 22 2c 22 44 43 53 5f 43 43 48 5f 4f 6e 67 6f 69 6e 67 NA","DCS_CCH_Ongoing
Seems that the 'RemaininRangeFuel' in fact is the total of both EV and Petrol There is also a ''RamainingFuel" having a value of 12. (I guess this is 12 Liter since my fuel dial show around 1/4 full)
Best regards
Wim
battery level show 0%. The car currently is not charging.
while charging level is 61% in the log file (which is correct)
Normally the problem of the remaining mileage (fuel) should be solved based on the information you supplied me. So I subtract the remainingRangeElectric from the remainingRangeFuel. Is this OK? Or do you prefer that I just rename the device "Remaining mileage (fuel)" into "Remaining mileage (total)". This would make more sense for me. Let me know and I will change again. The problem with the charging level is not yet understood. Need a bit more time to investigate. However do you confirm that you do a browser refresh to be sure it is the latest information? Thanks for feedback.
hi Filip,
thanks for this great plugin, but little problem for me plugin installation ok, all devices are present in Domoticz but stay to null in Domoticz (Version: 2020.2 debian 10.6)
in the log i can see that the connection to bmw server is ok but there are some error
2020-11-11 21:10:15.250 Error: (Mini) 'onMessage' failed 'KeyError'. 2020-11-11 21:10:15.250 Error: (Mini) ----> Line 267 in '/home/pi/domoticz/plugins/Bmw/plugin.py', function onMessage 2020-11-11 21:10:15.250 Error: (Mini) ----> Line 147 in '/home/pi/domoticz/plugins/Bmw/plugin.py', function onMessage
thanks for your help Fred
full log here :
2020-11-11 21:09:54.643 (Mini) Pushing 'onHeartbeatCallback' on to queue 2020-11-11 21:09:54.659 (Mini) Processing 'onHeartbeatCallback' message 2020-11-11 21:09:54.659 (Mini) Calling message handler 'onHeartbeat'. 2020-11-11 21:09:54.659 (Mini) onHeartbeat called 2020-11-11 21:09:54.659 (Mini) onHeartbeat called, run again in 2 heartbeats. 2020-11-11 21:10:04.649 (Mini) Pushing 'onHeartbeatCallback' on to queue 2020-11-11 21:10:04.653 (Mini) Processing 'onHeartbeatCallback' message 2020-11-11 21:10:04.653 (Mini) Calling message handler 'onHeartbeat'. 2020-11-11 21:10:04.653 (Mini) onHeartbeat called 2020-11-11 21:10:04.653 (Mini) onHeartbeat called, run again in 1 heartbeats. 2020-11-11 21:10:15.249 (Mini) 65 3a 20 57 65 64 2c 20 31 31 20 4e 6f 76 20 32 30 32 30 20 e:.Wed,.11.Nov.2020. 2020-11-11 21:10:15.249 (Mini) 32 30 3a 31 30 3a 31 34 20 47 4d 54 0d 0a 53 65 72 76 65 72 20:10:14.GMT..Server 2020-11-11 21:10:15.249 (Mini) 3a 20 73 65 72 76 65 72 0d 0a 4d 61 78 2d 46 6f 72 77 61 72 :.server..Max-Forwar 2020-11-11 21:10:15.249 (Mini) 64 73 3a 20 32 30 0d 0a 56 69 61 3a 20 31 2e 30 20 6c 70 63 ds:.20..Via:.1.0.lpc 2020-11-11 21:10:15.249 (Mini) 64 61 70 69 67 61 70 70 30 34 20 28 29 0d 0a 58 2d 43 6f 72 dapigapp04.()..X-Cor 2020-11-11 21:10:15.249 (Mini) 72 65 6c 61 74 69 6f 6e 49 44 3a 20 49 64 2d 32 36 34 35 61 relationID:.Id-2645a 2020-11-11 21:10:15.249 (Mini) 63 35 66 30 38 63 66 37 64 63 31 34 38 66 30 31 37 36 31 20 c5f08cf7dc148f01761. 2020-11-11 21:10:15.249 (Mini) 30 0d 0a 43 61 63 68 65 2d 63 6f 6e 74 72 6f 6c 3a 20 70 72 0..Cache-control:.pr 2020-11-11 21:10:15.249 (Mini) 69 76 61 74 65 0d 0a 53 74 72 69 63 74 2d 54 72 61 6e 73 70 ivate..Strict-Transp 2020-11-11 21:10:15.249 (Mini) 6f 72 74 2d 53 65 63 75 72 69 74 79 3a 20 6d 61 78 2d 61 67 ort-Security:.max-ag 2020-11-11 21:10:15.249 (Mini) 65 3d 33 31 35 33 36 30 30 30 3b 20 69 6e 63 6c 75 64 65 53 e=31536000;.includeS 2020-11-11 21:10:15.249 (Mini) 75 62 44 6f 6d 61 69 6e 73 0d 0a 58 2d 43 6f 6e 74 65 6e 74 ubDomains..X-Content 2020-11-11 21:10:15.249 (Mini) 2d 54 79 70 65 2d 4f 70 74 69 6f 6e 73 3a 20 6e 6f 73 6e 69 -Type-Options:.nosni 2020-11-11 21:10:15.249 (Mini) 66 66 0d 0a 58 2d 46 72 61 6d 65 2d 4f 70 74 69 6f 6e 73 3a ff..X-Frame-Options: 2020-11-11 21:10:15.249 (Mini) 20 44 65 6e 79 0d 0a 58 2d 58 53 53 2d 50 72 6f 74 65 63 74 .Deny..X-XSS-Protect 2020-11-11 21:10:15.249 (Mini) 69 6f 6e 3a 20 31 3b 20 6d 6f 64 65 3d 62 6c 6f 63 6b 0d 0a ion:.1;.mode=block.. 2020-11-11 21:10:15.249 (Mini) 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 Content-Type:.applic 2020-11-11 21:10:15.249 (Mini) 61 74 69 6f 6e 2f 6a 73 6f 6e 3b 63 68 61 72 73 65 74 3d 55 ation/json;charset=U 2020-11-11 21:10:15.249 (Mini) 54 46 2d 38 0d 0a 53 65 74 2d 43 6f 6f 6b 69 65 3a 20 34 38 TF-8..Set-Cookie:.48 2020-11-11 21:10:15.249 (Mini) 34 62 33 39 39 62 30 31 38 65 61 61 37 61 33 33 36 63 31 61 4b399b018eaa7a336c1a 2020-11-11 21:10:15.249 (Mini) 38 32 66 33 33 31 39 35 34 36 3d 36 66 30 37 34 33 39 31 63 82f3319546=6f074391c 2020-11-11 21:10:15.249 (Mini) 38 62 65 63 39 33 37 30 36 33 65 61 38 30 66 37 36 63 62 39 8bec937063ea80f76cb9 2020-11-11 21:10:15.249 (Mini) 31 61 62 3b 20 70 61 74 68 3d 2f 3b 20 48 74 74 70 4f 6e 6c 1ab;.path=/;.HttpOnl 2020-11-11 21:10:15.249 (Mini) 79 3b 20 53 65 63 75 72 65 0d 0a 53 65 74 2d 43 6f 6f 6b 69 y;.Secure..Set-Cooki 2020-11-11 21:10:15.249 (Mini) 65 3a 20 52 4f 55 54 45 49 44 3d 2e 30 3b 20 70 61 74 68 3d e:.ROUTEID=.0;.path= 2020-11-11 21:10:15.249 (Mini) 2f 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e 67 /..Transfer-Encoding 2020-11-11 21:10:15.249 (Mini) 3a 20 63 68 75 6e 6b 65 64 0d 0a 0d 0a 35 35 63 0d 0a 7b 22 :.chunked....55c..{" 2020-11-11 21:10:15.249 (Mini) 76 65 68 69 63 6c 65 53 74 61 74 75 73 22 3a 7b 22 76 69 6e vehicleStatus":{"vin 2020-11-11 21:10:15.249 (Mini) 22 3a 22 57 4d 57 58 50 33 31 30 33 30 32 4e 37 31 32 34 39 ":"WMWXP310302N71249 2020-11-11 21:10:15.249 (Mini) 22 2c 22 6d 69 6c 65 61 67 65 22 3a 39 37 39 2c 22 75 70 64 ","mileage":979,"upd 2020-11-11 21:10:15.249 (Mini) 61 74 65 52 65 61 73 6f 6e 22 3a 22 56 45 48 49 43 4c 45 5f ateReason":"VEHICLE_ 2020-11-11 21:10:15.249 (Mini) 53 48 55 54 44 4f 57 4e 22 2c 22 75 70 64 61 74 65 54 69 6d SHUTDOWN","updateTim 2020-11-11 21:10:15.249 (Mini) 65 22 3a 22 32 30 32 30 2d 31 31 2d 31 30 54 31 37 3a 32 32 e":"2020-11-10T17:22 2020-11-11 21:10:15.249 (Mini) 3a 33 38 2b 30 30 30 30 22 2c 22 64 6f 6f 72 44 72 69 76 65 :38+0000","doorDrive 2020-11-11 21:10:15.249 (Mini) 72 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 64 6f rFront":"CLOSED","do 2020-11-11 21:10:15.249 (Mini) 6f 72 50 61 73 73 65 6e 67 65 72 46 72 6f 6e 74 22 3a 22 43 orPassengerFront":"C 2020-11-11 21:10:15.249 (Mini) 4c 4f 53 45 44 22 2c 22 77 69 6e 64 6f 77 44 72 69 76 65 72 LOSED","windowDriver 2020-11-11 21:10:15.249 (Mini) 46 72 6f 6e 74 22 3a 22 43 4c 4f 53 45 44 22 2c 22 77 69 6e Front":"CLOSED","win 2020-11-11 21:10:15.249 (Mini) 64 6f 77 50 61 73 73 65 6e 67 65 72 46 72 6f 6e 74 22 3a 22 dowPassengerFront":" 2020-11-11 21:10:15.249 (Mini) 43 4c 4f 53 45 44 22 2c 22 73 75 6e 72 6f 6f 66 22 3a 22 43 CLOSED","sunroof":"C 2020-11-11 21:10:15.249 (Mini) 4c 4f 53 45 44 22 2c 22 74 72 75 6e 6b 22 3a 22 43 4c 4f 53 LOSED","trunk":"CLOS 2020-11-11 21:10:15.249 (Mini) 45 44 22 2c 22 68 6f 6f 64 22 3a 22 43 4c 4f 53 45 44 22 2c ED","hood":"CLOSED", 2020-11-11 21:10:15.249 (Mini) 22 64 6f 6f 72 4c 6f 63 6b 53 74 61 74 65 22 3a 22 55 4e 4c "doorLockState":"UNL 2020-11-11 21:10:15.249 (Mini) 4f 43 4b 45 44 22 2c 22 70 61 72 6b 69 6e 67 4c 69 67 68 74 OCKED","parkingLight 2020-11-11 21:10:15.249 (Mini) 22 3a 22 4f 46 46 22 2c 22 70 6f 73 69 74 69 6f 6e 4c 69 67 ":"OFF","positionLig 2020-11-11 21:10:15.249 (Mini) 68 74 22 3a 22 4f 4e 22 2c 22 72 65 6d 61 69 6e 69 6e 67 46 ht":"ON","remainingF 2020-11-11 21:10:15.249 (Mini) 75 65 6c 22 3a 30 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e uel":0,"remainingRan 2020-11-11 21:10:15.249 (Mini) 67 65 45 6c 65 63 74 72 69 63 22 3a 38 39 2c 22 72 65 6d 61 geElectric":89,"rema 2020-11-11 21:10:15.249 (Mini) 69 6e 69 6e 67 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c iningRangeElectricMl 2020-11-11 21:10:15.249 (Mini) 73 22 3a 35 35 2c 22 72 65 6d 61 69 6e 69 6e 67 52 61 6e 67 s":55,"remainingRang 2020-11-11 21:10:15.250 (Mini) 65 46 75 65 6c 22 3a 31 30 39 2c 22 72 65 6d 61 69 6e 69 6e eFuel":109,"remainin 2020-11-11 21:10:15.250 (Mini) 67 52 61 6e 67 65 46 75 65 6c 4d 6c 73 22 3a 36 37 2c 22 6d gRangeFuelMls":67,"m 2020-11-11 21:10:15.250 (Mini) 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 22 3a 31 33 38 axRangeElectric":138 2020-11-11 21:10:15.250 (Mini) 2c 22 6d 61 78 52 61 6e 67 65 45 6c 65 63 74 72 69 63 4d 6c ,"maxRangeElectricMl 2020-11-11 21:10:15.250 (Mini) 73 22 3a 38 35 2c 22 63 6f 6e 6e 65 63 74 69 6f 6e 53 74 61 s":85,"connectionSta 2020-11-11 21:10:15.250 (Mini) 74 75 73 22 3a 22 44 49 53 43 4f 4e 4e 45 43 54 45 44 22 2c tus":"DISCONNECTED", 2020-11-11 21:10:15.250 (Mini) 22 63 68 61 72 67 69 6e 67 53 74 61 74 75 73 22 3a 22 49 4e "chargingStatus":"IN 2020-11-11 21:10:15.250 (Mini) 56 41 4c 49 44 22 2c 22 63 68 61 72 67 69 6e 67 4c 65 76 65 VALID","chargingLeve 2020-11-11 21:10:15.250 (Mini) 6c 48 76 22 3a 36 37 2c 22 6c 61 73 74 43 68 61 72 67 69 6e lHv":67,"lastChargin 2020-11-11 21:10:15.250 (Mini) 67 45 6e 64 52 65 61 73 6f 6e 22 3a 22 45 4e 44 5f 52 45 51 gEndReason":"END_REQ 2020-11-11 21:10:15.250 (Mini) 55 45 53 54 45 44 5f 42 59 5f 44 52 49 56 45 52 22 2c 22 6c UESTED_BY_DRIVER","l 2020-11-11 21:10:15.250 (Mini) 61 73 74 43 68 61 72 67 69 6e 67 45 6e 64 52 65 73 75 6c 74 astChargingEndResult 2020-11-11 21:10:15.250 (Mini) 22 3a 22 53 55 43 43 45 53 53 22 2c 22 70 6f 73 69 74 69 6f ":"SUCCESS","positio 2020-11-11 21:10:15.250 (Mini) 6e 22 3a 7b 22 6c 61 74 22 3a 34 39 2e 30 31 39 37 32 36 2c n":{"lat":49.019726, 2020-11-11 21:10:15.250 (Mini) 22 6c 6f 6e 22 3a 36 2e 34 31 36 36 37 35 36 2c 22 68 65 61 "lon":6.4166756,"hea 2020-11-11 21:10:15.250 (Mini) 64 69 6e 67 22 3a 33 32 36 2c 22 73 74 61 74 75 73 22 3a 22 ding":326,"status":" 2020-11-11 21:10:15.250 (Mini) 4f 4b 22 7d 2c 22 69 6e 74 65 72 6e 61 6c 44 61 74 61 54 69 OK"},"internalDataTi 2020-11-11 21:10:15.250 (Mini) 6d 65 55 54 43 22 3a 22 32 30 32 30 2d 31 31 2d 31 30 54 31 meUTC":"2020-11-10T1 2020-11-11 21:10:15.250 (Mini) 37 3a 32 32 3a 33 38 22 2c 22 73 69 6e 67 6c 65 49 6d 6d 65 7:22:38","singleImme 2020-11-11 21:10:15.250 (Mini) 64 69 61 74 65 43 68 61 72 67 69 6e 67 22 3a 66 61 6c 73 65 diateCharging":false 2020-11-11 21:10:15.250 (Mini) 2c 22 63 68 61 72 67 69 6e 67 43 6f 6e 6e 65 63 74 69 6f 6e ,"chargingConnection 2020-11-11 21:10:15.250 (Mini) 54 79 70 65 22 3a 22 43 4f 4e 44 55 43 54 49 56 45 22 2c 22 Type":"CONDUCTIVE"," 2020-11-11 21:10:15.250 (Mini) 63 68 61 72 67 69 6e 67 49 6e 64 75 63 74 69 76 65 50 6f 73 chargingInductivePos 2020-11-11 21:10:15.250 (Mini) 69 74 69 6f 6e 69 6e 67 22 3a 22 4e 4f 54 5f 50 4f 53 49 54 itioning":"NOT_POSIT 2020-11-11 21:10:15.250 (Mini) 49 4f 4e 45 44 22 2c 22 76 65 68 69 63 6c 65 43 6f 75 6e 74 IONED","vehicleCount 2020-11-11 21:10:15.250 (Mini) 72 79 22 3a 22 46 52 22 2c 22 63 68 65 63 6b 43 6f 6e 74 72 ry":"FR","checkContr 2020-11-11 21:10:15.250 (Mini) 6f 6c 4d 65 73 73 61 67 65 73 22 3a 5b 5d 2c 22 63 62 73 44 olMessages":[],"cbsD 2020-11-11 21:10:15.250 (Mini) 61 74 61 22 3a 5b 7b 22 63 62 73 54 79 70 65 22 3a 22 56 45 ata":[{"cbsType":"VE 2020-11-11 21:10:15.250 (Mini) 48 49 43 4c 45 5f 43 48 45 43 4b 22 2c 22 63 62 73 53 74 61 HICLE_CHECK","cbsSta 2020-11-11 21:10:15.250 (Mini) 74 65 22 3a 22 4f 4b 22 2c 22 63 62 73 44 75 65 44 61 74 65 te":"OK","cbsDueDate 2020-11-11 21:10:15.250 (Mini) 22 3a 22 32 30 32 32 2d 31 30 22 2c 22 63 62 73 44 65 73 63 ":"2022-10","cbsDesc 2020-11-11 21:10:15.250 (Mini) 72 69 70 74 69 6f 6e 22 3a 22 4e 65 78 74 20 76 69 73 75 61 ription":"Next.visua 2020-11-11 21:10:15.250 (Mini) 6c 20 69 6e 73 70 65 63 74 69 6f 6e 20 64 75 65 20 77 68 65 l.inspection.due.whe 2020-11-11 21:10:15.250 (Mini) 6e 20 74 68 65 20 73 74 61 74 65 64 20 64 69 73 74 61 6e 63 n.the.stated.distanc 2020-11-11 21:10:15.250 (Mini) 65 20 68 61 73 20 62 65 65 6e 20 63 6f 76 65 72 65 64 20 6f e.has.been.covered.o 2020-11-11 21:10:15.250 (Mini) 72 20 62 79 20 74 68 65 20 73 74 61 74 65 64 20 64 61 74 65 r.by.the.stated.date 2020-11-11 21:10:15.250 (Mini) 2e 22 7d 2c 7b 22 63 62 73 54 79 70 65 22 3a 22 42 52 41 4b ."},{"cbsType":"BRAK 2020-11-11 21:10:15.250 (Mini) 45 5f 46 4c 55 49 44 22 2c 22 63 62 73 53 74 61 74 65 22 3a E_FLUID","cbsState": 2020-11-11 21:10:15.250 (Mini) 22 4f 4b 22 2c 22 63 62 73 44 75 65 44 61 74 65 22 3a 22 32 "OK","cbsDueDate":"2 2020-11-11 21:10:15.250 (Mini) 30 32 32 2d 31 30 22 2c 22 63 62 73 44 65 73 63 72 69 70 74 022-10","cbsDescript 2020-11-11 21:10:15.250 (Mini) 69 6f 6e 22 3a 22 4e 65 78 74 20 63 68 61 6e 67 65 20 64 75 ion":"Next.change.du 2020-11-11 21:10:15.250 (Mini) 65 20 61 74 20 74 68 65 20 6c 61 74 65 73 74 20 62 79 20 74 e.at.the.latest.by.t 2020-11-11 21:10:15.250 (Mini) 68 65 20 73 74 61 74 65 64 20 64 61 74 65 2e 22 7d 5d 2c 22 he.stated.date."}]," 2020-11-11 21:10:15.250 (Mini) 44 43 53 5f 43 43 48 5f 41 63 74 69 76 61 74 69 6f 6e 22 3a DCS_CCH_Activation": 2020-11-11 21:10:15.250 (Mini) 22 4e 41 22 2c 22 44 43 53 5f 43 43 48 5f 4f 6e 67 6f 69 6e "NA","DCS_CCH_Ongoin 2020-11-11 21:10:15.250 (Mini) 67 22 3a 66 61 6c 73 65 7d 7d 0d 0a 30 0d 0a 0d 0a .. .. .. g":false}}..0.... 2020-11-11 21:10:15.250 (Mini) Pushing 'onMessageCallback' on to queue 2020-11-11 21:10:15.250 (Mini) Processing 'onMessageCallback' message 2020-11-11 21:10:15.250 (Mini) Calling message handler 'onMessage'. 2020-11-11 21:10:15.250 (Mini) onMessage called (BmwApi) 2020-11-11 21:10:15.250 Error: (Mini) 'onMessage' failed 'KeyError'. 2020-11-11 21:10:15.250 Error: (Mini) ----> Line 267 in '/home/pi/domoticz/plugins/Bmw/plugin.py', function onMessage 2020-11-11 21:10:15.250 Error: (Mini) ----> Line 147 in '/home/pi/domoticz/plugins/Bmw/plugin.py', function onMessage 2020-11-11 21:10:20.260 (Mini) Queued asynchronous secure read aborted. 2020-11-11 21:10:20.260 (Mini) Pushing 'DisconnectedEvent' on to queue 2020-11-11 21:10:20.271 (Mini) Processing 'DisconnectedEvent' message 2020-11-11 21:10:20.271 (Mini) Disconnect event received for 'b2vapi.bmwgroup.com:443'. 2020-11-11 21:10:20.271 (Mini) Pushing 'onDisconnectCallback' on to queue 2020-11-11 21:10:20.271 (Mini) Processing 'onDisconnectCallback' message 2020-11-11 21:10:20.271 (Mini) Calling message handler 'onDisconnect'. 2020-11-11 21:10:20.271 (Mini) onDisconnect called (BmwApi) 2020-11-11 21:10:24.660 (Mini) Pushing 'onHeartbeatCallback' on to queue 2020-11-11 21:10:24.693 (Mini) Processing 'onHeartbeatCallback' message 2020-11-11 21:10:24.693 (Mini) Calling message handler 'onHeartbeat'. 2020-11-11 21:10:24.693 (Mini) onHeartbeat called 2020-11-11 21:10:24.693 (Mini) onHeartbeat called, run again in 5 heartbeats. 2020-11-11 21:10:34.664 (Mini) Pushing 'onHeartbeatCallback' on to queue
Hi, I suppose you only have front doors/windows and no rear doors/windows. Correct? In this case, I commited the solution right now? Could you test and give feedback please?
yepee, thanks, no error now all devices updated now except 'Battery Level' perhaps it is because my car is a Mini Copper SE ?
I know there is still a problem with the charging level... See the same topic upwards. Will solve this later... I cannot test it because I have no electric car... So a bit more complex to find out.
Op wo 11 nov. 2020 21:56 schreef tsrz notifications@github.com:
yepee, thanks, no error now all devices updated now except 'Battery Level' and 'Charging time' perhaps it is because my car is a Mini Copper SE ?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/2#issuecomment-725656880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SGC3WHOGJR5RZQFOGIILSPL27ZANCNFSM4TMSUPQQ .
ok no problem, solve it when you have time if you can again a big thanks for your great job
Found the problem of the not working battery level.
In the plugin.py script at row 177 the variable 'ChargingLevelHv' is used, but the capital 'C' must be a normal 'c'. So instead of 'ChargingLevelHv' change it to 'chargingLevelhv' for the three instances on row 177 and 178.
After the change it works now
perfect, i confirm that it was the solution
now i just have to modify the icon with a little Mini
Thanks all! Did not had the time to look into detail... One small mismatch makes a big difference en difficult to see. Well done. Will update on GitHub and will close the topic once done. But probably this weekend. Filip
Op do 12 nov. 2020 20:01 schreef tsrz notifications@github.com:
perfect, i confirm that it was the solution [image: batt] https://user-images.githubusercontent.com/23282365/98983894-c093eb00-2521-11eb-9934-4105ed2f35c8.JPG
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/FilipDem/Domoticz-BMW-plugin/issues/2#issuecomment-726275394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3SGC23M5DEWYNE4NH5L7TSPQWHXANCNFSM4TMSUPQQ .
Thanks all. Updated and will close the topic.
Nice plugin. I installed it and is working. I see all kind of information in the log files. As you stated, only the milage is available in Domoticz,
I do would like to have the remaining information available in Domoticz, so frendly request!
Best regards, Wim