Thank you for all your Input.
I set logging for tankerkoenig binding to DEBUG and have found the error, why one station still have a price overnight although the station is closed in real world: the two stations return opening times in the detailed station data, but the single one has no opening times defined…
2017-10-18 17:18:11.558 [DEBUG] [.tankerkoenig.handler.StationHandler] - Try to refresh detail data
2017-10-18 17:18:11.718 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult jsonData : {"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","status":"ok","station":{"id":"42d6d4cc-6909-45fc-f60f-a1abd9ea1f0e","name":"CleanCar AG","brand":"CleanCar AG","street":"Lembergallee","houseNumber":"1","postCode":79108,"place":"Freiburg","openingTimes":[{"text":"Mo-Fr","start":"06:00:00","end":"22:00:00"},{"text":"Samstag","start":"07:00:00","end":"20:00:00"},{"text":"Sonntag, Feiertag","start":"09:00:00","end":"17:00:00"}],"overrides":[],"wholeDay":false,"isOpen":true,"e5":1.299,"e10":1.279,"diesel":1.109,"lat":48.0321,"lng":7.84501,"state":"deBW"}}
2017-10-18 17:18:11.723 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName2'
2017-10-18 17:18:11.744 [DEBUG] [.tankerkoenig.handler.StationHandler] - updateDetailData openingTimes: org.openhab.binding.tankerkoenig.internal.config.OpeningTimes@1b24e1a
2017-10-18 17:18:11.749 [DEBUG] [.tankerkoenig.handler.StationHandler] - Try to refresh detail data
2017-10-18 17:18:11.749 [DEBUG] [.tankerkoenig.handler.StationHandler] - Try to refresh detail data
2017-10-18 17:18:11.800 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult jsonData : {"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","status":"ok","station":{"id":"3e9014fa-cd68-41b7-9382-376dbb8bba5f","name":"Esso Tankstelle","brand":"ESSO","street":"SUNDGAUALLEE 25 SUED","houseNumber":" ","postCode":79114,"place":"FREIBURG","openingTimes":[],"overrides":[],"wholeDay":true,"isOpen":true,"e5":1.299,"e10":1.279,"diesel":1.139,"lat":48.010207,"lng":7.812219,"state":null}}
2017-10-18 17:18:11.804 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName1'
2017-10-18 17:18:11.820 [DEBUG] [.tankerkoenig.handler.StationHandler] - updateDetailData openingTimes: org.openhab.binding.tankerkoenig.internal.config.OpeningTimes@14a256a
2017-10-18 17:18:11.842 [DEBUG] [ig.internal.data.TankerkoenigService] - getTankerkoenigDetailResult jsonData : {"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","status":"ok","station":{"id":"cd8ba6a6-9577-1ee5-a181-12e717e9041d","name":"JET FREIBURG INGEBORG-KRUMMER-SCHROTH-STR. 33","brand":"JET","street":"INGEBORG-KRUMMER-SCHROTH-STR. 33","houseNumber":null,"postCode":79106,"place":"FREIBURG","openingTimes":[{"text":"t\u00e4glich ausser Sonn- und Feiertagen","start":"06:00:00","end":"22:00:00"},{"text":"Sonntag, Feiertag","start":"07:00:00","end":"22:00:00"}],"overrides":[],"wholeDay":false,"isOpen":true,"e5":1.289,"e10":1.269,"diesel":1.129,"lat":48.015806,"lng":7.850389,"state":null}}
2017-10-18 17:18:11.850 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName3'
2017-10-18 17:18:11.869 [DEBUG] [.tankerkoenig.handler.StationHandler] - updateDetailData openingTimes: org.openhab.binding.tankerkoenig.internal.config.OpeningTimes@14eda72
The log for the price update looks like this, when stations are closed (but one is said to be open):
2017-10-19 03:29:22.999 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName1'
2017-10-19 03:29:23.013 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName2'
2017-10-19 03:29:23.023 [DEBUG] [.tankerkoenig.handler.StationHandler] - Update Tankerkoenig data 'tankerkoenig:station:WebserviceName:StationName3'
2017-10-19 03:39:23.191 [DEBUG] [ig.internal.data.TankerkoenigService] - json-String: {"ok":true,"license":"CC BY 4.0 - https:\/\/creativecommons.tankerkoenig.de","data":"MTS-K","prices":{"3e9014fa-cd68-41b7-9382-376dbb8bba5f":{"status":"open","e5":1.379,"e10":1.359,"diesel":1.219},"42d6d4cc-6909-45fc-f60f-a1abd9ea1f0e":{"status":"closed"},"cd8ba6a6-9577-1ee5-a181-12e717e9041d":{"status":"closed"}}}
I think everything is fine and clear at the moment and I can understand the behavior.
If I try to set the switch “Opening times” within the configuration of the tankerkoenig web service and save the Settings, an error occured and the logs say this:
2017-10-19 05:56:11.196 [INFO ] [ome.io.rest.core.thing.ThingResource] - Received HTTP PUT request for update configuration at 'things/tankerkoenig:webservice:WebserviceName/config' for an unmanaged thing 'tankerkoenig:webservice:WebserviceName'.
Maybe the only problem is, that I can’t set the switch for “opening times” to get the “closed” state ignored…
How can I resolve the Problem with the unmanaged Thing?
Thank you in advance…