copystring / ioBroker.roborock

Roborock ioBroker Adapter
MIT License
45 stars 21 forks source link

Commandos funktionieren nicht mit 0.5.3 / 0.5.4 + Upgrade-Probleme des Adapters #493

Closed apachelance closed 8 months ago

apachelance commented 8 months ago
  1. Ich habe 2 Q Revos, die beide nicht mit der 0.5.3 oder 0.5.4 funktionieren. Die Geräte werden zwar im Objektbaum angezeigt. Beim Auslösen eines Commands wie app_start passiert jedoch nichts Die 0.4.4 hat keine Probleme.
  2. Einige Upgrades funktionieren nicht korrekt, z.B. 0.4.4 auf 0.5.0. Fehlermeldung:

`$ iobroker upgrade roborock@0.5.0 --debug

Update roborock from @0.4.4 to @0.5.0

NPM version: 10.2.3

Installing iobroker.roborock@0.5.0... (System call)

npm ERR! code ETARGET

npm ERR! notarget No matching version found for iobroker.roborock@0.5.0.npm ERR! notarget In most cases you or one of your dependencies are requesting

npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in: /opt/iobroker/.npm/_logs/2024-02-07T14_09_24_874Z-debug-0.log

npm ERR! code ETARGETnpm ERR! notarget No matching version found for iobroker.roborock@0.5.0.npm ERR! notarget In most cases you or one of your dependencies are requestingnpm ERR! notarget a package version that doesn't exist.npm ERR! A complete log of this run can be found in: /opt/iobroker/.npm/_logs/2024-02-07T14_09_24_874Z-debug-0.log

host.ioBroker Cannot install iobroker.roborock@0.5.0: 1

ERROR: Process exited with code 25`

copystring commented 8 months ago

Zu 1: Poste bitte ein Debuglog in dem der Fehler reproduziert wurde. Zu 2: 0.5.0 musste ich wieder löschen. Deshalb ist die auch nicht installierbar.

apachelance commented 8 months ago

Anbei das Log:

roborock.0 2024-02-08 11:52:19.143 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:52:19.143 debug Latest data requested
roborock.0 2024-02-08 11:51:57.088 debug onStateChange: app_start with value: true
roborock.0 2024-02-08 11:51:56.448 debug homedata successfully updated
roborock.0 2024-02-08 11:51:56.357 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-08 11:51:54.971 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-08 11:51:54.970 debug Latest data requested
roborock.0 2024-02-08 11:51:19.142 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:51:19.142 debug Latest data requested
roborock.0 2024-02-08 11:50:54.971 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-08 11:50:54.970 debug Latest data requested
roborock.0 2024-02-08 11:50:19.143 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:50:19.143 debug Latest data requested
roborock.0 2024-02-08 11:49:54.970 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-08 11:49:54.970 debug Latest data requested
roborock.0 2024-02-08 11:49:19.142 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:49:19.142 debug Latest data requested
roborock.0 2024-02-08 11:48:56.472 debug homedata successfully updated
roborock.0 2024-02-08 11:48:56.368 debug Made ./lib/go2rtc/go2rtc_linux_amd64 executable
roborock.0 2024-02-08 11:48:56.359 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-08 11:48:56.356 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-08 11:48:55.215 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-08 11:48:55.128 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-08 11:48:55.082 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-08 11:48:55.038 debug Firmware features request for 44QNDpMpGVgofEptdTYE50
roborock.0 2024-02-08 11:48:54.975 debug Old file lib/go2rtc/go2rtc_linux_amd64 has been deleted.
roborock.0 2024-02-08 11:48:54.973 debug System type: go2rtc_linux_amd64
roborock.0 2024-02-08 11:48:54.973 debug platform: linux
roborock.0 2024-02-08 11:48:54.973 debug arch: x64
roborock.0 2024-02-08 11:48:54.972 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-08 11:48:54.972 debug Processing scene [object Object],[object Object],[object Object],[object Object]
roborock.0 2024-02-08 11:48:54.971 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-08 11:48:54.970 debug Latest data requested
roborock.0 2024-02-08 11:48:54.970 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_fw_features
roborock.0 2024-02-08 11:48:54.970 debug 44QNDpMpGVgofEptdTYE50 online. Starting mainUpdateInterval.
roborock.0 2024-02-08 11:48:19.142 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:48:19.141 debug Latest data requested
roborock.0 2024-02-08 11:47:19.142 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:47:19.142 debug Latest data requested
roborock.0 2024-02-08 11:46:19.555 debug Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
roborock.0 2024-02-08 11:46:19.144 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-08 11:46:19.143 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-08 11:46:19.143 debug Latest data requested
roborock.0 2024-02-08 11:46:19.142 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
roborock.0 2024-02-08 11:46:19.140 debug 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
roborock.0 2024-02-08 11:43:43.598 debug MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
roborock.0 2024-02-08 11:43:43.158 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-08 11:43:43.157 debug RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
roborock.0 2024-02-08 11:43:43.156 info MQTT initialized
roborock.0 2024-02-08 11:43:43.123 debug localDevices: {}
roborock.0 2024-02-08 11:43:37.419 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-08 11:43:37.407 info starting. Version 0.5.4 in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.0, js-controller: 5.0.17
stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

copystring commented 8 months ago

Würdest du die neue dev Version testen? https://github.com/copystring/ioBroker.roborock/tree/dev

apachelance commented 8 months ago

Hab ich installiert. Es passiert nichts beim Ausführen des Start Commando. Auch testweise bei app_start_collect_dust passiert nichts

