Coder Social home page Coder Social logo

Comments (4)

c-o-m-m-a-n-d-e-r avatar c-o-m-m-a-n-d-e-r commented on May 25, 2024

Sorry this is Firmware controlled.
On the S5 the API gave back just an empty Array. Nothing we can do here.

You have to use try & error. Sorry

Start with room id 16 i think

from xiaomirobotvacuumprotocol.

tijunoi avatar tijunoi commented on May 25, 2024

I have an S5 and the command get_room_mapping is actually returning the room ids and names 🤔
[[22, "Kitchen"], [23, "Living Room"]] and so on. Maybe a newer firmware? I have 2008 (but I thought this was the first one to introduce room support to the S5)

from xiaomirobotvacuumprotocol.

rasssta avatar rasssta commented on May 25, 2024

@tijunoi : Do you have S5 or S5 Max? I have S5 with .2008 and just tried get_room_mapping and got:

INFO Device found, making call
INFO Got result:
[]

from xiaomirobotvacuumprotocol.

tijunoi avatar tijunoi commented on May 25, 2024

@rasssta S5 (S50) with .2008. get_room_mapping returns this:

[[22, 'Living Room'], [16, 'Guest Room'], [17, 'Bathroom'], [18, 'Bedroom'], [19, 'Entrance'], [20, 'Kitchen'], [21, 'Small bathroom']]

I do have rooted firmware with Valetudo RE, but it should not affect as the miio protocol talks to the original firmware of the robot, not the valetudo server, and that is not modified in any way.

get_status returns this btw:

[{
    'msg_ver': 3,
    'msg_seq': 2322,
    'state': 5,
    'battery': 94,
    'clean_time': 690,
    'clean_area': 12782500,
    'error_code': 0,
    'map_present': 1,
    'in_cleaning': 1,
    '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
}]

from xiaomirobotvacuumprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.