openhab-addons: [ecovacs] Robot not updated after some time

Expected Behavior

As long as the things for the API account and the robot (DEEBOT OZMO 900 Series) are online, sending a command should work.

Current Behavior

After some days the robot cannot be controlled via openHAB anymore and passive data isn’t updated anymore (e.g. current cleaning time). Both the account and the bot are still online in openHAB and in the official Ecovacs app.

In the log I can see the following lines:

10:31:08.835 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel total-stats#total-cleaned-area although the handler was already disposed.
10:31:08.837 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel total-stats#total-cleaning-time although the handler was already disposed.
10:31:08.839 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel total-stats#total-clean-runs although the handler was already disposed.
10:31:08.941 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel settings#continuous-cleaning although the handler was already disposed.
10:31:09.045 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel last-clean#last-clean-start although the handler was already disposed.
10:31:09.046 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel last-clean#last-clean-duration although the handler was already disposed.
10:31:09.050 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel last-clean#last-clean-area although the handler was already disposed.
10:31:10.492 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel settings#suction-power although the handler was already disposed.
10:31:10.578 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel settings#water-amount although the handler was already disposed.
10:31:10.683 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel consumables#side-brush-lifetime although the handler was already disposed.
10:31:10.780 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel consumables#dust-filter-lifetime although the handler was already disposed.
10:31:10.887 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler EcovacsVacuumHandler of thing ecovacs:vacuum:2b4b2f4b73:E0001206219602620054 tried updating channel consumables#main-brush-lifetime although the handler was already disposed.

Possible Solution

Steps to Reproduce (for Bugs)

  1. Wait for a few days

Context

Your Environment

  • Version used: (e.g., openHAB and add-on versions) Docker container openhab/openhab:4.0.4
  • Operating System and version (desktop or mobile, Windows 10, Raspbian Buster, …): Raspbian Bullseye

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (24 by maintainers)

Commits related to this issue

Most upvoted comments

The fix seems to work. The robot didn’t go offline for one week 👍

=> always be sure you have a backup.

  1. make sure you have openHAB 4.2.0 or later
  2. uninstall the current binding (items/channels etc will remain untouched)
  3. drop the jar file in your addon folder. File path depends on your OS
  4. place the binding in debug level logging
  5. observe and test, provide debug log if issues are found

Robot went offline with the state:

Status: OFFLINE
COMMUNICATION_ERROR 
Failed to parse response '{"ret":"fail","errno":3,"error":{"error":"check token error","es":{"action":"checkToken","error":{"errno":3000,"error":"TokenExpiredError","es":{"action":"jwt.verify","error":{"name":"TokenExpiredError","message":"jwt expired","expiredAt":"2024-08-20T17:00:34.000Z"}}},"debug":{"token":"<redacted>"}}}}' as data class PortalIotCommandXmlResponse

I’m on 4.2.1 and only have official addons now. I had a rule for several months that disabled the ecovacs thing and enabled it a few seconds later. That was a good workaround, but now I disabled it to see if the issue appears again.