Deebot-4-Home-Assistant icon indicating copy to clipboard operation
Deebot-4-Home-Assistant copied to clipboard

Add new entities for clean count, true detect, and clean preference

Open nickw444 opened this issue 2 years ago • 7 comments

As discussed in #254. Closes #254

Depends on changes in https://github.com/DeebotUniverse/client.py/pull/163 to be merged & released.

Adds 3 new entities:

  • TrueDetect switch: Enable/Disable "True Detect Obstacle Avoidance" technology
  • Clean Count: Set the number of times to clean the area. From testing any integer works - it's possible to clean areas more than twice!
  • Clean Preference switch: Enable/Disable "Auto cleaning" mode - I named the switch after the API name, but happy to change this to "Cleaning Preference" to align more closely with the terminology used in the app.
image

nickw444 avatar Oct 07 '22 10:10 nickw444

What really happens when yo switch Clean Preference? I cannot find this option on my bot

edenhaus avatar Oct 08 '22 06:10 edenhaus

What really happens when yo switch Clean Preference?

It turns on automatic cleaning preference, which essentially is clean count/vacuum power/water flow levels specified on a per-room basis in the app, allowing for more refined cleaning, rather than a one sized fits every room approach.

IMG_9468 IMG_9469

nickw444 avatar Oct 09 '22 21:10 nickw444

I would love that my model would support this too... Do you know, if there is a possibility to find out, which command are supported by which model?

edenhaus avatar Oct 09 '22 21:10 edenhaus

Wow I am surprised it is not a feature on all robots! I am not sure there is a way in the API to determine whether it supports it or not, but I would guess that maybe the call to getCleanPreference might fail on unsupported robots? It's hard for me to know since I only have the Ozmo T8.

nickw444 avatar Oct 11 '22 21:10 nickw444

Will release the client library this weekend, sorry for the delay 😊

edenhaus avatar Oct 14 '22 16:10 edenhaus

Sorry I have forgotten to notify you. The new library version is already included in the dev branch. Can you merge it in your branch?

Can you tell me please the class of your model? So I will activate these sensor only for your model until we have setup proper knowledgebase in the library

edenhaus avatar Oct 22 '22 20:10 edenhaus

Just merged in dev into this PR.

Can you tell me please the class of your model?

Yep it's a Deebot Osmo T8

nickw444 avatar Oct 26 '22 10:10 nickw444

Started primarily using this integration over the weekend! Works great. I think I'll likely archive my own project(s) - deebot-t8 and deebot-t8-hass and link to this project as it has much better support for other robots.

nickw444 avatar Jan 09 '23 05:01 nickw444

👍

edenhaus avatar Jan 09 '23 07:01 edenhaus