-
-
Notifications
You must be signed in to change notification settings - Fork 150
Description
Checks
- I have searched the existing issues and no issue is describing my issue
- I have checked the FAQ
- I have checked the documentation
- I have installed the latest version
The problem
Hey everyone,
I've got a Deebot 500, and thanks to another user's work (which was based on a similar vacuum), I've managed to get it functioning. Now, I'm really looking to customize it significantly for my specific vacuum model.
I currently have two main questions:
- In Home Assistant (HA), is it possible to create custom commands? If so, how can I implement them by including
act,type, andspeeddata? - Could someone guide me or help me create a
vsc5ia.pyfile for my model? My biggest hurdle is that I don't fully understand GitHub or its workflow, and I'm also unsure about the guidelines for structuring the code as seen in existing examples. (I'm not a professional programmer; I have very basic coding knowledge).
Let me explain a bit more:
My vacuum has three cleaning modes: Auto, Spot, and Border. (These modes seem to be common for vacuums without mapping features.)
However, the 2pv572.py file (which is the basis for my current setup) only has the "Auto" mode configured.
I'd like to add the "Spot" and "Border" modes, but I'm not sure of the best way to approach this. Should I add a new class within clean.py (e.g., CleanSpot), create a separate CleanSpot.py file, or modify something within the existing Clean structure?
From what I've observed, CleanMode.SPOT and CleanMode.BORDER do not appear to exist. I'm also unsure if I can create them.
The clean command uses the following parameters:
type:auto,border,spotact:s(start),p(pause),r(resume),h(stop)speed:standard,strong
I also noticed that the "Border" and "Spot" modes cannot be paused; they can only be stopped.
Some time ago, I created a custom component for my own vacuum in HA, and the details above are what I was able to gather then. For "Spot," there's already a specific button available in the HA vacuum entity, but for "Border," it seems there isn't one. Could this be added as a separate button?
Just a note: the Deebot 500, 501, and 502 models are essentially the same (only color differs), so any insights for these models would be very helpful in completing the list.
Any guidance or assistance would be greatly appreciated!
On which deebot device (vacuum) you have the issue?
Deebot 500, 501 AND 502
Which version of the deebot-client are you using?
13.5.0
Country
US
Continent
US
Anything in the logs that might be useful for us?
Additional information
No response