Closed guergen1 closed 1 year ago
das ist kein bug, da die Hausnummer von der Station nicht übergeben wird, sondern direkt in der Straße steht
Das mit der Hausnummer ist nicht schlimm, entweder man schreibt es selbst rein oder man lässt es so, das wird im Adapter abgefangen. Der state in den Objekten bleibt dann halt leer.
PS. Mit der Version 3.3.1
muss der tankerkoenig.0.stations.x.postCode
gelöscht und neu erstellt werden, da jetzt die Daten von Tankerkönig kommen und dort ist es eine Nummer und kein Text deshalb habe ich den state auf Nummer geändert.
Nein, schlimm ist es nicht, nur ein optischer Fehler. Ich weiss ja nicht, ob es evtl im weiteren Verlauf zu einem Fehler führen könnte OK, also wieder zurück zur Nummer ;-) Kein Problem!
Muss nochmal nerven weil Du es im PS geschrieben hast: hab grade die 3.3.1 von git gezogen. Da scheint noch was mit "string-number" nicht zu passen: State value to set for "tankerkoenig.0.stations.3.postCode" has to be type "number" but received type "string" Bei den Cheapest stimmt es allerding(string ist eingetragen)!
Schaue mal unter
system.adapter.tankerkoenig.0 ob du da die "postCode": 59846
oder "postCode": "59846"
stehen hast sollte "postCode": 59846
sein
Ich glaube hier steht das mit " drin
\\U\u0001[\u0002", "station0": "6197ee84-4a05-4b40-a8f4-e33c07aac90a", "stationname0": "SB-Tankstelle", "station1": "df9924e6-9ce8-4677-8eb1-63e194db6e15", "stationname1": "Markant Bahnhofstr.", "station2": "9f8038f4-f6a3-4609-b8c7-5acb232024e6", "stationname2": "Shell Grüner Weg", "station3": "a2fc501e-5124-46c3-af5e-2b620d1d643e", "stationname3": "AVIA Frankfurter Weg", "station4": "", "stationname4": "", "station5": "", "stationname5": "", "station6": "", "stationname6": "", "station7": "", "stationname7": "", "station8": "", "stationname8": "", "station9": "", "stationname9": "", "stationsarray": [ [ "6197ee84-4a05-4b40-a8f4-e33c07aac90a", "SB-Tankstelle" ], [ "df9924e6-9ce8-4677-8eb1-63e194db6e15", "Markant Bahnhofstr." ], [ "9f8038f4-f6a3-4609-b8c7-5acb232024e6", "Shell Grüner Weg" ], [ "a2fc501e-5124-46c3-af5e-2b620d1d643e", "AVIA Frankfurter Weg" ], [ "", "" ], [ "", "" ], [ "", "" ], [ "", "" ], [ "", "" ], [ "", "" ] ], "station": [ { "station": "6197ee84-4a05-4b40-a8f4-e33c07aac90a", "stationname": "SB-Tankstelle", "discounted": false, "discountObj": { "discount": 0, "fuelType": [ "e5", "e10", "diesel" ], "discountType": "absolute" }, "city": "Paderborn", "postCode": "33100", "street": "Im Dörener Feld 4" }, { "station": "df9924e6-9ce8-4677-8eb1-63e194db6e15", "stationname": "Markant Bahnhofstr.", "discounted": false, "discountObj": { "discount": 0, "fuelType": [ "e5", "e10", "diesel" ], "discountType": "absolute" }, "street": "Bahnhofstr. 76", "city": "Paderborn", "postCode": "33102" }, { "station": "9f8038f4-f6a3-4609-b8c7-5acb232024e6", "stationname": "Shell Grüner Weg", "discounted": false, "discountObj": { "discount": 0, "fuelType": [ "e5", "e10", "diesel" ], "discountType": "absolute" }, "street": "Grüner Weg 24", "city": "Paderborn", "postCode": "33102" }, { "station": "a2fc501e-5124-46c3-af5e-2b620d1d643e", "stationname": "AVIA Frankfurter Weg", "discounted": false, "discountObj": { "discount": 0, "fuelType": [ "e5", "e10", "diesel" ], "discountType": "absolute" }, "street": "Frankfurter Weg 29", "city": "Paderborn", "postCode": "33102" } ], "combinedOptions": { "closed": "Station Closed", "noPrice": "No Prices", "notFound": "Station Not Found" } }, "acl": { "object": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "protectedNative": [ "apikey" ], "encryptedNative": [], "notifications": [], "instanceObjects": [ { "_id": "stations", "type": "channel", "common": { "name": "Gas stations" }, "native": {} }, { "_id": "stations.adapterStatus", "type": "state", "common": { "name": "adapter status", "desc": "adapter status", "type": "string", "role": "info.status", "def": "idle", "read": true, "write": false }, "native": {} } ], "objects": [], "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1672413024565 }
Auch die Übersetzung des DP ist lustig: "Postleitzahl des Bahnhofs"
Es handelt sich bei den oberen beiden post´s um die git-Veriosn 3.3.1!
Gehe in die Ui und dann auf Bearbeiten der Stationen und mache eine Änderung egal wo z. B. im Namen dann kannst du es wider wegmachen. Jetzt noch auf hinzufügen das bei allen Stationen am Schluss dann noch speichern hier noch mal beschrieben https://forum.iobroker.net/topic/60140/tankerk%C3%B6nig-adapter-komplett-umbau/106
Hab ich, jetzt kommt es im Cheapest...: `tankerkoenig.0 | 2022-12-30 16:28:44.431 | info | State value to set for "tankerkoenig.0.stations.cheapest.e10.postCode" has to be type "string" but received type "number" |
---|---|---|---|
tankerkoenig.0 | 2022-12-30 16:28:44.008 | info | State value to set for "tankerkoenig.0.stations.cheapest.diesel.postCode" has to be type "string" but received type "number" |
tankerkoenig.0 | 2022-12-30 16:28:43.889 | info | State value to set for "tankerkoenig.0.stations.cheapest.e5.postCode" has to be type "string" but received type "number" |
tankerkoenig.0 | 2022-12-30 16:28:43.648 | info | Start first request |
tankerkoenig.0 | 2022-12-30 16:28:41.832 | info | Sync time set to 5 minutes or 300000 ms |
tankerkoenig.0 | 2022-12-30 16:28:41.830 | info | Adapter is already in daemon mode |
tankerkoenig.0 | 2022-12-30 16:28:41.770 | info | starting. Version 3.3.1 (non-npm: iobroker-community-adapters/ioBroker.tankerkoenig#74b28cb39439d083960eb42117bef17ea78baa5b) in /opt/iobroker/node_modules/iobroker.tankerkoenig, node: v16.19.0, js-controller: 4.0.24 |
`
So, jetzt hab ich die Cheapest auch noch gelöscht (alles mit der 3.3.1) will ich mal abwarten. Der Postcode meiner 4 TS hab ich grade vore dem Neustart gelöscht und neu anlegen lassen: die sind jetzt "Number" mit def=0 Die Cheapest wurden auch neu angelegt und haben jetzt auch "Number" mit def=0
5 Miuten um, neue Werte sind reingekommen: keine neuen Fehler oder Info-Meldungen im Log
Is there an existing issue for this?
Current Behavior
Die Hausnummer wird nicht im Hausnummer-Feld eingetragen, wenn ich eine neue Tankstelle mit Hilfe des Tankstellenfinders eintrage
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Adapter version
3.3.0
Environment
What browsers are you seeing the problem on?
No response
Screenshots & Log