marcelrv / XiaomiRobotVacuumProtocol

Attempt to describe the Xiaomi Robot Vacuum Protocol
GNU General Public License v3.0
350 stars 76 forks source link

S7 - water level Low #52

Open bellerG opened 3 years ago

bellerG commented 3 years ago

Hi,

I have the S7 (roborock.vacuum.a15), this also shows a message in the app when the water is running low (water level low).

Is it possible to query this?

marcelrv commented 2 years ago

I expect this to be part of the status message. Most likely the water_shortage_status field. Can you test / confirm this

{
    "id": 3947,
    "result": [
        {
            "msg_ver": 2,
            "msg_seq": 1880,
            "state": 8,
            "battery": 100,
            "clean_time": 10,
            "clean_area": 0,
            "error_code": 0,
            "map_present": 1,
            "in_cleaning": 0,
            "in_returning": 0,
            "in_fresh_state": 1,
            "lab_status": 1,
            "water_box_status": 1,
            "fan_power": 102,
            "dnd_enabled": 0,
            "map_status": 3,
            "is_locating": 0,
            "lock_status": 0,
            "water_box_mode": 203,
            "water_box_carriage_status": 1,
            "mop_forbidden_enable": 1,
            "adbumper_status": [
                0,
                0,
                0
            ],
            "water_shortage_status": 0,
            "dock_type": 0,
            "dust_collection_status": 0,
            "auto_dust_collection": 1,
            "mop_mode": -1239414972,
            "debug_mode": 0
        }
    ],
    "exe_time": 101
}
jerome83136 commented 1 year ago

Hello, I know this topic is a little bit old; but I'm searching the same information: how to retrieve the message corresponding to the "low water tank" alert I get on Xiaomi Home app ?

I looked at the "msg.status.water_shortage_status" message. Its value was "0" when my base station's water tank was empty (alert received on the Xiaomi app) I then flushed the dirty water tank and fullfilled the clean water tank and put them back on the station (the Xiaomi app alert disapeared) But the "msg.status.water_shortage_status" value is still "0" I tried restarting the NodeRed flow; restarting NodeRed; asking the robot to clean up its mop. Nothing changed.

Can someone help on this ?

I have a Xiaomi Roborock S7 Pro Ultra All other features of this NodeRed plugin are working fine. Best regards

Hinti73 commented 1 year ago

I have an S7,

the status is the same for me: little / no water = [water_shortage_status] => 1 water OK = [water_shortage_status] => 0