roborock.0 Zeit debug Nachricht
roborock.0 2024-02-23 14:19:46.183 info MQTT initialized
roborock.0 2024-02-23 14:19:40.607 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 14:19:40.594 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Klar. Der Adapter ist nicht fertig mit Starten. Warte etwas länger. Im Log steht dann, dass es losgehen kann.

apachelance commented 8 months ago

Keine Änderung. Es passiert nichts, getestet mit 2 Q Revos und unterschiedliches Commands. Version 0.4.4 läuft ohne Probleme auch sofort nach Adapterstart.

roborock.0 2024-02-23 14:30:40.555 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-23 14:25:12.349 info MQTT initialized
roborock.0 2024-02-23 14:25:06.790 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 14:25:06.779 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Stell das Logging bitte mal auf Debug um.

apachelance commented 8 months ago

Anbei. Am Ende hab ich 2-3 Befehle gestartet, ohne dass etwas passiert:

roborock.0 2024-02-23 14:42:11.515 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 14:42:11.514 debug Latest data requested
roborock.0 2024-02-23 14:41:53.020 debug onStateChange: app_start_wash with value: true
roborock.0 2024-02-23 14:41:49.716 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 14:41:49.716 debug Latest data requested
roborock.0 2024-02-23 14:41:32.035 debug onStateChange: find_me with value: true
roborock.0 2024-02-23 14:41:11.513 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 14:41:11.513 debug Latest data requested
roborock.0 2024-02-23 14:41:08.625 debug onStateChange: app_start with value: true
roborock.0 2024-02-23 14:40:51.253 debug homedata successfully updated
roborock.0 2024-02-23 14:40:51.168 debug Made ./lib/go2rtc/go2rtc_linux_amd64 executable
roborock.0 2024-02-23 14:40:51.160 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-23 14:40:51.157 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-23 14:40:49.954 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 14:40:49.906 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 14:40:49.821 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 14:40:49.777 debug Firmware features request for 44QNDpMpGVgofEptdTYE50
roborock.0 2024-02-23 14:40:49.720 debug Old file lib/go2rtc/go2rtc_linux_amd64 has been deleted.
roborock.0 2024-02-23 14:40:49.718 debug System type: go2rtc_linux_amd64
roborock.0 2024-02-23 14:40:49.718 debug platform: linux
roborock.0 2024-02-23 14:40:49.718 debug arch: x64
roborock.0 2024-02-23 14:40:49.717 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 14:40:49.716 debug Processing scene [object Object],[object Object],[object Object],[object Object]
roborock.0 2024-02-23 14:40:49.716 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 14:40:49.715 debug Latest data requested
roborock.0 2024-02-23 14:40:49.715 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_fw_features
roborock.0 2024-02-23 14:40:49.715 debug 44QNDpMpGVgofEptdTYE50 online. Starting mainUpdateInterval.
roborock.0 2024-02-23 14:40:11.512 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 14:40:11.511 debug Latest data requested
roborock.0 2024-02-23 14:39:11.511 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 14:39:11.511 debug Latest data requested
roborock.0 2024-02-23 14:38:11.797 debug Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
roborock.0 2024-02-23 14:38:11.748 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 14:38:11.513 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 14:38:11.512 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 14:38:11.512 debug Latest data requested
roborock.0 2024-02-23 14:38:11.511 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
roborock.0 2024-02-23 14:38:11.510 debug 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
roborock.0 2024-02-23 14:35:33.340 debug MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
roborock.0 2024-02-23 14:35:33.270 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 14:35:33.022 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 14:35:33.021 debug RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
roborock.0 2024-02-23 14:35:33.021 info MQTT initialized
roborock.0 2024-02-23 14:35:32.990 debug localDevices: {}
roborock.0 2024-02-23 14:35:27.464 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 14:35:27.454 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Ist der Roboter mit deinem Konto direkt verbunden oder von einem anderen Konto geteilt?

localDevices: {} müsste eigentlich den Saugroboter enthalten.

apachelance commented 8 months ago

direkt

apachelance commented 8 months ago

Soll ich 0.4.4. nochmal installieren und das Log posten?

copystring commented 8 months ago

Nein. Ich brauche mal den Inhalt von deinem HomeData

apachelance commented 8 months ago

