Closed Black-Thunder closed 1 month ago
Würdest du mal https://github.com/copystring/ioBroker.roborock/tree/dev ausprobieren?
Leider auch damit immer noch selbiges Fehlerbild:
2024-09-05 20:40:25.282 - info: roborock.0 (659860) starting. Version 0.6.8 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v20.17.0, js-controller: 6.0.11
2024-09-05 20:40:25.323 - info: roborock.0 (659860) Starting adapter. This might take a few minutes depending on your setup. Please wait.
2024-09-05 20:40:26.167 - info: roborock.0 (659860) MQTT initialized
2024-09-05 20:40:26.168 - debug: roborock.0 (659860) RoomIDs debug: {"10467471":"Wohnzimmer","10467473":"Zimmer Domi","10467476":"Küche","10467477":"Schlafzimmer","10467479":"Bad","10467481":"Balkon","10467484":"Gang","10609107":"Nebenzimmer"}
2024-09-05 20:40:26.171 - debug: roborock.0 (659860) Processing scene []
2024-09-05 20:40:26.172 - debug: roborock.0 (659860) Updating HomeData with homeId: 144574
2024-09-05 20:40:26.228 - debug: roborock.0 (659860) homedata successfully updated
2024-09-05 20:40:26.289 - debug: roborock.0 (659860) MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
2024-09-05 20:40:28.498 - debug: roborock.0 (659860) getLocalDevices parsedDecodedMessage: {"duid":"BzoCkI61lkZZ4dPedPre6","ip":"192.168.2.135"}
2024-09-05 20:40:28.499 - debug: roborock.0 (659860) getLocalDevices localKey: MAwrEyqfDakI29Y3
2024-09-05 20:40:29.465 - debug: roborock.0 (659860) getLocalDevices parsedDecodedMessage: {"duid":"5hMBOgcFv6CIHdkwW59ObV","ip":"192.168.2.252"}
2024-09-05 20:40:29.466 - debug: roborock.0 (659860) getLocalDevices localKey: tPhok3zqY4orXnvu
2024-09-05 20:40:31.687 - debug: roborock.0 (659860) Robot key: roborock.vacuum.s6
2024-09-05 20:40:32.143 - debug: roborock.0 (659860) Supported features of robot 5hMBOgcFv6CIHdkwW59ObV - roborock.vacuum.s6: {"isWashThenChargeCmdSupported":0,"isDustCollectionSettingSupported":false,"isSupportedDrying":0,"isShakeMopSetSupported":false,"isVideoSettingSupported":false,"isCarpetSupported":false,"isPhotoUploadSupported":false,"isAvoidCollisionSupported":false,"isCornerCleanModeSupported":false,"isDssBelievable":null,"isCameraSupported":false,"isSupportSetSwitchMapMode":false,"isMopForbiddenSupported":false,"isShakeMopStrengthSupported":true,"isWaterBoxSupported":false,"isCustomWaterBoxDistanceSupported":false,"isBackChargeAutoWashSupported":null,"isAvoidCarpetSupported":false,"isVoiceControlSupported":false,"isElectronicWaterBoxSupported":[],"isCleanRouteFastModeSupported":null}
2024-09-05 20:40:32.305 - warn: roborock.0 (659860) Robot undefined is offline. undefined failed.
2024-09-05 20:40:32.317 - debug: roborock.0 (659860) Robot key: roborock.vacuum.a15
2024-09-05 20:40:32.942 - debug: roborock.0 (659860) Supported features of robot BzoCkI61lkZZ4dPedPre6 - roborock.vacuum.a15: {"isWashThenChargeCmdSupported":0,"isDustCollectionSettingSupported":false,"isSupportedDrying":0,"isShakeMopSetSupported":false,"isVideoSettingSupported":false,"isCarpetSupported":false,"isPhotoUploadSupported":false,"isAvoidCollisionSupported":false,"isCornerCleanModeSupported":false,"isDssBelievable":false,"isCameraSupported":false,"isSupportSetSwitchMapMode":false,"isMopForbiddenSupported":true,"isShakeMopStrengthSupported":true,"isWaterBoxSupported":true,"isCustomWaterBoxDistanceSupported":false,"isBackChargeAutoWashSupported":false,"isAvoidCarpetSupported":true,"isVoiceControlSupported":false,"isElectronicWaterBoxSupported":[],"isCleanRouteFastModeSupported":false}
2024-09-05 20:40:38.042 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"101":"{\"id\":0,\"method\":\"get_network_info\",\"params\":[]}"},"t":1725561638} using cloud connection
2024-09-05 20:40:38.241 - debug: roborock.0 (659860) Cloud message with protocol 102 and id 0 received. Result: {"ssid":"1.FCGlucke_SP","ip":"192.168.2.252","mac":"64:90:c1:10:fd:96","bssid":"70:4f:57:52:df:4b","rssi":-56}
2024-09-05 20:40:38.244 - debug: roborock.0 (659860) Size of message queue: 0
2024-09-05 20:40:38.278 - debug: roborock.0 (659860) Sent payload for BzoCkI61lkZZ4dPedPre6 with {"dps":{"101":"{\"id\":1,\"method\":\"get_network_info\",\"params\":[]}"},"t":1725561638} using cloud connection
2024-09-05 20:40:38.666 - debug: roborock.0 (659860) Cloud message with protocol 102 and id 1 received. Result: {"ssid":"1.FCGlucke_SP","ip":"192.168.2.135","mac":"b0:4a:39:04:69:e9","bssid":"94:3c:96:54:3c:9e","rssi":-58}
2024-09-05 20:40:38.667 - debug: roborock.0 (659860) Size of message queue: 0
2024-09-05 20:40:38.673 - debug: roborock.0 (659860) localDevices: {"5hMBOgcFv6CIHdkwW59ObV":"192.168.2.252","BzoCkI61lkZZ4dPedPre6":"192.168.2.135"}
2024-09-05 20:40:38.845 - debug: roborock.0 (659860) tcp client for 5hMBOgcFv6CIHdkwW59ObV connected
2024-09-05 20:40:38.851 - debug: roborock.0 (659860) tcp client for BzoCkI61lkZZ4dPedPre6 connected
2024-09-05 20:40:38.853 - debug: roborock.0 (659860) initializeDeviceUpdates
2024-09-05 20:40:38.853 - debug: roborock.0 (659860) 5hMBOgcFv6CIHdkwW59ObV online. Starting mainUpdateInterval.
2024-09-05 20:40:38.854 - debug: roborock.0 (659860) 5hMBOgcFv6CIHdkwW59ObV online. Starting getStatusIntervall.
2024-09-05 20:40:38.856 - debug: roborock.0 (659860) Latest data requested
2024-09-05 20:40:38.857 - info: roborock.0 (659860) Starting adapter finished. Lets go!!!!!!!
2024-09-05 20:40:38.859 - debug: roborock.0 (659860) arch: arm64
2024-09-05 20:40:38.859 - debug: roborock.0 (659860) platform: linux
2024-09-05 20:40:38.860 - debug: roborock.0 (659860) System type: go2rtc_linux_arm64
2024-09-05 20:40:38.861 - debug: roborock.0 (659860) Old file lib/go2rtc/go2rtc_linux_arm64 has been deleted.
2024-09-05 20:40:38.920 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":2,\"method\":\"get_fw_features\",\"params\":[]}"},"t":1725561638} using local connection
2024-09-05 20:40:38.922 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":3,\"method\":\"get_status\",\"params\":[]}"},"t":1725561638} using local connection
2024-09-05 20:40:38.925 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":4,\"method\":\"get_clean_summary\",\"params\":[]}"},"t":1725561638} using local connection
2024-09-05 20:40:38.936 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:38.937 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:38.938 - debug: roborock.0 (659860) Local message with protocol 4 and id 2 received. Result: [111,112,113,114,115,116,117,118,119,120,122,123,124,125]
2024-09-05 20:40:38.942 - debug: roborock.0 (659860) Local message with protocol 4 and id 3 received. Result: [{"msg_ver":2,"msg_seq":4184,"state":8,"battery":100,"clean_time":2773,"clean_area":47752500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"water_box_status":0,"fan_power":104,"dnd_enabled":0,"map_status":3,"is_locating":0,"lock_status":0,"mop_forbidden_enable":0,"debug_mode":0}]
2024-09-05 20:40:38.943 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:38.944 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:38.997 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:38.999 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.001 - debug: roborock.0 (659860) Local message with protocol 4 and id 4 received. Result: [1551343,24415445000,585,[1725352207,1725006607,1724747405,1724401804,1724142604,1723797005,1723537805,1723192204,1722933006,1722587407,1722328205,1721984453,1721723405,1721377811,1721118608,1720773008,1720515802,1720168205,1719909005,1719563405]]
2024-09-05 20:40:39.003 - debug: roborock.0 (659860) Size of message queue: 0
2024-09-05 20:40:39.020 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.0" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.029 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":5,\"method\":\"get_room_mapping\",\"params\":[]}"},"t":1725561638} using local connection
2024-09-05 20:40:39.032 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":6,\"method\":\"get_multi_maps_list\",\"params\":[]}"},"t":1725561639} using local connection
2024-09-05 20:40:39.035 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.1" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.037 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.038 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.047 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.2" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.048 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.049 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.050 - debug: roborock.0 (659860) Local message with protocol 4 and id 5 received. Result: [[16,"10467484"],[17,"10467471"],[18,"10467479"],[19,"10467477"],[22,"10609107"],[23,"10467481"],[24,"10467476"]]
2024-09-05 20:40:39.051 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:39.052 - debug: roborock.0 (659860) Mapped room matched: 10467484 with name: Gang
2024-09-05 20:40:39.053 - debug: roborock.0 (659860) Mapped room matched: 10467471 with name: Wohnzimmer
2024-09-05 20:40:39.053 - debug: roborock.0 (659860) Mapped room matched: 10467479 with name: Bad
2024-09-05 20:40:39.054 - debug: roborock.0 (659860) Mapped room matched: 10467477 with name: Schlafzimmer
2024-09-05 20:40:39.055 - debug: roborock.0 (659860) Mapped room matched: 10609107 with name: Nebenzimmer
2024-09-05 20:40:39.055 - debug: roborock.0 (659860) Mapped room matched: 10467481 with name: Balkon
2024-09-05 20:40:39.056 - debug: roborock.0 (659860) Mapped room matched: 10467476 with name: Küche
2024-09-05 20:40:39.090 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":7,\"method\":\"get_consumable\",\"params\":[]}"},"t":1725561639} using local connection
2024-09-05 20:40:39.095 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.095 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.097 - debug: roborock.0 (659860) Local message with protocol 4 and id 6 received. Result: [{"max_multi_map":1,"max_bak_map":0,"multi_map_count":1,"map_info":[{"mapFlag":0,"add_time":1721987768,"length":10,"name":"Hauptkarte","bak_maps":[]}]}]
2024-09-05 20:40:39.098 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:39.108 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":8,\"method\":\"get_clean_record\",\"params\":[1725352207]}"},"t":1725561639} using local connection
2024-09-05 20:40:39.114 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.115 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.116 - debug: roborock.0 (659860) Local message with protocol 4 and id 7 received. Result: [{"main_brush_work_time":260578,"side_brush_work_time":850438,"filter_work_time":306048,"filter_element_work_time":2,"sensor_dirty_time":72247}]
2024-09-05 20:40:39.117 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:39.144 - debug: roborock.0 (659860) Sent payload for 5hMBOgcFv6CIHdkwW59ObV with {"dps":{"4":"{\"id\":9,\"method\":\"get_carpet_mode\",\"params\":[]}"},"t":1725561639} using local connection
2024-09-05 20:40:39.151 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.152 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.154 - debug: roborock.0 (659860) Local message with protocol 4 and id 8 received. Result: [[1725352207,1725354980,2773,47752500,0,1,3,3,56]]
2024-09-05 20:40:39.155 - debug: roborock.0 (659860) Size of message queue: 1
2024-09-05 20:40:39.161 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.begin" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.167 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.end" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.178 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.duration" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.184 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.area" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.189 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.error" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.194 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.complete" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.201 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.start_type" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.212 - debug: roborock.0 (659860) new chunk started
2024-09-05 20:40:39.214 - debug: roborock.0 (659860) Chunk buffer data is complete. Processing...
2024-09-05 20:40:39.216 - debug: roborock.0 (659860) Local message with protocol 4 and id 9 received. Result: [{"enable":1,"current_integral":450,"current_high":500,"current_low":400,"stall_time":10}]
2024-09-05 20:40:39.217 - debug: roborock.0 (659860) Size of message queue: 0
2024-09-05 20:40:39.224 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.clean_type" has no existing object, this might lead to an error in future versions
2024-09-05 20:40:39.230 - warn: roborock.0 (659860) State "roborock.0.Devices.5hMBOgcFv6CIHdkwW59ObV.cleaningInfo.records.0.finish_reason" has no existing object, this might lead to an error in future versions
.......
Ah. Ich hatte einen Schreibfehler. Jetzt müsste es passen. Schaust du nochmal nach?
Ah, sehe gerade, dass du als Key "roborock.vacuum_s6" verwendest. Müsste das nicht "roborock.vacuum.s6" sein?
Kommt auch noch an zwei anderen Stellen in dieser Datei vor.
https://github.com/copystring/ioBroker.roborock/blob/0beb8e02bb4ffcb54701f33d2a35ad06d38ff6d5/lib/deviceFeatures.js#L581 https://github.com/copystring/ioBroker.roborock/blob/0beb8e02bb4ffcb54701f33d2a35ad06d38ff6d5/lib/deviceFeatures.js#L642
Danke. Hab alles korrigiert. Hatte Tomaten auf den Augen 😅
Da haben sich unsere Nachrichten überschnitten. Zwei Dumme, ein Gedanke :wink:
Jetzt passt alles und die States werden korrekt erzeugt. Auch die Meldung "Robot undefined is offline. undefined failed." ist jetzt verschwunden 👍 Nur eine kleine Anmerkung noch: 3 States haben keinen sprechenden Namen (im Gegensatz zum meinem S7). Ich vermute das sollten "clean_time", "clean_area" und "clean_count" sein?
:) hehe. Ja, da fehlt die Übersetzung. Habe ich angepasst.
Bei älteren Saugrobotern ist das leider nummeriert, anstatt benannt. Das kommt so von Roborock. Die Bezeichnung steht dann in der Spalte daneben.
Hmm.... hab die States nochmal gelöscht und trotzdem bleibt die Spalte leer:
Das kann passieren, wenn du eine andere Sprache als englisch verwendest. Das muss dann erstmal z. B. in Deutsch übersetzt werden. Wäre das bei dir der Fall?
Ach OK, daran wird es dann wohl liegen, ist im Moment auf Deutsch eingestellt. Aber alles gut, wegen so einer unwichtigen Kleinigkeit brauchst dir keine zusätzliche Arbeit machen.
Ich mach dann hier mal zu, das eigentliche Problem ist ja gelöst. Danke dir fürs schnelle Reagieren und Beheben 👍
Danke für deinen Beitrag, den Adapter zu verbessern!
Es übrigens möglich über https://weblate.iobroker.net/projects/adapters/roborock/ die fehlenden Übersetzungen einzupflegen. Wobei die erstmal automatisch übersetzt werden, gibt es natürlich durch die Maschine falsch übersetzte Wörter, welche dann durch uns korrigiert werden müsste. Vielleicht hast du ja Lust, da etwas beizutragen.
Wobei die englischen Übersetzungen so bleiben sollten. Nur die anderen Sprachen müssten bearbeitet werden.
Bug Description
Beim Start des Adapters werden etliche Warnings ins Log geschrieben und für den betroffenen Saugroboter (roborock.vacuum.s6) auch keine Reinigungshistorie in den Objekten angelegt. Lediglich das JSON dort ist befüllt:
Inhalt des JSON:
Randnotiz: Was auch seit der Version 0.6.8 auffällt, ist die Warnung gleich zu Beginn im Log: "Robot undefined is offline. undefined failed.". Beide Roboter sind zu diesem Zeitpunkt aber online und erreichbar.
Steps to Reproduce
Expected Behavior
Keine Warnungen im Log und korrekt angelegte Reinigungshistorie
Debug Log
Adapter Version
0.6.8
JS-Controller Version
6.0.11
Node.js Version
20.17.0
Operating System
Raspberry Pi OS Bookworm
Additional Context
No response