ConnectedCar Binding myAudi, Volkswagen, VW ID, Skoda, Enyaq, Seat, Ford, WeCharge

how do you download the file?
what url are you using?

Iā€™m using the command : sudo wget https://github.com/markus7017/myfiles/blob/master/carnet/org.openhab.binding.carnet-2.5.5-SNAPSHOT.jar
When I restart OH, I get this information in OH Log viewer:
[temChannelLinkRemovedEvent] - Link ā€˜2018AudiA4XXXX_General_VIN => carnet:vehicle:4XXXXXX:WAUZ:general#vinā€™ has been removed.

exactly, thatā€˜s what I doubt

you need to add ?raw=true to the url

thank your for your help!!! It is working again :slight_smile:

Hi Markus, can you add the country code for Spain.

Thanks,

yes, thatā€™s no problem, but I first need to complete some work on the GREE binding. Expect something at the weekend.

So we have US+ES
any other country required
maybe I could turn this into a regular edit field, then the user need to take care on the correct country code

2 Likes

Any chance you can add Canada as well?
Cheers

I have a little deadlock, because I did some recfactoring in the last code base, which was not done and then moved to other bindings. I check the current code, but it doesnā€™t run so I canā€™t quickly add the additional country codes. Iā€™ll be on vacation next week, letā€™s see what I could do.

No worries (says the guy using your binding for free :)). Iā€™m still climbing the learning curve for openhab but if there is anything I can do to help or test feel free to let me know.
Cheers

ok, I updated the DEV build

  • added various country codes
  • implemented Units of Measurement for various channels
  • added various missing localization definitions
  • some refactoring

you need to delete and re-discover the vehicle thing

still work in progress, next step is to verify channel data and find value/state pairs to improve data quality. I want to complete this task before implementing more control functions

1 Like

one more update (new build), I removed all Switch items and changed them to Number so we could see, which numeric code matches what state

Thx again for all the work. Canada country doesnā€™t seem to work. With my credentials I get the following errorā€¦
Authentication failed POST https://msg.audi.de/fs-car/core/auth/v1/Audi/CAN/token (HTTP 400 Bad Request), result = {0}
If I select country = germany on the add-on config however it connects successfully. I am in canada btw:)
Cheers

The question is not where the owner is located (resident of a country), but under which markt the car is registered in the Audi systems. Maybe Audis in Canada are in general assigned to the German market.

I would appreciate if you could help to find the values, e.g. door closed seems to be code 3, what are the other ones for open etc.?
that helps to map values to switch states or create option lists per channel type (which also needs to go into the README)

I also plan to implement aggregated channels like doorOpen = any door is open. This simplifies creating rules, e.g. the car is unlocked during night or a window is open when it starts raining (weather forecast)

If it works with DE, I would suggest to stick with it at the moment. Iā€™m in Belgium and using DE as well.

Btw, any reason you use CAN instead of CA (in the url)?

No, just wrong

Why did some requested other country codes that DE if this works in general? It seems that at least for Audi we dinā€™t need this setting

US country is now working - thank you. Log is below.

2020-07-07 18:25:30.362 [vent.ItemStateChangedEvent] - AudiQ7StatusKilometerStatus changed from NULL to 3941929133.858267716535433070866142 in

2020-07-07 18:25:30.370 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceDistanceOilChange changed from NULL to 82362204.72440944881889763779527559 in

2020-07-07 18:25:30.389 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceIntervalOilChange changed from NULL to 21.0 day

2020-07-07 18:25:30.410 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceDistanceToInspection changed from NULL to -551220472.4409448818897637795275591 in

2020-07-07 18:25:30.414 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceTimeToInspection changed from NULL to -507.0 day

2020-07-07 18:25:30.417 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceOilWarning changed from NULL to 2

2020-07-07 18:25:30.418 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceAlarmInspection changed from NULL to 0

2020-07-07 18:25:30.422 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceMonthlyMilage changed from NULL to 81