{ "id": 4590431, "name": "My Home", "lon": null, "lat": null, "geoName": null, "products": [ { "id": "ldHlB6hwVPMvdm6AdkxJv", "name": "Roborock Qrevo", "model": "roborock.vacuum.a75", "iconUrl": null, "attribute": null, "capability": 0, "category": "robot.vacuum.cleaner", "schema": [ { "id": "101", "name": "rpc_request", "code": "rpc_request", "mode": "rw", "type": "RAW", "property": null, "desc": null }, { "id": "102", "name": "rpc_response", "code": "rpc_response", "mode": "rw", "type": "RAW", "property": null, "desc": null }, { "id": "120", "name": "错误代码", "code": "error_code", "mode": "ro", "type": "ENUM", "property": "{\"range\": [\"\"]}", "desc": null }, { "id": "121", "name": "设备状态", "code": "state", "mode": "ro", "type": "ENUM", "property": "{\"range\": [\"\"]}", "desc": null }, { "id": "122", "name": "设备电量", "code": "battery", "mode": "ro", "type": "ENUM", "property": "{\"range\": [\"\"]}", "desc": null }, { "id": "123", "name": "清扫模式", "code": "fan_power", "mode": "rw", "type": "ENUM", "property": "{\"range\": [\"\"]}", "desc": null }, { "id": "124", "name": "拖地模式", "code": "water_box_mode", "mode": "rw", "type": "ENUM", "property": "{\"range\": [\"\"]}", "desc": null }, { "id": "125", "name": "主刷寿命", "code": "main_brush_life", "mode": "rw", "type": "VALUE", "property": "{\"max\": 100, \"min\": 0, \"step\": 1, \"unit\": \"null\", \"scale\": 1}", "desc": null }, { "id": "126", "name": "边刷寿命", "code": "side_brush_life", "mode": "rw", "type": "VALUE", "property": "{\"max\": 100, \"min\": 0, \"step\": 1, \"unit\": \"null\", \"scale\": 1}", "desc": null }, { "id": "127", "name": "滤网寿命", "code": "filter_life", "mode": "rw", "type": "VALUE", "property": "{\"max\": 100, \"min\": 0, \"step\": 1, \"unit\": \"null\", \"scale\": 1}", "desc": null }, { "id": "128", "name": "额外状态", "code": "additional_props", "mode": "ro", "type": "RAW", "property": null, "desc": null }, { "id": "130", "name": "完成事件", "code": "task_complete", "mode": "ro", "type": "RAW", "property": null, "desc": null }, { "id": "131", "name": "电量不足任务取消", "code": "task_cancel_low_power", "mode": "ro", "type": "RAW", "property": null, "desc": null }, { "id": "132", "name": "运动中任务取消", "code": "task_cancel_in_motion", "mode": "ro", "type": "RAW", "property": null, "desc": null }, { "id": "133", "name": "充电状态", "code": "charge_status", "mode": "ro", "type": "RAW", "property": null, "desc": null }, { "id": "134", "name": "烘干状态", "code": "drying_status", "mode": "ro", "type": "RAW", "property": null, "desc": null } ] } ], "devices": [ { "duid": "7DNitzSyqTdJ36UrVDtRwN", "name": "Robbie Wohnzimmer", "attribute": null, "activeTime": 1707057281, "localKey": "TjTMsKr6wHHM7Wpv", "runtimeEnv": null, "timeZoneId": "Europe/Berlin", "iconUrl": "", "productId": "ldHlB6hwVPMvdm6AdkxJv", "lon": null, "lat": null, "share": false, "shareTime": null, "online": true, "fv": "02.17.78", "pv": "1.0", "roomId": null, "tuyaUuid": null, "tuyaMigrated": false, "extra": "{}", "setting": null, "sn": "R62EBS32002461", "featureSet": "2238601361260543", "newFeatureSet": "0000000008DEFFFE", "deviceStatus": { "120": 0, "121": 8, "122": 100, "123": 106, "124": 204, "125": 56, "126": 27, "127": 11, "128": 0, "133": 1, "134": 0, "filter_life": 11, "water_box_mode": 204, "side_brush_life": 27, "fan_power": 106, "state": 8, "battery": 83, "main_brush_life": 56 }, "silentOtaSwitch": true, "f": false }, { "duid": "44QNDpMpGVgofEptdTYE50", "name": "Robbie Schlafzimmer", "attribute": null, "activeTime": 1707056528, "localKey": "2wIFZbwakAvpnqPM", "runtimeEnv": null, "timeZoneId": "Europe/Berlin", "iconUrl": "", "productId": "ldHlB6hwVPMvdm6AdkxJv", "lon": null, "lat": null, "share": false, "shareTime": null, "online": true, "fv": "02.17.78", "pv": "1.0", "roomId": null, "tuyaUuid": null, "tuyaMigrated": false, "extra": "{}", "setting": null, "sn": "R62MBS33000561", "featureSet": "2238601361260543", "newFeatureSet": "0000000008DEFFFE", "deviceStatus": { "120": 0, "121": 8, "122": 100, "123": 106, "124": 204, "125": 78, "126": 57, "127": 55, "128": 0, "133": 1, "134": 0 }, "silentOtaSwitch": true, "f": false } ], "receivedDevices": [], "rooms": [ { "id": 16834809, "name": "Standard1" }, { "id": 16834805, "name": "Standard" }, { "id": 16834799, "name": "Arbeitszimmer1" }, { "id": 16834791, "name": "Hauptschlafzimmer" }, { "id": 14245252, "name": "Büro" }, { "id": 14245249, "name": "Gäste WC" }, { "id": 14245235, "name": "Schlafzimmer" }, { "id": 14245217, "name": "Badezimmer" }, { "id": 14245212, "name": "Flur" }, { "id": 14245211, "name": "Arbeitszimmer" }, { "id": 13111610, "name": "Küche" }, { "id": 13111608, "name": "Wohnzimmer" } ] }

copystring commented 8 months ago

OK. Merkwürdig. Um dem Problem näherzukommen, habe ich in der dev zusätzliches Logging eingebaut. Erstell damit bitte ein neues Log.

apachelance commented 8 months ago

Ist die dev schon live? Hab gerade installiert, seh aber keine Änderung und Adapter hat auch nicht neu gestartet.

copystring commented 8 months ago

Ja. Die Änderung habe ich vor 5 Minuten hochgeladen.

apachelance commented 8 months ago

Und neu:

