homebridge-valetudo-xiaomi-vacuum is a Homebridge plugin which you can use to control your Xiaomi Roborock vacuum that has Valetudo installed.
Installation
npm -g install homebridge-valetudo-xiaomi-vacuum
Configuration
An entry in config.json is needed.
Example:
{
"accessory": "ValetudoXiaomiVacuum",
"name": "<Accessory name, e.g. Vacuum>",
"ip": "<Vacuum's ip address>"
}
Optionally, you can enable switches for controlling speed modes of the device by adding the power-control dictionary with default-speed and high-speed keys (both mandatory in that case), where the speed preset may be one of: quiet, balanced, turbo, and max.
For a mopping-capable vacuum (i.e. Gen 2 - S50/S55), a mop mode button can be also enabled using the mop-enabled option that is a true/false value. You can skip that option altogether - false will be the default.
-loop 1 sets up ffmpeg so it's constantly loading the generated png for each frame
pad filter is set up so it expands the generated png to an 16:9 aspect ratio image so it looks right in Home app, then it's scaled using scale down to 1920x1080
maxFPS set to a reasonable value; at 1 it was having hard time to start live streaming in Home app; at 5 it's instantaneous
请发表评论