2020-07-07 18:25:30.425 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceOilAmount changed from NULL to 1.0 l

2020-07-07 18:25:30.427 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceOilWarningLevel changed from NULL to 0

2020-07-07 18:25:30.430 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceOilPercentage changed from NULL to 75.0 %

2020-07-07 18:25:30.431 [vent.ItemStateChangedEvent] - AudiQ7MaintenanceDistanceAdBlue changed from NULL to UNDEF

2020-07-07 18:25:30.437 [vent.ItemStateChangedEvent] - AudiQ7StatusStatusLight changed from NULL to 2

2020-07-07 18:25:30.438 [vent.ItemStateChangedEvent] - AudiQ7StatusTempOutside changed from NULL to 3501.0 Ā°F

2020-07-07 18:25:30.439 [vent.ItemStateChangedEvent] - AudiQ7StatusParkingBrake changed from NULL to 0

2020-07-07 18:25:30.440 [vent.ItemStateChangedEvent] - AudiQ7RangeTotalRange changed from NULL to 12322834.64566929133858267716535433 in

2020-07-07 18:25:30.441 [vent.ItemStateChangedEvent] - AudiQ7RangePrimaryRange changed from NULL to 12322834.64566929133858267716535433 in

2020-07-07 18:25:30.441 [vent.ItemStateChangedEvent] - AudiQ7RangePrimaryDrive changed from NULL to 6

2020-07-07 18:25:30.442 [vent.ItemStateChangedEvent] - AudiQ7RangeSecondaryRange changed from NULL to UNDEF

2020-07-07 18:25:30.443 [vent.ItemStateChangedEvent] - AudiQ7RangeSecondaryDrive changed from NULL to 0

2020-07-07 18:25:30.443 [vent.ItemStateChangedEvent] - AudiQ7RangeFuelPercentage changed from NULL to 37.0 %

2020-07-07 18:25:30.444 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontLeftLock changed from NULL to 3

2020-07-07 18:25:30.444 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontLeftOpen changed from NULL to 3

2020-07-07 18:25:30.445 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontLeftSafety changed from NULL to 3

2020-07-07 18:25:30.446 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearLeftLock changed from NULL to 3

2020-07-07 18:25:30.447 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearLeftOpen changed from NULL to 3

2020-07-07 18:25:30.447 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearLeftSafety changed from NULL to 3

2020-07-07 18:25:30.448 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontRightLock changed from NULL to 3

2020-07-07 18:25:30.448 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontRightOpen changed from NULL to 3

2020-07-07 18:25:30.449 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorFrontRightSafety changed from NULL to 3

2020-07-07 18:25:30.450 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearRightLock changed from NULL to 3

2020-07-07 18:25:30.450 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearRightOpen changed from NULL to 3

2020-07-07 18:25:30.451 [vent.ItemStateChangedEvent] - AudiQ7DoorsDoorRearRightSafety changed from NULL to 3

2020-07-07 18:25:30.451 [vent.ItemStateChangedEvent] - AudiQ7DoorsTrunkLidLock changed from NULL to 3

2020-07-07 18:25:30.452 [vent.ItemStateChangedEvent] - AudiQ7DoorsTrunkLidOpen changed from NULL to 3

2020-07-07 18:25:30.452 [vent.ItemStateChangedEvent] - AudiQ7StatusTrunkLidState changed from NULL to 3

2020-07-07 18:25:30.453 [vent.ItemStateChangedEvent] - AudiQ7DoorsHoodLock changed from NULL to 3

2020-07-07 18:25:30.454 [vent.ItemStateChangedEvent] - AudiQ7DoorsHoodOpen changed from NULL to 3

2020-07-07 18:25:30.454 [vent.ItemStateChangedEvent] - AudiQ7StatusHoodState changed from NULL to 3

2020-07-07 18:25:30.455 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowFrontLeftState changed from NULL to 2

2020-07-07 18:25:30.455 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowFrontLeftPos changed from NULL to 97