roborock.0 2024-02-23 15:05:19.202 debug onStateChange: app_start_collect_dust with value: true
roborock.0 2024-02-23 15:05:10.247 debug onStateChange: find_me with value: true
roborock.0 2024-02-23 15:05:03.272 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 15:05:03.272 debug Latest data requested
roborock.0 2024-02-23 15:05:03.212 debug onStateChange: app_start with value: true
roborock.0 2024-02-23 15:04:41.804 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 15:04:41.803 debug Latest data requested
roborock.0 2024-02-23 15:04:03.272 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 15:04:03.272 debug Latest data requested
roborock.0 2024-02-23 15:03:43.693 debug homedata successfully updated
roborock.0 2024-02-23 15:03:43.601 debug Made ./lib/go2rtc/go2rtc_linux_amd64 executable
roborock.0 2024-02-23 15:03:43.591 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-23 15:03:43.588 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-23 15:03:42.039 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 15:03:41.954 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 15:03:41.908 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 15:03:41.866 debug Firmware features request for 44QNDpMpGVgofEptdTYE50
roborock.0 2024-02-23 15:03:41.806 debug System type: go2rtc_linux_amd64
roborock.0 2024-02-23 15:03:41.805 debug platform: linux
roborock.0 2024-02-23 15:03:41.805 debug arch: x64
roborock.0 2024-02-23 15:03:41.804 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 15:03:41.804 debug Processing scene [object Object],[object Object],[object Object],[object Object]
roborock.0 2024-02-23 15:03:41.803 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 15:03:41.803 debug Latest data requested
roborock.0 2024-02-23 15:03:41.803 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_fw_features
roborock.0 2024-02-23 15:03:41.803 debug 44QNDpMpGVgofEptdTYE50 online. Starting mainUpdateInterval.
roborock.0 2024-02-23 15:03:03.273 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 15:03:03.272 debug Latest data requested
roborock.0 2024-02-23 15:02:03.272 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 15:02:03.272 debug Latest data requested
roborock.0 2024-02-23 15:01:03.887 debug Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
roborock.0 2024-02-23 15:01:03.836 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 15:01:03.275 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 15:01:03.274 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 15:01:03.274 debug Latest data requested
roborock.0 2024-02-23 15:01:03.273 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
roborock.0 2024-02-23 15:01:03.270 debug 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
roborock.0 2024-02-23 14:58:24.989 debug MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
roborock.0 2024-02-23 14:58:24.917 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 14:58:24.043 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 14:58:24.042 debug RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
roborock.0 2024-02-23 14:58:24.042 info MQTT initialized
roborock.0 2024-02-23 14:58:24.013 debug localDevices: {}
roborock.0 2024-02-23 14:58:18.427 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 14:58:18.417 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Das scheint nicht geklappt zu haben, zu installieren. In der neuen dev sind zwei zusätzliche Debuglog-Einträge (getLocalDevices localKey: und getLocalDevices parsedDecodedMessage:. Die fehlen hier komplett.

copystring commented 8 months ago

Bei mir sieht das so aus. image

Muss jetzt erstmal weg. Ich gucke später nochmal rein.

copystring commented 8 months ago

Konntest du die neue Version erfolgreich laden und ein neues Debuglog erstellen?

apachelance commented 8 months ago

hab es jetzt nochmal im ioBroker via github und "benutzerdefiniert" mit https://github.com/copystring/ioBroker.roborock/tree/dev installiert. Log folgt gleich.

apachelance commented 8 months ago
roborock.0 2024-02-23 16:39:00.671 debug dps debug: {"id":132425,"result":["ok"]}
roborock.0 2024-02-23 16:38:58.439 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 16:38:58.438 debug Latest data requested
roborock.0 2024-02-23 16:38:45.080 debug onStateChange: app_start_collect_dust with value: true
roborock.0 2024-02-23 16:38:36.382 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 16:38:36.381 debug Latest data requested
roborock.0 2024-02-23 16:38:35.803 debug onStateChange: find_me with value: true
roborock.0 2024-02-23 16:38:27.560 debug dps debug: {"id":132394,"result":["ok"]}
roborock.0 2024-02-23 16:38:26.171 debug onStateChange: app_start with value: true
roborock.0 2024-02-23 16:37:58.440 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 16:37:58.439 debug Latest data requested
roborock.0 2024-02-23 16:37:56.148 debug dps debug: {"id":132365,"result":[{"msg_ver":2,"msg_seq":2031,"state":8,"battery":100,"clean_time":0,"clean_area":0,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"water_box_status":1,"fan_power":106,"dnd_enabled":0,"map_status":3,"is_locating":0,"lock_status":0,"water_box_mode":204,"distance_off":0,"water_box_carriage_status":1,"mop_forbidden_enable":1,"camera_status":1,"is_exploring":0,"adbumper_status":[0,0,0],"water_shortage_status":0,"dock_type":8,"dust_collection_status":0,"auto_dust_collection":1,"avoid_count":120,"mop_mode":302,"in_warmup":0,"back_type":-1,"wash_phase":0,"wash_ready":1,"wash_status":768,"debug_mode":0,"collision_avoid_status":1,"switch_map_mode":0,"dock_error_status":0,"charge_status":1,"unsave_map_reason":4,"unsave_map_flag":0,"dry_status":0,"rdt":0,"clean_percent":0,"rss":2,"dss":681,"common_status":0,"corner_clean_mode":0,"kct":0,"events":[],"switch_status":1,"last_clean_t":1708687858}]}
roborock.0 2024-02-23 16:37:56.146 debug dps debug: {"id":132364,"result":{"diff":{"1":{"count":0},"2":{"obstacle":0,"space":0,"count":0},"3":{"max_len":0,"nonce":1708694581,"count":0},"6":{"max_len":0,"nonce":1708688280,"count":0},"11":{"max_len":0,"nonce":1708688280,"count":0},"15":{"max_len":9,"nonce":1708688280,"count":0},"16":{"max_len":0,"nonce":1708688280,"count":0},"17":{"count":0},"21":{"max_len":0,"nonce":1708688280,"count":0},"24":{"max_len":32,"nonce":1708688280,"count":0},"25":{"max_len":11,"nonce":1708688280,"count":0},"29":{"max_len":0,"nonce":1708688280,"count":0},"30":{"max_len":2,"nonce":1708688280,"count":0},"31":{"max_len":0,"nonce":1708688280,"count":0}},"nonce":1708700323,"result":0}}
roborock.0 2024-02-23 16:37:37.659 debug homedata successfully updated
roborock.0 2024-02-23 16:37:37.577 debug Made ./lib/go2rtc/go2rtc_linux_amd64 executable
roborock.0 2024-02-23 16:37:37.571 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-23 16:37:37.570 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-23 16:37:36.620 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 16:37:36.572 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 16:37:36.488 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 16:37:36.438 debug Firmware features request for 44QNDpMpGVgofEptdTYE50
roborock.0 2024-02-23 16:37:36.384 debug System type: go2rtc_linux_amd64
roborock.0 2024-02-23 16:37:36.384 debug platform: linux
roborock.0 2024-02-23 16:37:36.383 debug arch: x64
roborock.0 2024-02-23 16:37:36.383 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 16:37:36.382 debug Processing scene [object Object],[object Object],[object Object],[object Object]
roborock.0 2024-02-23 16:37:36.382 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 16:37:36.381 debug Latest data requested
roborock.0 2024-02-23 16:37:36.381 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_fw_features
roborock.0 2024-02-23 16:37:36.381 debug 44QNDpMpGVgofEptdTYE50 online. Starting mainUpdateInterval.
roborock.0 2024-02-23 16:36:58.439 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 16:36:58.439 debug Latest data requested
roborock.0 2024-02-23 16:35:58.439 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 16:35:58.439 debug Latest data requested
roborock.0 2024-02-23 16:34:58.862 debug Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
roborock.0 2024-02-23 16:34:58.441 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 16:34:58.441 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 16:34:58.440 debug Latest data requested
roborock.0 2024-02-23 16:34:58.440 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
roborock.0 2024-02-23 16:34:58.438 debug 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
roborock.0 2024-02-23 16:32:20.131 debug MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
roborock.0 2024-02-23 16:32:19.850 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 16:32:19.849 debug RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
roborock.0 2024-02-23 16:32:19.849 info MQTT initialized
roborock.0 2024-02-23 16:32:19.819 debug localDevices: {}
roborock.0 2024-02-23 16:32:14.226 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 16:32:14.216 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#53c643f59d28fe9b8419f568d4bc6485c46b77e0) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Passt leider immer noch nicht. Die wichtigen Einträge im Log fehlen weiterhin.

apachelance commented 8 months ago

Dann hab ich gerade keine Idee. Hatte ja oben geschrieben, wie ich es installiert hatte. Eine Fehlermeldung gabs nicht.

copystring commented 8 months ago

Vielleicht hilft ein Neustart des PCs?

apachelance commented 8 months ago

Läuft im Docker auf einem NAS. Kann ich mal neu starten und den Adapter löschen und komplett neu installieren.

apachelance commented 8 months ago

So, Adapter gelöscht, Container neu gestartet, Dev neu installiert. Sieht genauso aus:

roborock.0 2024-02-23 17:57:10.688 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 17:57:10.687 debug Latest data requested
roborock.0 2024-02-23 17:57:03.303 debug onStateChange: app_start_collect_dust with value: true
roborock.0 2024-02-23 17:56:52.283 debug onStateChange: find_me with value: true
roborock.0 2024-02-23 17:56:46.197 debug onStateChange: app_start with value: true
roborock.0 2024-02-23 17:56:32.956 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 17:56:32.956 debug Latest data requested
roborock.0 2024-02-23 17:56:11.972 debug homedata successfully updated
roborock.0 2024-02-23 17:56:11.869 debug Made ./lib/go2rtc/go2rtc_linux_amd64 executable
roborock.0 2024-02-23 17:56:11.862 info Starting adapter finished. Lets go!!!!!!!
roborock.0 2024-02-23 17:56:11.859 debug Updating HomeData with homeId: 4590431
roborock.0 2024-02-23 17:56:10.940 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 17:56:10.852 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":202,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 17:56:10.800 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"7DNitzSyqTdJ36UrVDtRwN","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 17:56:10.754 debug Firmware features request for 44QNDpMpGVgofEptdTYE50
roborock.0 2024-02-23 17:56:10.690 debug System type: go2rtc_linux_amd64
roborock.0 2024-02-23 17:56:10.689 debug platform: linux
roborock.0 2024-02-23 17:56:10.689 debug arch: x64
roborock.0 2024-02-23 17:56:10.689 debug Processing scene param {"triggers":[],"action":{"type":"S","items":[{"id":1,"type":"CMD","name":"","entityId":"44QNDpMpGVgofEptdTYE50","param":"{\"id\":1,\"method\":\"do_scenes_app_start\",\"params\":[{\"fan_power\":102,\"water_box_mode\":200,\"mop_mode\":300,\"mop_template_id\":300,\"repeat\":0,\"source\":101}]}","finishDpIds":[130]}]},"matchType":"NONE"}
roborock.0 2024-02-23 17:56:10.688 debug Processing scene [object Object],[object Object],[object Object],[object Object]
roborock.0 2024-02-23 17:56:10.687 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_status
roborock.0 2024-02-23 17:56:10.687 debug Latest data requested
roborock.0 2024-02-23 17:56:10.687 debug getParameter for 44QNDpMpGVgofEptdTYE50: get_fw_features
roborock.0 2024-02-23 17:56:10.687 debug 44QNDpMpGVgofEptdTYE50 online. Starting mainUpdateInterval.
roborock.0 2024-02-23 17:55:32.956 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 17:55:32.955 debug Latest data requested
roborock.0 2024-02-23 17:54:32.955 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 17:54:32.955 debug Latest data requested
roborock.0 2024-02-23 17:53:33.142 debug Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
roborock.0 2024-02-23 17:53:33.097 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 17:53:32.957 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 17:53:32.956 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
roborock.0 2024-02-23 17:53:32.956 debug Latest data requested
roborock.0 2024-02-23 17:53:32.955 debug getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
roborock.0 2024-02-23 17:53:32.954 debug 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
roborock.0 2024-02-23 17:50:55.264 debug MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
roborock.0 2024-02-23 17:50:55.191 debug FEATURE TEST 0000000008DEFFFE
roborock.0 2024-02-23 17:50:54.584 debug Robot key: roborock.vacuum.a75
roborock.0 2024-02-23 17:50:54.583 debug RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
roborock.0 2024-02-23 17:50:54.583 info MQTT initialized
roborock.0 2024-02-23 17:50:54.550 debug localDevices: {}
roborock.0 2024-02-23 17:50:49.025 info Starting adapter. This might take a few minutes depending on your setup. Please wait.
roborock.0 2024-02-23 17:50:49.013 info starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
copystring commented 8 months ago

Hast du ein spezielles Netzwerk? VLAN oder so? Der Roborock Adapter muss im selben Netzwerk sein, damit dieser die Saugroboter finden kann.

apachelance commented 8 months ago

Nein, kein VLAN. Alles im selben Netzwerk. Ich bin jetzt ins Dockerverzeichnis und hab geschaut, ob die neue localconnector.js dort ist. Sie ist da mit deinen Aktualisierungen:

server.on("message", (msg) => {
                const parsedMessage = localMessageParser.parse(msg);
                const decodedMessage = this.decryptECB(parsedMessage.payload, BROADCAST_TOKEN); // this might be decryptCBC for A01. Haven't checked this yet
                const parsedDecodedMessage = JSON.parse(decodedMessage);
                this.adapter.log.debug(`getLocalDevices parsedDecodedMessage: ${JSON.stringify(parsedDecodedMessage)}`);

                if (parsedDecodedMessage) {
                    const localKey = this.adapter.localKeys.get(parsedDecodedMessage.duid);
                    this.adapter.log.debug(`getLocalDevices localKey: ${localKey}`);

                    if (localKey) { // if there's no localKey, decryption cannot work. For example when the found robot is not associated with a roborock account
                        if (!devices[parsedDecodedMessage.duid]) {
                            devices[parsedDecodedMessage.duid] = parsedDecodedMessage.ip;
copystring commented 8 months ago

Könnte aber sein, das docker da Probleme macht. Ist ein anderes Netzwerk

copystring commented 8 months ago

Docker baut einen eigenen Adressenbereich auf. Hast du die Möglichkeit diesen einen Docker Container und selbe Netz wie die Saugroboter zu bringen? Dann sollte es laufen.

apachelance commented 8 months ago

Lass mich mal schauen, ob ich das hinbekomme

apachelance commented 8 months ago

Daran dürfte es nicht liegen. Im ioBroker wird der selbe IP-Bereich (http://192.168.178.10:8081), wie beim Roborock (192.168.178.69) angezeigt.

copystring commented 8 months ago

Geh mal in den Docker Container von iobroker und schreib ip addr rein. Welche Adressen stehen da?

apachelance commented 8 months ago

Den Befehl kennt er im Docker Terminal leider nicht. Hab aber im Docker Host jetzt gesehen, dass dort bei einer 127.er Bereich zugewiesen. Ich schau mal, wie ich das im Nachhinein geändert bekomme.

Hast du eine Erklärung, wieso mit Version 0.4.4. keine Probleme gibt?

copystring commented 8 months ago

0.4.4 geht deshalb, weil es keine lokale Verbindung benutzt. Alles läuft dort noch über den mqtt Server von roborock. Da sind aber die abfragen in 24 Stunden begrenzt. Deshalb muss eine lokale Verbindung ohne Cloud aufgebaut werden.

apachelance commented 8 months ago

Ok. Das Zuweisen einen dedizierten localen IP zu einem Container ist eine etwas sportlichere Übung mit Macvlans und widerspricht eigentlich dem Dockerprinzip einer gekapselten Umgebung: https://blog.oddbit.com/post/2018-03-12-using-docker-macvlan-networks/

Ist es eine Alternative, dass du nicht beide Connection-Typen (Local/Cloud) im Adapter als Option anbietest? Ich hatte beispielsweise keine Limitprobleme mit der Cloud Verbindung in der Vergangenheit.

copystring commented 8 months ago

Ich gucke später Mal, ob ich eine Lösung finden kann.

copystring commented 8 months ago

Warum machst du nicht ein separates Netzwerk für diesen einen Container und stellst das auf host mode um?

copystring commented 8 months ago

Laut meiner Recherche, muss es so sein, dass der entsprechende Container im Host-Netzwerk läuft.

copystring commented 8 months ago

Ist es eine Alternative, dass du nicht beide Connection-Typen (Local/Cloud) im Adapter als Option anbietest? Ich hatte beispielsweise keine Limitprobleme mit der Cloud Verbindung in der Vergangenheit.

Der Adapter kann weiterhin beides, bevorzugt jedoch die lokale Verbindung und das wird auch so bleiben müssen. Mag sein, dass es bei dir lief. Ich hatte leider zu viele Nutzer, die mit der Cloud Probleme hatten.

apachelance commented 8 months ago

Im Nachhinein lässt sich im Container der Netzwerktyp nicht umstellen. Ich hab jetzt einen neuen ioBroker Container testweise im Host Mode angelegt. Dort funktioniert der Adapter und die Steuerung der Roborocks. Host Mode ist jedoch im Regelfall nicht präferiert bei Containern, da es bei der Nutzung von den selben Ports im Container und Host zu Konflikten beim Host kommen kann.

2024-02-24 18:17:55.740 - info: roborock.0 (522) starting. Version 0.5.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.19.1, js-controller: 5.0.19
--
2024-02-24 18:17:55.755 - info: roborock.0 (522) Starting adapter. This might take a few minutes depending on your setup. Please wait.
2024-02-24 18:17:57.185 - debug: roborock.0 (522) getLocalDevices parsedDecodedMessage: {"duid":"7DNitzSyqTdJ36UrVDtRwN","ip":"192.168.178.58"}
2024-02-24 18:17:57.185 - debug: roborock.0 (522) getLocalDevices localKey: TjTMsKr6wHHM7Wpv
2024-02-24 18:17:57.217 - debug: roborock.0 (522) getLocalDevices parsedDecodedMessage: {"duid":"44QNDpMpGVgofEptdTYE50","ip":"192.168.178.69"}
2024-02-24 18:17:57.218 - debug: roborock.0 (522) getLocalDevices localKey: 2wIFZbwakAvpnqPM
2024-02-24 18:17:57.402 - info: admin.0 (186) <== Disconnect system.user.admin from ::ffff:192.168.178.60
2024-02-24 18:18:01.329 - debug: roborock.0 (522) localDevices: {"7DNitzSyqTdJ36UrVDtRwN":"192.168.178.58","44QNDpMpGVgofEptdTYE50":"192.168.178.69"}
2024-02-24 18:18:01.361 - info: roborock.0 (522) MQTT initialized
2024-02-24 18:18:01.361 - debug: roborock.0 (522) RoomIDs debug: {"13111608":"Wohnzimmer","13111610":"Küche","14245211":"Arbeitszimmer","14245212":"Flur","14245217":"Badezimmer","14245235":"Schlafzimmer","14245249":"Gäste WC","14245252":"Büro","16834791":"Hauptschlafzimmer","16834799":"Arbeitszimmer1","16834805":"Standard","16834809":"Standard1"}
2024-02-24 18:18:01.362 - debug: roborock.0 (522) Robot key: roborock.vacuum.a75
2024-02-24 18:18:01.956 - debug: roborock.0 (522) FEATURE TEST 0000000008DEFFFE
2024-02-24 18:18:01.975 - debug: roborock.0 (522) tcp client for 7DNitzSyqTdJ36UrVDtRwN connected
2024-02-24 18:18:01.975 - debug: roborock.0 (522) tcp client for 44QNDpMpGVgofEptdTYE50 connected
2024-02-24 18:18:02.035 - debug: roborock.0 (522) MQTT connection connected {"cmd":"connack","retain":false,"qos":0,"dup":false,"length":2,"topic":null,"payload":null,"sessionPresent":false,"returnCode":0}.
2024-02-24 18:18:23.905 - debug: roborock.0 (522) dps debug: {"id":132439,"result":["ok"]}
2024-02-24 18:18:26.347 - info: jarvis.0 (465) Server has 1 connected clients.
2024-02-24 18:18:26.347 - info: jarvis.0 (465) Client-Instance with ip 192.168.178.198 and instance-id "749e89e4-d6ef-4581-9520-0ea9dbd4aa25" (using Safari) connected (with 1 instances in total).
2024-02-24 18:18:31.677 - debug: roborock.0 (522) dps debug: {"id":132446,"result":[{"msg_ver":2,"msg_seq":1414,"state":8,"battery":100,"clean_time":2881,"clean_area":48767500,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"water_box_status":1,"fan_power":106,"dnd_enabled":0,"map_status":3,"is_locating":0,"lock_status":0,"water_box_mode":204,"distance_off":0,"water_box_carriage_status":1,"mop_forbidden_enable":1,"camera_status":1,"is_exploring":0,"adbumper_status":[0,0,0],"water_shortage_status":0,"dock_type":8,"dust_collection_status":0,"auto_dust_collection":1,"avoid_count":141,"mop_mode":302,"in_warmup":0,"back_type":-1,"wash_phase":0,"wash_ready":1,"wash_status":512,"debug_mode":0,"collision_avoid_status":1,"switch_map_mode":0,"dock_error_status":0,"charge_status":1,"unsave_map_reason":0,"unsave_map_flag":0,"dry_status":0,"rdt":0,"clean_percent":0,"rss":2,"dss":681,"common_status":0,"corner_clean_mode":0,"kct":0,"events":[],"switch_status":1,"last_clean_t":1708779525}]}
2024-02-24 18:18:31.879 - debug: roborock.0 (522) dps debug: {"id":132449,"result":["ok"]}
2024-02-24 18:18:50.343 - info: jarvis.0 (465) Client-Instance with ip 192.168.178.198 and id "749e89e4-d6ef-4581-9520-0ea9dbd4aa25" disconnected (with 0 instances left in total).
2024-02-24 18:18:50.346 - info: jarvis.0 (465) Server has 0 connected clients.
2024-02-24 18:19:03.455 - debug: roborock.0 (522) dps debug: {"id":132484,"result":["ok"]}
2024-02-24 18:20:39.956 - debug: roborock.0 (522) 7DNitzSyqTdJ36UrVDtRwN online. Starting mainUpdateInterval.
2024-02-24 18:20:39.957 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_fw_features
2024-02-24 18:20:39.958 - debug: roborock.0 (522) Latest data requested
2024-02-24 18:20:39.958 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
2024-02-24 18:20:39.959 - debug: roborock.0 (522) Robot key: roborock.vacuum.a75
2024-02-24 18:20:40.831 - debug: roborock.0 (522) FEATURE TEST 0000000008DEFFFE
2024-02-24 18:20:40.843 - debug: roborock.0 (522) Firmware features request for 7DNitzSyqTdJ36UrVDtRwN
2024-02-24 18:20:40.912 - debug: roborock.0 (522) Length of message queue: 2
2024-02-24 18:20:40.914 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_multi_maps_list
2024-02-24 18:20:40.950 - debug: roborock.0 (522) Could not find matching 312e
2024-02-24 18:20:40.956 - debug: roborock.0 (522) Could not find matching 312e
2024-02-24 18:20:40.999 - debug: roborock.0 (522) Length of message queue: 2
2024-02-24 18:20:50.887 - debug: roborock.0 (522) Length of message queue: 1
2024-02-24 18:20:50.888 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_room_mapping
2024-02-24 18:20:50.889 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:50.930 - warn: roborock.0 (522) Failed to execute get_status on robot 7DNitzSyqTdJ36UrVDtRwN Error: Local request with id 1 with method get_status timed out after 10 seconds for response.102
2024-02-24 18:20:50.931 - warn: roborock.0 (522) Failed to execute get_clean_summary on robot 7DNitzSyqTdJ36UrVDtRwN Error: Local request with id 2 with method get_clean_summary timed out after 10 seconds for response.102
2024-02-24 18:20:50.985 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.033 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.033 - debug: roborock.0 (522) All mapped rooms: [[16,"13111610",14],[17,"13111608",6]]
2024-02-24 18:20:51.033 - debug: roborock.0 (522) Mapped room matched: 13111610 with name: Küche
2024-02-24 18:20:51.033 - debug: roborock.0 (522) Mapped room matched: 13111608 with name: Wohnzimmer
2024-02-24 18:20:51.034 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_consumable
2024-02-24 18:20:51.094 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.095 - debug: roborock.0 (522) Consumables of robot: {"main_brush_work_time":482716,"side_brush_work_time":536398,"filter_work_time":482717,"filter_element_work_time":0,"sensor_dirty_time":85449,"strainer_work_times":83,"dust_collection_work_times":209}
2024-02-24 18:20:51.095 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_network_info
2024-02-24 18:20:51.267 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.267 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_server_timer
2024-02-24 18:20:51.325 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.325 - debug: roborock.0 (522) get_server_timer: " + []
2024-02-24 18:20:51.325 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_timer
2024-02-24 18:20:51.379 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.380 - debug: roborock.0 (522) get_timer: "[]
2024-02-24 18:20:51.380 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_carpet_mode
2024-02-24 18:20:51.432 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.432 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_carpet_clean_mode
2024-02-24 18:20:51.485 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:20:51.486 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_water_box_custom_mode
2024-02-24 18:20:51.541 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:21:39.956 - debug: roborock.0 (522) Latest data requested
2024-02-24 18:21:39.956 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_status
2024-02-24 18:21:39.969 - debug: roborock.0 (522) Length of message queue: 0
2024-02-24 18:21:39.970 - debug: roborock.0 (522) get_status: {"msg_ver":2,"msg_seq":1408,"state":8,"battery":100,"clean_time":2417,"clean_area":44910000,"error_code":0,"map_present":1,"in_cleaning":0,"in_returning":0,"in_fresh_state":1,"lab_status":1,"water_box_status":1,"back_type":-1,"wash_phase":0,"wash_ready":1,"wash_status":512,"fan_power":106,"dnd_enabled":0,"map_status":3,"is_locating":0,"lock_status":0,"water_box_mode":204,"distance_off":0,"water_box_carriage_status":1,"mop_forbidden_enable":1,"camera_status":1,"is_exploring":0,"adbumper_status":[0,0,0],"water_shortage_status":0,"dock_type":8,"dust_collection_status":0,"auto_dust_collection":1,"avoid_count":118,"mop_mode":302,"debug_mode":0,"in_warmup":0,"collision_avoid_status":1,"switch_map_mode":0,"dock_error_status":0,"charge_status":1,"unsave_map_reason":0,"unsave_map_flag":0,"dry_status":0,"rdt":0,"clean_percent":0,"rss":2,"dss":681,"common_status":0,"last_clean_t":1708779058,"corner_clean_mode":0,"kct":0}
2024-02-24 18:21:39.975 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.back_type" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.977 - debug: roborock.0 (522) getParameter for 7DNitzSyqTdJ36UrVDtRwN: get_room_mapping
2024-02-24 18:21:39.985 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.distance_off" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.986 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.mop_forbidden_enable" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.986 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.camera_status" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.986 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.is_exploring" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.987 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.avoid_count" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.989 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.in_warmup" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.990 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.charge_status" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.990 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.rdt" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.990 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.clean_percent" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.991 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.rss" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.991 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.common_status" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.991 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.last_clean_t" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.991 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.corner_clean_mode" has no existing object, this might lead to an error in future versions
2024-02-24 18:21:39.991 - warn: roborock.0 (522) State "roborock.0.Devices.7DNitzSyqTdJ36UrVDtRwN.deviceStatus.kct" has no existing object, this might lead to an error in future versions
copystring commented 8 months ago

Host Mode ist jedoch im Regelfall nicht präferiert bei Containern, da es bei der Nutzung von den selben Ports im Container und Host zu Konflikten beim Host kommen kann.

Ja, das stimmt. Es gibt aber leider keine andere Möglichkeit. Das liegt auch nicht am Adapter, sondern an grundlegenden Funktionen der Netzwerktechnik. Beim Start des Adapters wird ein udp Broadcast durchgeführt, und dies läuft halt eben immer in dem Netzwerk, in dem es sich befindet und kann auch nicht geändert werden. Sorry, aber es muss so bleiben.

Außerdem kannst du von ioBroker und von meinem Adapter gegebenfalls alle Ports ändern, falls es doch einen Konflikt bezüglich der Ports geben sollte.

apachelance commented 8 months ago

Alle klar.