Skip to content

Roborock Binding ​

This binding is used to control Roborock robot vacuum cleaner products implementing the Roborock protocol.

Robots that use the v1.0 protocol are fully supported. The Q7/Q10 series are partially supported - some channels will be fixed in a future update. Local control on the Q7/Q10 is not (yet) supported.

Supported Things ​

The following things types are available:

ThingTypeDescription
accountAccount bridge for Roborock Robot Vacuum products
vacuumFor Roborock Robot Vacuum products

Discovery ​

After (manually) adding a Roborock Account bridge, registered vacuums will be auto discovered.

account Bridge Configuration ​

Account configuration is necessary. The easiest way to do this is from the UI. Just add a new thing, select the Roborock binding, then Roborock Account Binding Thing, and enter the email for your Roborock account. If the email is valid, you will be sent an email with a verification code. Once received, update the twofa field and hit save.

Thing ParameterDefault ValueRequiredAdvancedDescription
emailN/AYesNoEmail address for your Roborock account
twofaN/ANoNo2FA code which will be sent to your email once you add the thing

vacuum Thing Configuration ​

Thing ParameterDefault ValueRequiredAdvancedDescription
duidN/AYesNoduid (Device UID) of the robot from the Roborock api
communicationcloudNoNoCommand transport mode: cloud (default) or direct
localHostN/ANoYesOptional local IP/hostname override, used only in direct mode
localPort58867NoYesLocal port used in direct mode communication
cloudMapRefreshonNoYesCloud-only map refresh policy in direct mode: on or off
cloudMetadataRefreshonNoYesCloud-only metadata refresh policy in direct mode: on or off
refresh5NoYesLegacy compatibility refresh interval in minutes (existing Thing configs continue to use this)
fastRefreshInterval15NoYesDirect-mode status refresh interval in seconds while status#vacuum is ON
mapRefreshCloudCleaningInterval30NoYesMap refresh interval in seconds while cleaning when communication=cloud (minimum 30)
mapRefreshDirectCleaningInterval15NoYesMap refresh interval in seconds while cleaning when communication=direct (minimum 15)
cloudRefreshIntervalrefresh intervalNoYesCloud-only refresh interval in seconds for map/metadata tasks in direct mode (falls back to refresh, enforced minimum 60s)

Communication Modes ​

  • cloud (default): uses Roborock cloud transport for command routing and data retrieval.
  • direct: uses local direct transport for supported vacuum communication. localHost can be set to override the detected local endpoint; localPort defaults to 58867.

Map retrieval/refresh remains cloud-only at this stage, regardless of selected communication mode.

During cleaning, map refresh uses a mode-specific interval:

  • communication=cloud: mapRefreshCloudCleaningInterval (default 30s, minimum 30s)
  • communication=direct: mapRefreshDirectCleaningInterval (default 15s, minimum 15s)
  • If communication=direct and cloudMapRefresh=off, channel cleaning#map is explicitly set to UNDEF and map refresh is skipped.
  • If communication=direct and cloudMetadataRefresh=off, cloud metadata refresh tasks are skipped and the room and routine selection options of actions#segment and actions#routine are cleared.

When communication=direct is selected and a capability is cloud-only (for example map retrieval/refresh), it is still routed through cloud transport. If cloud access is not available, those cloud-only capabilities will not refresh/update, while direct-mode supported operations continue to use local direct transport.

Channels ​

TypeChannelDescription
Stringnetwork#ssidNetwork SSID
Stringnetwork#bssidNetwork BSSID
Numbernetwork#rssiNetwork RSSI
Stringactions#controlControl vacuum (dock, vacuum, spot, pause)
Stringactions#commandSend command via cloud
Stringactions#rpcSend command via cloud
Switchactions#powerPower On/Off
Stringactions#routineStart a routine, selected by name
Stringactions#segmentClean a room, selected by name
Switchstatus#segment-statusSegment Status
Number:Dimensionlessstatus#batteryBattery Status
Number:Areastatus#clean-areaTotal Cleaning Area
Number:Timestatus#clean-timeTotal Cleaning Time
Stringstatus#errorError reported by vacuum
Numberstatus#fan-powerFan Power
Switchstatus#dnd-enabledDo not Disturb Status
Numberstatus#stateVacuum Status
Switchstatus#map-statusMap Box Status
Switchstatus#led-statusLed Box Status
Stringstatus#current-roomCurrent room name, resolved from the live map segment at the robot's position; while the robot is docked, the room of the charging dock
Stringinfo#carpet-modeCarpet Mode details
Stringinfo#multi-maps-listMaps Listing details
Number:Timeconsumables#main-brush-timeMain Brush Time till Replacement
Number:Timeconsumables#side-brush-timeSide Brush Time till Replacement
Number:Timeconsumables#sensor-dirt-timeSensor till Cleaning
Number:Timeconsumables#filter-timeFilter Time till Replacement
Number:Areahistory#total-clean-areaTotal Cleaned Area
Stringhistory#total-clean-timeTotal Clean Time
Numberhistory#total-clean-countTotal # Cleanings
Stringcleaning#last-clean-start-timeLast Cleaning Start time
Stringcleaning#last-clean-end-timeLast Cleaning End time
Number:Areacleaning#last-clean-areaLast Cleaned Area
Number:Timecleaning#last-clean-durationLast Clean Time
Numbercleaning#last-clean-errorLast Clean Error
Switchcleaning#last-clean-finishLast Cleaning Completed
Imagecleaning#mapRendered cleaning map image (PNG)

Additionally depending on the capabilities of your robot vacuum other channels may be enabled at runtime

