-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding L60 SES support (UNTESTED) (#67)
* Adding L60 SES support * Update custom_components/robovac/vacuums/T2267.py Co-authored-by: Luke Morrigan <[email protected]> --------- Co-authored-by: Luke Morrigan <[email protected]>
- Loading branch information
1 parent
7381afc
commit 67b2e50
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from homeassistant.components.vacuum import VacuumEntityFeature | ||
from .base import RoboVacEntityFeature, RobovacCommand | ||
|
||
|
||
class T2267: | ||
homeassistant_features = ( | ||
VacuumEntityFeature.BATTERY | ||
| VacuumEntityFeature.CLEAN_SPOT | ||
| VacuumEntityFeature.FAN_SPEED | ||
| VacuumEntityFeature.LOCATE | ||
| VacuumEntityFeature.PAUSE | ||
| VacuumEntityFeature.RETURN_HOME | ||
| VacuumEntityFeature.SEND_COMMAND | ||
| VacuumEntityFeature.START | ||
| VacuumEntityFeature.STATE | ||
| VacuumEntityFeature.STOP | ||
| VacuumEntityFeature.MAP | ||
) | ||
robovac_features = ( | ||
RoboVacEntityFeature.CLEANING_TIME | ||
| RoboVacEntityFeature.CLEANING_AREA | ||
| RoboVacEntityFeature.DO_NOT_DISTURB | ||
| RoboVacEntityFeature.AUTO_RETURN | ||
| RoboVacEntityFeature.ROOM | ||
| RoboVacEntityFeature.ZONE | ||
| RoboVacEntityFeature.BOOST_IQ | ||
| RoboVacEntityFeature.MAP | ||
| RoboVacEntityFeature.CONSUMABLES | ||
) | ||
commands = { | ||
RobovacCommand.START_PAUSE: 156, | ||
RobovacCommand.DIRECTION: { | ||
"code": 155, | ||
"values": ["Brake", "Forward", "Back", "Left", "Right"], | ||
}, | ||
RobovacCommand.MODE: { | ||
"code": 152, | ||
# "values": ["auto", "SmallRoom", "Spot", "Edge", "Nosweep"], | ||
}, | ||
RobovacCommand.STATUS: 153, | ||
RobovacCommand.RETURN_HOME: 173, | ||
RobovacCommand.FAN_SPEED: { | ||
"code": 158, | ||
"values": ["Quiet", "Standard", "Turbo", "Max"], | ||
}, | ||
RobovacCommand.LOCATE: 160, | ||
RobovacCommand.BATTERY: 163, | ||
RobovacCommand.ERROR: 177, | ||
RobovacCommand.DO_NOT_DISTURB: 157, | ||
RobovacCommand.BOOST_IQ: 159, | ||
RobovacCommand.CONSUMABLES: 168, | ||
# These commands need codes adding | ||
# RobovacCommand.CLEANING_AREA: 0, | ||
# RobovacCommand.CLEANING_TIME: 0, | ||
# RobovacCommand.AUTO_RETURN: 0, | ||
} |
This file contains 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
67b2e50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this does not work with my L60. I don't have the "SES" model, but I believe the commands are the same. Happy to help test any updates.
67b2e50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just bought the L60 SES and installed this version, and it's not working for me. All I see is Battery unavailable. Happy to test any updates and I've got the S1 Pro coming tomorrow.
67b2e50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, as above comments. I have an L60 SES Hybrid - all I see in HA is the Battery entity, nothing else. Would be happy to test.
67b2e50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirming here as well, the only thing I get in HA is a battery