Open Grizzelbee opened 9 months ago
Please post the complete error log
2023-12-01 13:54:21.181 - info: vesync.0 (380231) starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.vesync, node: v18.13.0, js-controller: 5.0.16
2023-12-01 13:54:21.205 - info: vesync.0 (380231) Login to VeSync
2023-12-01 13:54:21.971 - info: vesync.0 (380231) Found 1 devices
2023-12-01 14:44:22.939 - error: vesync.0 (380231) {"traceId":"1701438262580","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:46:22.915 - error: vesync.0 (380231) {"traceId":"1701438382580","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:48:22.918 - error: vesync.0 (380231) {"traceId":"1701438502580","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:50:22.977 - error: vesync.0 (380231) {"traceId":"1701438622581","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:52:22.944 - error: vesync.0 (380231) {"traceId":"1701438742582","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:54:22.927 - error: vesync.0 (380231) {"traceId":"1701438862583","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:56:22.935 - error: vesync.0 (380231) {"traceId":"1701438982583","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
2023-12-01 14:58:22.941 - error: vesync.0 (380231) {"traceId":"1701439102584","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
I started the adapter with the device plugged in and unpluged it shortly before the error starts occuring. From that point on it occurs every 2 minutes (=poll intervall) until I plug it back in again.
please try GitHub version
Github version doesn't throw the error anymore but logs a proper info instead - that's pretty good.
But...
The ConnectionState of the device still stays "online" (but should be offline):
And should go back to "online" as soon as the device reconnects.
EDIT:
Why does the offline message apprear that often?
Describe the bug
The adapter throws the error:
2023-12-01 12:26:03.973 | error | {"traceId":"1701429963616","code":-11300030,"msg":"device offline","module":null,"stacktrace":null,"result":null}
at every poll when the device is unpluged.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Set a device reachable indicator to false and turn the adapters traffic light to yellow instead of continously throwing this error - which is none.
Versions: