Now DoorLock channel works for me after your last fix.
However, I still only get the DoorLock channel detected. I still get the pairing warning that I donāt understand why I get since I have paired it when I bought the car and everythings works in the app.
The debug log contains:
2021-05-20 22:45:33.965 [DEBUG] [nternal.handler.CarNetVehicleHandler] - WVGZZZ5NZLW805555: Adding channel definition for channel control#lock
2021-05-20 22:45:33.965 [DEBUG] [carnet.internal.api.CarNetHttpClient] - HTTP GET https://msg.volkswagen.de/fs-car/bs/rlu/v1/VW/DE/vehicles/WVGZZZ5NZLW805555/actions, data=
2021-05-20 22:45:34.276 [DEBUG] [nternal.handler.CarNetVehicleHandler] - WVGZZZ5NZLW805555: Service rlu_v1 is not available, disable
So the control#lock channel is first created, but then the API returns that my car does not support rlu action? But the channel is still created and I can use it to lock/unlock my Tiguan.
Strange???
Updated binding works well on reading values for VW Passat 2021.
Translation to location/parking address responds with NULL
status#tempOutside is always xx,95°C; xx changing, but ,95 constant. E.g. 13,95°C from "value":"2871","unit":"dK","textId":"temperature_outside_valid"
correct calculation, but maybe bad rounding on their reported value.
If you could deduct only 2731 instead of 2731,5 for conversion, before dividing by ten?
(alternatively I could show %d in sitemap)
lock/unlock not working, although it does in We Connect app, DEBUG log (yes, it stops after the VIN):
2021-05-21 00:39:26.034 [DEBUG] [ng.carnet.internal.api.CarNetApiBase] - WVWZZZ3CZME0xxxxx: Sending action request for rlu_v1.LOCK, reqSecToken=true, contentType=application/vnd.vwg.mbb.RemoteLockUnlock_v1_0_0+xml
2021-05-21 00:39:26.037 [DEBUG] [carnet.internal.api.CarNetHttpClient] - HTTP GET https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/WVWZZZ3CZME0xxxxx/services/rlu_v1/operations/LOCK/security-pin-auth-requested, data=
2021-05-21 00:39:26.501 [DEBUG] [rnet.internal.api.CarNetTokenManager] - Authenticating SPIN, retires=null
2021-05-21 00:39:26.504 [DEBUG] [carnet.internal.api.CarNetHttpClient] - HTTP POST https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed, data={"securityPinAuthentication":{"securityPin":{"challenge":"ABCDE42350FB65A174976C77B492F9DFFD111299546D4266A0FFE93CB9E49137","securityPinHash":"ABCDE0CAFAC7F2E1619473ABD5A88DAD58B043C761FCDF85164C5E791FA5472F4428F349A91DCF9FA2518D37B011377CC0CACEDE81EE48416B1A2D91B14A2A00"},"securityToken":"abcde3n1fJEsoj57HqgcYwJF5H0oJY4olotpQP2P1a1BThM69HhI7LcFVq054I0gGvN/5+MuY0MkjfGGHLmUCMRdbr1thDxw1C+s37Gs3dLUs9rCXYC3J5wa4kp2D8hfVdzheu5ZKGZLWkUmjuaHCW0cZyM53qPcmNPOtxTTccrKPzkMA+JpYsH2u8F5J2OQSxgtTX1WTh49Gl0Qz00P77oS+GZMlDSdnD7T7kZj6/IEego7lK8vxRAi1rxSAssDYGPgQFsE5ICVE7rbhC6IC6R5QJxv+w/r/EucnbJNs2z+3pdb0p7CGJqAOpFGS2Xzp3Y9rCaFzSmmzSHu3VEuU7yUnu47QatXQWGw1gHSUCXO66GCd7oqFKJr1XBabOszCLF5alNUU+9GDIXZwP4UzWm8hk+4ynSwn4qH/ljipXn5+3QxUkG6OJLUQJU07G1SeNJabk54d1VmLc00MBOYLOVxvNSf7dj1OI5xhrf1RaFiNlszdqPZJ8PCBXwkMgjrYf3J8AaaLj5gJ1AvWPygtLpyMFibxmh9Jh0s8Pygyocdu83upjC8CG7/IZXF3VcS4FjGYISCP6kfOYSqItVCSQ\u003d\u003d"}}
2021-05-21 00:39:26.812 [DEBUG] [rnet.internal.api.CarNetTokenManager] - securityToken granted successful!
2021-05-21 00:39:26.817 [DEBUG] [carnet.internal.api.CarNetHttpClient] - HTTP POST https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/VW/DE/vehicles/WVWZZZ3CZME0xxxxx/actions, data=<?xml version="1.0" encoding= "UTF-8" ?><rluAction xmlns="http://audi.de/connect/rlu"><action>lock</action></rluAction>
2021-05-21 00:39:27.143 [INFO ] [nternal.handler.CarNetVehicleHandler] - WVWZZZ3CZME0xxxxx: API Service is not available:
2021-05-21 00:39:27.146 [WARN ] [nternal.handler.CarNetVehicleHandler] - WVWZZZ3CZME0xxxxx:
links in fine the Audi and shows data. i cant seem to get an update on lock status and is there anyway to implement Miles as and option as the uk doesnt use Kilometers.
This is what the API returns. Obviously pairing is complete, therefore it might be that it works only for Audi, a different base API endpoint has to be used or sthg like that. Please provide TRACE log extract.
Please provide a full TRACE log of the initialization. Creation of channels is handled dynamically based on API access. If this is rejected (HTTP 403) the channel should not be created. E.g. for my A6 even the App doesnāt show trip statistics and clima control (even the car has it). In other cases the App shows those features, but current implementation of the API call fails.
Keep in mind: !There is NO documentation of the API! All of that is the extract of various other implementations, tril & error etc. Please help with testing or research, this allows to improve the implementation.
Please include the log. In general this requires that the vehicle was reported correctly and requires access to https://nominatim.openstreetmap.org. I added a log entry if the requests fails. Check the log for request url and respnse.
In fact I use the conversion provided by the framework as requested by the review process.
However, obviosly this is not exaclt. Maybe I need to replace this by a formula.
This message is shiown on http status 403 (Forbidden). This is also supported by the error message āMBB Roles and Rights responded: 403ā. As I said, there might be other options, but so far I donāt found more information. Send me a PM with the credentials and I could verify some options. If the Audi App works there must be some other API endpoint, other http header, other XML content for the SOAP request, but we have to find thatā¦
Did you manupulated your odometer? Applied for an award for the longest car distance?
Maybe the unit is missing? Sometimes I saw that distance was returned in inch (2,54cm). At the end I map the values to the channel, which are returned by the API.
The binding uses UOM (Units of Measurement) and the framework handles conversions. This also means that units and conversions are derived from OHās Region and langusage settings (see OH system settings). Try to select UK English there, this you bring up values in correct units.
I see that still version 2 format is used. Please try to restart OH, maybe the change in the account config is not applied dynamically (need to check).
We could try several options
Use version 1 format
Try heaterSource=automatic instead of electric
Try the call using the security token (currently without)
It would be best if you could provide me the credendials so I could debug it (send PM).
In general: Please include brand+car model and extract of TRACE log in your posts, I canāt keep in mind who has which car. These things are brand/model specific and I try to a) make it working and then b) find the criteriads to switch between different options.
Please help with testing or research, this allows to improve the implementation.
Of course we will try to help you out as much as possible, by the way super job that you have done so far in making one binding to rule them all!!!
I will during the week-end explore more why I only get the DoorLock channel detected, I suspect that it is due to VW using other EP for checking availability, but I will try to investigate that further.
2021-05-23 13:02:48.289 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.carnet-3.1.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.carnet [287]
Unresolved requirement: Import-Package: javax.measure; version=ā[1.0.0,2.0.0)ā
at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:440) [org.eclipse.osgi-3.16.200.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.8]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.8]
crap, there is something wrong when the build system gets its updates. This results in a jar, which has the upcoming 3.1 dependencies, which are not available on a prod inst.
Please try the updated build
Check updated build
Does anybody sees STATE1_SERVICE_FLAP != 0 in the raw data (data point 0x030105000F)
Sorry for not replying earlier, after I installed the jar file last week my openhab started to behave weird. Since iām rather new to openhab i decided to build it up from scratch again, and last night I installed your new CarNet build. Last week i didnāt want to report anything without ruling out I myself screwed up something else, but as soon as I install the CarNet jar file Iām noticing strange behaviour in OpenHab. That strange behavior consists of me losing all the decimal places in other things, i.e. mqtt room temperature 16 instead of 16.256 in the Overview page in the UI. I am also seeing fluctuating readings: 48.0 % charge becomes 0.48 for no clear reason, as well as km range becoming meters. Openhab 3 on Openhabian, 2021 VW e-up! move E 61 E1F (DE-BL33F1).
@RalphSester If I remember correctly the symptom @fregger65 is referring to was exactly the reason why I did the regular āforce vehicle updateā. Do you see consistent updates?