1.4.0 • Published 2 years ago

homebridge-cleanmate v1.4.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

verified-by-homebridge GitHub last commit npm npm codecov

Homebridge Cleanmate

Cleanmate is a popular robot vacuum cleaner in Sweden. This plugin allows you to control it from HomeKit.

Right now there is no official documentation or API over how to control the robot. To develop this plugin the tcp request to and from the robot has been analyzed.

Note: This plugin has only been tested for the Cleanmate S995. Please make a Pull Request if you get it working with another model.

Features

  • Fan as On-/Off-switch
    • Fanspeed controls the cleaning mode (Silent, Standard, Intense)
    • Rotate direction controls the mop mode (configurable in config)
  • Pause Switch that will pause the robot when enabled and continues when disabled (optional, and can be inverted in config)
  • Motion sensor that will fire if the robot has a problem (optional, and can be inverted in config)
  • Occupancy sensor that will fire when the robot is docked (optional and can be inverted in config)
  • Volume controll using a Lightbulb (optional)
  • Per room Switch (optional, read Room cleaning to understand how it works)

Requirements

Instructions

Installation

This plugin can easily be installed from Homebridge UI or sudo npm install -g homebridge-cleanmate

Config

This is an accessory plugin, the configuration should be set under accessories in the config file. Multiple accessories can be added, make sure they have unique names.

Example config

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "012-34-567"
  },
  "accessories": [
    {
      "accessory": "Cleanmate",
      "name": "Cleanmate robot",
      "ipAddress": "192.168.86.22",
      "authCode": "0123456789",
    }
  ]
}

Parameters

ParameterDescriptionDefaulttype
accessoryalways "Cleanmate"-String
nameThe name of the robot-String
ipAddressThe ip address of the robot-String
authCodeThe authentication code for the robot-String
pollInterval?How often the status should be updated (in seconds)15Number
lowBatteryPercentage?When should the robot report low battery15Number
clockwiseMode?Which mop mode to use when clockwise is used20 (High)Number
counterClockwiseMode?Which mop mode to use when counter clockwise is used60 (Low)Number
pauseSwitch?.enableAdd a switch that will pause the robottrueBoolean
pauseSwitch?.nameThe name of the switchPauseString
pauseSwitch?.invertedInvert the switch, pause on disablefalseBoolean
motionSensor?.enableAdd a motion sensor that triggers when the robot has a problemfalseBoolean
motionSensor?.nameThe name of the motion sensorProblemString
motionSensor?.invertedInvert the motion sensor, activate when the robot doesn't have a problemfalseBoolean
occupancySensor?.enable?Add a occupancy sensor that will represent if the robot is at dockfalseBoolean
occupancySensor?.name?The name of the occupancy sensorDockedString
occupancySensor?.inverted?Invert occupancy sensor, activate when robot is at dockfalseNumber
volume?.enable?Add a lightbulb that allows you to control the volume of the robotfalseBoolean
volume?.name?The name of the lightbulbDockedString
findSwitch?.enable?Add a switch that will help you find the robotfalseBoolean
findSwitch?.name?The name of the switchDockedString
roomTimeout?The time to wait for a new room selection30Number
rooms?[].idThe id of the roomNumber
rooms?[].nameThe name of the roomString

Mop Modes

ModeKey
High20
Medium40
Low60

Room cleaning

To start the Room Clean Mode, you can enable/disable the room switches. The cleaning will start after x seconds specified as roomTimeout in config (default 30s). This is the time you have to enable/disable another room. The timeout will restart every time you make a change.

How to get the authentication code

Currenly there is no easy way to get the authentication code (please let me know if there is).

The way to obtain a authentication code is to listen to a tcp packet when your phone sends a command to the robot. Wireshark is a great program to use for listening to network traffic.

1.4.0

2 years ago

1.3.0

2 years ago

1.2.72

2 years ago

1.2.71

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.2-beta.0

2 years ago

1.0.1-beta.0

2 years ago

1.0.0

2 years ago