Volvo Oncall binding

Ok, this means your trips get updated but not the vehicle status :-/

  1. Removed Things

  2. Removed VOC binding

  3. Removed items

  4. Stopped OH

  5. Cleaned cache

  6. Started OH

  7. Waited OH to settle

  8. Re-installed VOC binding

  9. Created Things

  10. Put items in place
    Result: :frowning:

    2020-05-14 18:13:53.511 [INFO ] [l.internal.action.VolvoOnCallActions] - Volvo On Call actions service instanciated
    2020-05-14 18:13:53.559 [TRACE] [call.internal.handler.VehicleHandler] - Initializing the Volvo On Call handler for volvooncall:vehicle:xxx
    2020-05-14 18:13:54.992 [DEBUG] [call.internal.handler.VehicleHandler] - Trips discovered : 1
    2020-05-14 18:13:54.995 [DEBUG] [call.internal.handler.VehicleHandler] - Trip found 2020-05-10T15:56:27.000+0200
    2020-05-14 18:13:55.059 [DEBUG] [call.internal.handler.VehicleHandler] - Trips discovered : 1
    2020-05-14 18:13:55.062 [DEBUG] [call.internal.handler.VehicleHandler] - Trip found 2020-05-10T15:56:27.000+0200
    2020-05-14 18:13:55.379 [DEBUG] [call.internal.handler.VehicleHandler] - Trips discovered : 1
    2020-05-14 18:13:55.381 [DEBUG] [call.internal.handler.VehicleHandler] - Trip found 2020-05-10T15:56:27.000+0200
    2020-05-14 18:13:55.413 [DEBUG] [call.internal.handler.VehicleHandler] - Trips discovered : 1
    2020-05-14 18:13:55.415 [DEBUG] [call.internal.handler.VehicleHandler] - Trip found 2020-05-10T15:56:27.000+0200
    2020-05-14 18:13:55.615 [DEBUG] [call.internal.handler.VehicleHandler] - Trips discovered : 1
    

Why is this updated so often?

I will try another restart of OH

EDIT: Still no update on the items

Hello, how do I exactly install that new PR? Can anybody give me a short hint on that, please? Do I have just to uninstall and then to re-install the VOC binding and thatā€˜s it?
Thanks.

Just remove the actual one using PaperUI and copy the newer downloaded .jar file into: /usr/share/openhab2/addons

Thanks for the hint. Where can I download the latest version of the Binding?

I have the latest snapshot running as well - it has fixed most issues (items are updating again), however I am also having ā€œcar lockedā€ return a NULL valueā€¦

Thatā€™s weird, that my items are not updated.
I donā€™t have a clue anymore what might be wrong.

Any suggestion how I could continue to troubleshoot?

I also tried older VOC bindings back to 2.5.0
With 2.5.0 I get at least:

2020-05-15 09:30:02.762 [vent.ItemStateChangedEvent] - CarHeater changed from UNDEF to NULL
2020-05-15 09:30:02.775 [vent.ItemStateChangedEvent] - CarBrakeFl changed from  to NULL

Please see my post 49 above

@NCO : could you please try this version and let me know if status informations are updated ?

To answer

Why is this updated so often?

=> When a new vehicle ā€˜thingā€™ is created, the binding rewinds all past trips provided by the API until the very last one that is then stored in the vehicle properties with the ā€œlastTripIdā€ label.

Thanks - I will try your proposed version right away.

By the way this pops up, when using 2.5.0:

2020-05-15 09:40:18.488 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler VehicleHandler of thing volvooncall:vehicle:YV1DZA8CDH2035799 tried accessing its bridge although the handler was already disposed.
2020-05-15 09:40:18.490 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler VehicleHandler tried updating the thing status although the handler was already disposed.

So, 2.5.0 seems to show ā€œmore lifeā€.
I have seen this message a few months ago, but did not see any negative impact.

Will report about latest version soon

This leads my vehicle to go offline:

2020-05-15 09:50:26.552 [hingStatusInfoChangedEvent] - 'volvooncall:vehicle:xxx' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
2020-05-15 09:50:26.669 [hingStatusInfoChangedEvent] - 'volvooncall:vehicle:xxx' changed from INITIALIZING to ONLINE
2020-05-15 09:50:26.828 [hingStatusInfoChangedEvent] - 'volvooncall:vehicle:xxx' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): UnknownError

EDIT:
I will restart OH to make sureā€¦

Donā€™t loose to much time testing this version. This error was expected (apparently VoC services have changed the headers they expect and I corrected that in the last merged PR), leading to status not being updated while trip were fine.
Maybe you could send me the json answer made by the rest service if you can extract it ?

Thanks a lot for your strong support!
Could you please tell me how to get the json response :thinking:

I donā€™t know if with molobrackos script youā€™re able to have some kind of ā€˜verboseā€™ mode or else Iā€™ll give you a special version with more debug log.

Ah, alright.
I will send you the beginning of the response with a PM (just in case I missed to delete personal data :wink:
I hope thatā€™s sufficient.

Hopefully found the problem, PR created

OK, thanks a lot. Iā€™m currently on OpenHAB 2.5.4 can I use the binding as it is labeled with 2.5.5?

Yes, thatā€™s usually not a problem - only if major changes have taken place between the releases.

Wanted to download the binding yet but cannot find a download link. Only the remark ā€œNo path found (externally resolved or deleted/overwrittenā€ is shown. Or am I on the wrong position there?

try this link:
https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.volvooncall/2.5.5-SNAPSHOT/org.openhab.binding.volvooncall-2.5.5-SNAPSHOT.jar