Skip to content

is_on not correct #687

Closed
Closed
@thoron

Description

@thoron

(Relevant for Roborock S6)
The https://python-miio.readthedocs.io/en/latest/miio.html#miio.vacuumcontainers.VacuumStatus.is_on will not yield correct value as the underlying in_cleaning is not a boolean.

mirobo --ip x.x.x.x --token yyy raw-command get_status                                                                          [12:43:00]
Sending cmd get_status with params []
[{'msg_ver': 2, 'msg_seq': 28, 'state': 18, 'battery': 95, 'clean_time': 606, 'clean_area': 8115000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 3, 'in_returning': 0, 'in_fresh_state': 0, 'lab_status': 1, 'water_box_status': 0, 'fan_power': 102, 'dnd_enabled': 0, 'map_status': 3, 'lock_status': 0}]

Where the interesting bit is 'in_cleaning': 3

return self.data["in_cleaning"] == 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions