teslamate-org / teslamate

A self-hosted data logger for your Tesla 🚘
https://docs.teslamate.org
MIT License
6.07k stars 757 forks source link

Model X type missmatch #112

Closed virtualm2000 closed 5 years ago

virtualm2000 commented 5 years ago

My car is identified as P90D ( I wish! :) ) instead of 90D. The code for correct option codes is there: defp getefficiency("MX", "BTX4", true, ), do: {"X 90D", 0.208},

but the log says:

17:16:03.548 [info] Found Model X P90D:

My option codes:

"option_codes":"REEU,AD15,AF02,AH01,APF1,APH2,APPB,AU01,BC0B,BP00,BR00,BS00,BTX4,CC03,CDM0,CF01,CH04,COGB,PMBL,CW02,DRRH,DSH7,DV4W,FG02,FR02,GLTL,HP00,IDCF,IX01,LP01,LT3W,ME01,MI00,OSSW,PA00,PF00,PI01,PK00,PS00,QLEW,RFPX,S06W,SC01,SP01,SR01,ST02,SU01,TIM7,TM00,TP03,TR01,TRA1,TW00,UM01,UTAB,WT20,X001,X003,X007,X011,X014,X021,X025,X026,X028,X031,X037,X039,X042,X044,YFCC,MDLX"

Thanks!

adriankumpf commented 5 years ago

Oh, good catch! It will be fixed soon.

olexs commented 5 years ago

Maybe relevant: my 3 Performance is also identified as 3 LR. I can dig out the full option code list if needed, though I see you're fixing Performance identification across the board anyway :)

virtualm2000 commented 5 years ago

git pull https://github.com/adriankumpf/teslamate.git master From https://github.com/adriankumpf/teslamate

It works:

22:53:50.468 [info] Found Model X 90D:

Thanks!

Best regards, Mihai

adriankumpf commented 5 years ago

You're quick. It's not even released :) Thanks for testing!