mikey0000 / Mammotion-HA

Home Assistant integration for Luba, Luba 2 and Yuka (Mammotion) lawn mowers
160 stars 23 forks source link

Resume ongoing task after docking #190

Open sebastian3107 opened 1 month ago

sebastian3107 commented 1 month ago

The problem

Is there a way to resume a task after the robot has been sent back to the dock? I tried using the general lawn mower action like lawn_mower.start_mowing which should also handle the resume function. This fails with this notification in the Mammotion app when the robot is docked: image This resuming does work if the robot has only been paused previously via lawn_mower.pause and is not docked.

I am looking for a way to press this resume button via the integration. image

Is there a plan to have an action like mammotion.resume_mow?

What Mammotion mower are you using?

Luba 1

What version of the Mammotion intergration are you using?

v0.1.78

What version of Home Assistant Core are you running?

core-2024.10.3

mikey0000 commented 1 month ago

Seems to be a similar issue as to what was raised in Discord, I'll check the resume logic and see whats going on.

mikey0000 commented 4 weeks ago

I fixed this today, will be out in next release to verify

mikey0000 commented 3 weeks ago

Please try 0.1.88

mikey0000 commented 3 weeks ago

Reasonably sure this is solved now, feel free to reopen if its not.

sebastian3107 commented 3 weeks ago

I just tried it with 0.1.91 and still get the "Mowing area selection is abnormal" when I try to resume a task while being docked.

mikey0000 commented 3 weeks ago

I just tried it with 0.1.91 and still get the "Mowing area selection is abnormal" when I try to resume a task while being docked.

This is resuming when the mower has gone to dock on its own right?

sebastian3107 commented 3 weeks ago

This is resuming when the mower has gone to dock on its own right?

That I haven't tested. What I meant is when I sent it to the dock either manually in the app or via the integration.

mikey0000 commented 3 weeks ago

OK and that's during a mow? As I thought I'd tested this, this is easier to test as well. I'll retry it tomorrow.

mikey0000 commented 3 weeks ago

OK I think I saw whats happening, I just had my mower randomly pause for no reason at all, and it was in mode_ready. and puased in app. Which will definitely throw HA off in terms of logic. Can you confirm the activity mode was mode_ready?

sebastian3107 commented 3 weeks ago

image It goes from MODE_RETURNING back to MODE_READY, despite still having a task active.

mikey0000 commented 3 weeks ago

Cool now I know what's happening I can resolve it. Really annoying though

mikey0000 commented 2 weeks ago

Can you try on the latest release please

sebastian3107 commented 2 weeks ago

I tried using v0.1.100, but I still see the same error in the Mammotion app.

Steps to reproduce:

  1. Start a task in the app (I haven't tried starting the task via the integration)
  2. Send Luba back to dock using the house icon in HA.
  3. Try to resume the task via the HA integration once the robot has docked (using the Play button in the GUI)
mikey0000 commented 1 week ago

I think I sorted it this time, can you try on the latest. At least I've been able to resume with the luba 2