Skip to content

Add FreeCleanV2 to enable room cleaning in HA for newer Bots - #1773

Open
MarkusMWolff wants to merge 17 commits into
DeebotUniverse:devfrom
MarkusMWolff:Add-FreeCleanV2
Open

MarkusMWolff wants to merge 17 commits into
DeebotUniverse:devfrom
MarkusMWolff:Add-FreeCleanV2

Conversation

@MarkusMWolff

Copy link
Copy Markdown
Contributor

Hi,

after some try and error I found how the freeClean action on newer bots works:

  • One rooms selected:
    payload=b'{"body":{"data":{"act":"start","content":{"type":"freeClean","value":"1,3"}}},
  • Two room selected:
    payload=b'{"body":{"data":{"act":"start","content":{"type":"freeClean","value":"1,2;1,3"}}},
  • One area selected:
    payload=b'{"body":{"data":{"act":"start","content":{"type":"freeClean","value":"3,null,2414,-226,633,-2038"}}}
  • Two areas and one room selected:
    payload=b'{"body":{"data":{"act":"start","content":{"type":"freeClean","value":"3,null,2434,-414,536,-2129;3,null,-983,-2017,-3097,-3050;1,5"}}}

I tried to incorporate these findings as well as possible.

BR, Markus

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.24%. Comparing base (5453eba) to head (b59907c).

Files with missing lines Patch % Lines
deebot_client/commands/json/clean.py 89.47% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1773      +/-   ##
==========================================
- Coverage   96.26%   96.24%   -0.03%     
==========================================
  Files         161      161              
  Lines        6399     6418      +19     
  Branches      368      372       +4     
==========================================
+ Hits         6160     6177      +17     
  Misses        172      172              
- Partials       67       69       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed

codspeed Bot commented Aug 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 226 untouched benchmarks


Comparing MarkusMWolff:Add-FreeCleanV2 (b59907c) with dev (5453eba)

Open in CodSpeed

@MarkusMWolff MarkusMWolff changed the title Add free clean v2 Add FreeCleanV2 to enable room cleaning in HA for newer Bots Aug 21, 2026
@MarkusMWolff

Copy link
Copy Markdown
Contributor Author

This should also fix #1749 if their hardware is set to the new command.

@MarkusMWolff

Copy link
Copy Markdown
Contributor Author

Hi @edenhaus I would appreciate feedback on this if you find the time to review it 👍

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant