Buttons on the webpage don't refresh to the matching state of a robot.
Describe the bug The Buttons of the webpage don't shows the current status of a selected robot.
Steps to reproduce the behavior:
Go to 'http://ip:6824/map.html'
Click on "Start" button for the first robot -> the robot starts -> The button changed to "pause".
Select a other robot.
It is not possible to start the robot, because the "pause" button stay active.
A refresh of the page is necessary for refreshing the buttons so that you can click on "start" again for the second one.
Expected behavior The button status need to be refreshed to a matching status of the robot after changing the robot in the drop down list or refreshing the page. ( The robot state need do be read out and processed.)
Other example. After refreshing the page, the buttons changed to "start". Also if the robot already works. So it is not possible to send a "pause". The reverse case. :)
Thank you
Screenshots & Logfiles
Versions:
Adapter version: 0.6.2
JS-Controller version: 5.0.19
Node version: v18.19.0
Operating system: Debian 12
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.
Unstale
Please try the new dev here: https://github.com/copystring/ioBroker.roborock/tree/dev in my testing it worked perfectly. However, this chance required to request that robot state every second. Hopefully this will not cause any long term problems.
Please try the new dev here: https://github.com/copystring/ioBroker.roborock/tree/dev in my testing it worked perfectly. However, this chance required to request that robot state every second. Hopefully this will not cause any long term problems.
Hi,
I have still problems. Hmmm, i think there are still bugs.
| roborock.0 | 2024-05-21 14:09:39.629 | error | Failed to launch go2rtc: Error: spawn ETXTBSY |
|---|---|---|---|
| roborock.0 | 2024-05-21 14:09:38.316 | info | Starting adapter finished. Lets go!!!!!!! |
| roborock.0 | 2024-05-21 14:08:55.834 | info | MQTT initialized |
| roborock.0 | 2024-05-21 14:08:55.365 | info | Starting adapter. This might take a few minutes depending on your setup. Please wait. |
| roborock.0 | 2024-05-21 14:08:55.359 | info | starting. Version 0.6.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.20.2, js-controller: 5.0.19 |
| roborock.0 | 2024-05-21 14:08:55.282 | info | Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system |
| roborock.0 | 2024-05-21 14:08:51.713 | error | Failed to get home details: Error: Connection is closed. at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at ObjectsInRedisClient._setObject (/opt/iobroker/node_modules/@iobroker/db-objects-redis/build/lib/objects/objectsInRedisClient.js:2727:45) at Immediate. |
| roborock.0 | 2024-05-21 14:08:51.712 | error | Connection is closed. |
| roborock.0 | 2024-05-21 14:08:51.712 | error | Error: Connection is closed. at Redis.sendCommand (/opt/iobroker/node_modules/ioredis/built/redis/index.js:636:24) at Redis.get (/opt/iobroker/node_modules/ioredis/built/commander.js:122:25) at ObjectsInRedisClient._setObject (/opt/iobroker/node_modules/@iobroker/db-objects-redis/build/lib/objects/objectsInRedisClient.js:2727:45) at Immediate. |
| roborock.0 | 2024-05-21 14:08:51.712 | error | unhandled promise rejection: Connection is closed. |
| roborock.0 | 2024-05-21 14:08:51.711 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). |
| roborock.0 | 2024-05-21 14:08:51.709 | info | terminating |
| roborock.0 | 2024-05-21 14:08:51.209 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason |
| roborock.0 | 2024-05-21 14:08:51.209 | info | terminating |
| roborock.0 | 2024-05-21 14:08:51.207 | info | Got terminate signal TERMINATE_YOURSELF |
Try restarting your PC
The errors are still there. Also after restart.
But i have tested the adapter now. But the adapter crashed after starting:
| roborock.0 | 2024-05-27 13:13:24.644 | warn | setTimeout called, but adapter is shutting down |
|---|---|---|---|
| roborock.0 | 2024-05-27 13:13:24.632 | warn | setTimeout called, but adapter is shutting down |
| roborock.0 | 2024-05-27 13:13:24.349 | warn | setTimeout called, but adapter is shutting down |
| roborock.0 | 2024-05-27 13:13:24.307 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason |
| roborock.0 | 2024-05-27 13:13:24.307 | info | terminating |
| roborock.0 | 2024-05-27 13:13:24.305 | error | Cannot read properties of undefined (reading 'captureException') |
| roborock.0 | 2024-05-27 13:13:24.305 | error | TypeError: Cannot read properties of undefined (reading 'captureException') at Roborock.catchError (/opt/iobroker/node_modules/iobroker.roborock/main.js:1279:44) |
| roborock.0 | 2024-05-27 13:13:24.305 | error | unhandled promise rejection: Cannot read properties of undefined (reading 'captureException') |
| roborock.0 | 2024-05-27 13:13:24.305 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). |
| roborock.0 | 2024-05-27 13:13:24.303 | error | Failed to execute get_map_v1 on robot vicXhKzyXxSnA2cSxiUZ8 TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Array at new NodeError (node:internal/errors:405:5) at _write (node:internal/streams/writable:315:13) at Writable.end (node:internal/streams/writable:612:17) at zlibBuffer (node:zlib:128:10) at Object.asyncBufferWrapper [as gzip] (node:zlib:817:12) at vacuum.getMap (/opt/iobroker/node_modules/iobroker.roborock/lib/vacuum.js:67:10) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) |
| roborock.0 | 2024-05-27 13:13:20.694 | info | Starting adapter finished. Lets go!!!!!!! |
| roborock.0 | 2024-05-27 13:12:38.017 | info | MQTT initialized |
| roborock.0 | 2024-05-27 13:12:37.535 | info | Starting adapter. This might take a few minutes depending on your setup. Please wait. |
| roborock.0 | 2024-05-27 13:12:37.527 | info | starting. Version 0.6.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.20.3, js-controller: 5.0.19 |
| roborock.0 | 2024-05-27 13:12:37.455 | info | Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system |
| roborock.0 | 2024-05-27 13:12:05.933 | warn | Terminated (UNCAUGHT_EXCEPTION): Without reason |
| roborock.0 | 2024-05-27 13:12:05.933 | info | terminating |
| roborock.0 | 2024-05-27 13:12:05.932 | error | Cannot read properties of undefined (reading 'captureException') |
| roborock.0 | 2024-05-27 13:12:05.932 | error | TypeError: Cannot read properties of undefined (reading 'captureException') at Roborock.catchError (/opt/iobroker/node_modules/iobroker.roborock/main.js:1279:44) |
| roborock.0 | 2024-05-27 13:12:05.932 | error | unhandled promise rejection: Cannot read properties of undefined (reading 'captureException') |
| roborock.0 | 2024-05-27 13:12:05.932 | error | Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). |
| roborock.0 | 2024-05-27 13:12:05.930 | error | Failed to execute get_map_v1 on robot vicXhKzyXxSnA2cSxiUZ8 TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Array at new NodeError (node:internal/errors:405:5) at _write (node:internal/streams/writable:315:13) at Writable.end (node:internal/streams/writable:612:17) at zlibBuffer (node:zlib:128:10) at Object.asyncBufferWrapper [as gzip] (node:zlib:817:12) at vacuum.getMap (/opt/iobroker/node_modules/iobroker.roborock/lib/vacuum.js:67:10) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) |
| roborock.0 | 2024-05-27 13:11:41.874 | info | Starting adapter finished. Lets go!!!!!!! |
| roborock.0 | 2024-05-27 13:10:55.449 | info | MQTT initialized |
| roborock.0 | 2024-05-27 13:10:54.983 | info | Starting adapter. This might take a few minutes depending on your setup. Please wait. |
| roborock.0 | 2024-05-27 13:10:54.976 | info | starting. Version 0.6.4 (non-npm: copystring/ioBroker.roborock#dev) in /opt/iobroker/node_modules/iobroker.roborock, node: v18.20.3, js-controller: 5.0.19 |
| roborock.0 | 2024-05-27 13:10:54.898 | info | Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system |
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.