TypeChannelDescription
Switchstatus#water-box-statusWater Box Status
Switchstatus#lock-statusLock Status
Numberstatus#water-box-modeWater Box Mode
Numberstatus#mop-modeMop Mode
Switchstatus#water-box-carriage-statusWater Box Carriage Status
Switchstatus#mop-forbidden-enableMop Forbidden
Switchstatus#is-locatingRobot is locating
Switchactions#collect-dustStart collecting dust
Switchactions#clean-mop-startStart mop wash
Switchactions#clean-mop-stopStop mop wash
Numberstatus#mop-drying-timeMop drying Time
Switchstatus#is-mop-dryingMop cleaning active
Numberstatus#dock-state-idDock status id

There are several advanced channels, which may be useful in rules (e.g. for individual room cleaning etc) In case your vacuum does not support one of these commands, it will show "unsupported_method" for string channels or no value for numeric channels.

Full Example ​

demo.things Example ​

dsl
Bridge roborock:account:account [ email="xxxx", twofa="xxxx" ] {
    Thing vacuum QrevoS [ refresh=5, cloudRefreshInterval=300 ]
}

example.items Example ​

dsl
Group                gVac            "Roborock Robot Vacuum"         <fan>
Group                gVacStat        "Status Details"                <status>        (gVac)
Group                gVacCons        "Consumables Usage"             <line-increase> (gVac)
Group                gVacDND         "Do Not Disturb Settings"       <moon>          (gVac)
Group                gVacHist        "Cleaning History"              <calendar>      (gVac)
Group                gVacLast        "Last Cleaning Details"         <calendar>      (gVac)

String               actionControl   "Vacuum Control"                                                {channel="roborock:vacuum:034F0E45:actions#control" }
String               actionCommand   "Vacuum Command"                                                {channel="roborock:vacuum:034F0E45:actions#commands" }
Switch               actionPower     "Vacuum On/Off"                                                 {channel="roborock:vacuum:034F0E45:actions#power" }

Number:Dimensionless statusBat       "Battery Level [%1.0f%%]"       <battery>       (gVac,gVacStat) {channel="roborock:vacuum:034F0E45:status#battery" }
Number:Area          statusArea      "Cleaned Area [%1.0fm²]"        <zoom>          (gVac,gVacStat) {channel="roborock:vacuum:034F0E45:status#clean-area" }
Number:Time          statusTime      "Cleaning Time [%1.0f']"        <clock>         (gVac,gVacStat) {channel="roborock:vacuum:034F0E45:status#clean-time" }
String               statusError     "Error [%s]"                    <error>         (gVac,gVacStat) {channel="roborock:vacuum:034F0E45:status#error-code" }
Number:Dimensionless statusFanPow    "Fan Power [%1.0f%%]"           <signal>        (gVacStat)      {channel="roborock:vacuum:034F0E45:status#fan-power" }
Switch               statusClean     "In Cleaning Status [%1.0f]"    <switch>        (gVacStat)      {channel="roborock:vacuum:034F0E45:status#in-cleaning" }
Switch               statusDND       "DND Activated"                                 (gVacStat)      {channel="roborock:vacuum:034F0E45:status#dnd-enabled" }
Number               statusStatus    "Status [%1.0f]"                <status>        (gVacStat)      {channel="roborock:vacuum:034F0E45:status#state"}
Switch               isLocating      "Locating"                                      (gVacStat)      {channel="roborock:vacuum:034F0E45:status#is-locating" }

Number:Time          consumableMain   "Main Brush [%1.0f]"                           (gVacCons)      {channel="roborock:vacuum:034F0E45:consumables#main-brush-time"}
Number:Time          consumableSide   "Side Brush [%1.0f]"                           (gVacCons)      {channel="roborock:vacuum:034F0E45:consumables#side-brush-time"}
Number:Time          consumableFilter "Filter Time[%1.0f]"                           (gVacCons)      {channel="roborock:vacuum:034F0E45:consumables#filter-time" }
Number:Time          consumableSensor "Sensor [%1.0f]"                               (gVacCons)      {channel="roborock:vacuum:034F0E45:consumables#sensor-dirt-time"}

Switch               dndFunction      "DND Function"                 <moon>          (gVacDND)       {channel="roborock:vacuum:034F0E45:dnd#dnd-function"}
String               dndStart         "DND Start Time [%s]"          <clock>         (gVacDND)       {channel="roborock:vacuum:034F0E45:dnd#dnd-start"}
String               dndEnd           "DND End Time [%s]"            <clock-on>      (gVacDND)       {channel="roborock:vacuum:034F0E45:dnd#dnd-end"}

Number:Area          historyArea      "Total Cleaned Area [%1.0fm²]" <zoom>          (gVacHist)      {channel="roborock:vacuum:034F0E45:history#total-clean-area"}
String               historyTime      "Total Clean Time [%s]"        <clock>         (gVacHist)      {channel="roborock:vacuum:034F0E45:history#total-clean-time"}
Number               historyCount     "Total # Cleanings [%1.0f]"    <office>        (gVacHist)      {channel="roborock:vacuum:034F0E45:history#total-clean-count"}

String               lastStart        "Last Cleaning Start time [%s]" <clock>        (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-start-time"}
String               lastEnd          "Last Cleaning End time [%s]"   <clock>        (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-end-time"}
Number:Area          lastArea         "Last Cleaned Area [%1.0fm²]"   <zoom>         (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-area"}
Number:Time          lastTime         "Last Clean Time [%1.0f']"      <clock>        (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-duration"}
Number               lastError        "Error [%s]"                    <error>        (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-error" }
Switch               lastCompleted    "Last Cleaning Completed"                      (gVacLast)      {channel="roborock:vacuum:034F0E45:cleaning#last-clean-finish" }
Image                cleaningMap      "Cleaning Map"                                 (gVacStat)      {channel="roborock:vacuum:034F0E45:cleaning#map"}