feat(commands): Add SetAreaParameter command for mower zone control - #1627
Open
monsivar wants to merge 16 commits into
Open
feat(commands): Add SetAreaParameter command for mower zone control#1627monsivar wants to merge 16 commits into
monsivar wants to merge 16 commits into
Conversation
Added `WEED_ROPE` ("weedRope") and `TRIMMER_BRUSH` ("trimmerBrush")
feat(events): add weedRope and trimmerBrush to LifeSpan enum
feat(commands): add SetAreaParameter command for mowers
feat(commands): register SetAreaParameter command
edenhaus
requested changes
Jun 3, 2026
monsivar
marked this pull request as draft
July 3, 2026 14:48
Removed 'SetAreaParameter' from the exported symbols.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1627 +/- ##
=======================================
Coverage 95.08% 95.08%
=======================================
Files 161 162 +1
Lines 6301 6308 +7
Branches 354 354
=======================================
+ Hits 5991 5998 +7
Misses 248 248
Partials 62 62 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add tests for SetAreaParameter command with default and custom values.
monsivar
marked this pull request as ready for review
July 3, 2026 16:09
Contributor
Author
|
I have addressed the requested changes: removed the unrelated lifespan and hardware changes; All checks are now passing. The PR should be ready for another review. Thank you for the guidance. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the
SetAreaParameterJSON command for controlling zone-specific mower parameters.This command was identified by capturing the MQTT communication between the Ecovacs app and my GOAT O1200 LiDAR Pro.
Related to #1610.
Command
The mower accepts the following command:
The outgoing payload uses a flat structure under
body.data:{ "areaID": "2", "mowHeightLevel": 10, "cutMode": 7, "obstacleHeight": 1, "angle": 136 }The
areaParameterslist is used by the device's subsequentonAreaParameterstatus report, but it is not part of the outgoingsetAreaParametercommand.Changes
SetAreaParameterunderdeebot_client.commands.json.deebot_client.commands.json.Parameters
area_id: ID of the mower area.angle: mowing direction in degrees.mow_height_level: mower height level.cut_mode: cutting mode, defaulting to7.obstacle_height: obstacle-height setting, defaulting to1.Verification
The payload structure was captured from the Ecovacs app and successfully used with my GOAT O1200 LiDAR Pro.
This PR only adds the command implementation and tests. It does not yet add a higher-level capability or expose the command through Home Assistant.