Skip to content

Commit

Permalink
feat: Adding L60 SES support (UNTESTED) (#67)
Browse files Browse the repository at this point in the history
* 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
jbleyaert and CodeFoodPixels committed Mar 22, 2024
1 parent 7381afc commit 67b2e50
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions custom_components/robovac/vacuums/T2267.py
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,
}
2 changes: 2 additions & 0 deletions custom_components/robovac/vacuums/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from .T2192 import T2192
from .T2193 import T2193
from .T2194 import T2194
from .T2267 import T2267
from .T2261 import T2261
from .T2262 import T2262
from .T2320 import T2320
Expand Down Expand Up @@ -64,6 +65,7 @@
"T2192": T2192,
"T2193": T2193,
"T2194": T2194,
"T2267": T2267,
"T2261": T2261,
"T2262": T2262,
"T2320": T2320
Expand Down

4 comments on commit 67b2e50

@ultrathew
Copy link

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.

@atmezferix
Copy link

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.

@batesbw
Copy link

@batesbw batesbw commented on 67b2e50 Nov 3, 2024

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.

@andrewthetechie
Copy link

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

Please sign in to comment.