2020-07-07 18:25:30.456 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowRearLeftState changed from NULL to 3

2020-07-07 18:25:30.457 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowRearLeftPos changed from NULL to 0

2020-07-07 18:25:30.457 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowFrontRightState changed from NULL to 2

2020-07-07 18:25:30.458 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowFrontRightPos changed from NULL to 97

2020-07-07 18:25:30.458 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowRearRightState changed from NULL to 3

2020-07-07 18:25:30.459 [vent.ItemStateChangedEvent] - AudiQ7WindowsWindowRearRightPos changed from NULL to 0

2020-07-07 18:25:30.459 [vent.ItemStateChangedEvent] - AudiQ7DoorsCovertableTopState changed from NULL to 0

2020-07-07 18:25:30.460 [vent.ItemStateChangedEvent] - AudiQ7StatusRoofMotorCoverState changed from NULL to 3

2020-07-07 18:25:30.460 [vent.ItemStateChangedEvent] - AudiQ7StatusRoofMotorCoverPos changed from NULL to 0

2020-07-07 18:25:30.461 [vent.ItemStateChangedEvent] - AudiQ7StatusRoofRearMotorCoverState changed from NULL to 3

2020-07-07 18:25:30.461 [vent.ItemStateChangedEvent] - AudiQ7StatusRoofRearMotorCoverPos changed from NULL to 0

2020-07-07 18:25:30.462 [vent.ItemStateChangedEvent] - AudiQ7TiresTirePresFrontLeft changed from NULL to 1

2020-07-07 18:25:30.463 [vent.ItemStateChangedEvent] - AudiQ7TiresTireDesiredFrontLeft changed from NULL to 1

2020-07-07 18:25:30.463 [vent.ItemStateChangedEvent] - AudiQ7TiresTirePresRearLeft changed from NULL to 1

2020-07-07 18:25:30.464 [vent.ItemStateChangedEvent] - AudiQ7TiresTirePresFrontRight changed from NULL to 1

2020-07-07 18:25:30.465 [vent.ItemStateChangedEvent] - AudiQ7TiresTirePresRearRight changed from NULL to 1

2020-07-07 18:25:30.819 [vent.ItemStateChangedEvent] - AudiQ7LocationPosition changed from NULL to 44.926108,-93.311012

2020-07-07 18:25:30.823 [vent.ItemStateChangedEvent] - AudiQ7LocationLastUpdate changed from NULL to 2020-07-07T21:06:45.000+0000

2020-07-07 18:25:30.825 [vent.ItemStateChangedEvent] - AudiQ7LocationParkingTime changed from NULL to 2020-07-07T21:06:40.000+0000

does it work with country=Germany?

does someone has an idea why the outsideTemp reports such strange value? (for me the same)

Yes, saw it on another implementation, there is specific math to do with it to get the correct value.
I will check if I can find it back

I solved it, the unit is dK, so decimal Kelvin
I now use the java framework to convert to C
also found the status codes
2=open, 3=close
donā€˜t know 0+1 so far

Iā€˜ll upload an updated build tomorrow

New build with significant updates

  • Outside Temp is mapped correctly (from dK to C)
  • Value decoding for most channels
  • various fixes

Known issues

  • When deleting and adding the thing, some unit types are not set correctly, you need to restart the biding to clear this
  • VIN is updated in init, but then cleared
  • Revised channel names, labels, description, types
    . Token refresh is not yet tested

You need to delete the things and re-discover.

I see the following data ids, which are currently unknown. Maybe someone could help to find what those mean.

Unknown data field  0x0204FFFFFF.0x0204040004, value=1 null
Unknown data field  0x0204FFFFFF.0x02040C0002, value=null null
Unknown data field  0x030103FFFF.0x0301030003, value=0 %
Unknown data field  0x030103FFFF.0x0301030004, value=22 km/h
Unknown data field  0x030103FFFF.0x030103000B, value=0 null

Please do some testing and provide feedback if the channel updates perform correct.

Next will be trip data.