Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dreame D10Plus #1714

Closed
53l3cu5 opened this issue Feb 5, 2023 · 5 comments
Closed

Dreame D10Plus #1714

53l3cu5 opened this issue Feb 5, 2023 · 5 comments

Comments

@53l3cu5
Copy link

53l3cu5 commented Feb 5, 2023

Device information:

Use miiocli device --ip <ip address> --token <token> info.

  • Model: dreame.vacuum.r2205
  • Hardware version: Linux
  • Firmware version: 4.1.8_1078

Additional context

  • In full charge and no activity:
    miiocli dreamevacuum --ip --token status

    WARNING:miio.device:Found an unsupported model 'dreame.vacuum.r2205' for class 'DreameVacuum'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
    WARNING:miio.miot_device:Unable to find mapping for dreame.vacuum.r2205, falling back to dreame.vacuum.mc1808
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown ChargingStats (0)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown model for cleaning mode (dreame.vacuum.r2205)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown FaultStatus (100)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown OperatingMode (None)
    Battery level: 13
    Brush life level: None
    Brush left time: None
    Charging state: None
    Cleaning mode: None
    Device fault: None
    Device status: Sweeping
    Filter left level: None
    Filter life level: None
    Life brush main: None
    Life brush side: None
    Life sieve: None
    Map view: None
    Operating mode: None
    Side cleaning brush left time: None
    Side cleaning brush life level: None
    Time zone: None
    Timer enabled: None
    Timer start time: None
    Timer stop time: None
    Voice package: None
    Volume: None
    Water flow: None
    Water box attached: None
    Cleaning time: None
    Cleaning area: None
    First clean time: None
    Total clean time: None
    Total clean times: None
    Total clean area: None

  • At 92% of charge and in cleaning mode:
    miiocli dreamevacuum --ip --token status

    WARNING:miio.device:Found an unsupported model 'dreame.vacuum.r2205' for class 'DreameVacuum'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
    WARNING:miio.miot_device:Unable to find mapping for dreame.vacuum.r2205, falling back to dreame.vacuum.mc1808
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown ChargingStats (0)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown model for cleaning mode (dreame.vacuum.r2205)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown FaultStatus (92)
    ERROR:miio.integrations.vacuum.dreame.dreamevacuum_miot:Unknown OperatingMode (None)
    Battery level: 1
    Brush life level: None
    Brush left time: None
    Charging state: None
    Cleaning mode: None
    Device fault: None
    Device status: Idle
    Filter left level: None
    Filter life level: None
    Life brush main: None
    Life brush side: None
    Life sieve: None
    Map view: None
    Operating mode: None
    Side cleaning brush left time: None
    Side cleaning brush life level: None
    Time zone: None
    Timer enabled: None
    Timer start time: None
    Timer stop time: None
    Voice package: None
    Volume: None
    Water flow: None
    Water box attached: None
    Cleaning time: None
    Cleaning area: None
    First clean time: None
    Total clean time: None
    Total clean times: None
    Total clean area: None

@rytilahti
Copy link
Owner

Try miiocli genericmiot on the current git master: https://github.com/rytilahti/python-miio/#controlling-modern-miot-devices

@53l3cu5
Copy link
Author

53l3cu5 commented Feb 16, 2023

I ended up not continuing to use
python-miio because my raspi 4B was too slow after installing crypto.
I couldn't go any further. I restored my system and I am looking for another less resource-intensive solution.
Thanks for your help

@53l3cu5 53l3cu5 closed this as completed Feb 16, 2023
@TxMat
Copy link
Contributor

TxMat commented Sep 18, 2023

Try miiocli genericmiot on the current git master: https://github.com/rytilahti/python-miio/#controlling-modern-miot-devices

❯ miiocli genericmiot --ip 192.168.1.73 --token 357064496f434e4963666c5330736c7a status
Running command status
ERROR:miio.click_common:Exception: Cache file /home/uranus/.cache/python-miio/dreame.vacuum.r2205.json not found or it is stale
Traceback (most recent call last):
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/click_common.py", line 54, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/click_common.py", line 305, in wrap
    result = kwargs["result"] = func(*args, **kwargs)
                                ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/click_common.py", line 270, in command_callback
    return miio_command.call(miio_device, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/click_common.py", line 218, in call
    return method(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/click_common.py", line 184, in _wrap
    self._fetch_info()
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/integrations/genericmiot/genericmiot.py", line 199, in _fetch_info
    self.initialize_model()
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/integrations/genericmiot/genericmiot.py", line 65, in initialize_model
    self._miot_model = miotcloud.get_device_model(self.model)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/miot_cloud.py", line 87, in get_device_model
    spec = self._file_from_cache(file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/uranus/.local/lib/python3.11/site-packages/miio/miot_cloud.py", line 128, in _file_from_cache
    raise FileNotFoundError("Cache file %s not found or it is stale" % file)
FileNotFoundError: Cache file /home/uranus/.cache/python-miio/dreame.vacuum.r2205.json not found or it is stale

unfortunately it seems that miiocli needs a configuration file for the device to be able to run

@rytilahti
Copy link
Owner

@TxMat I just merged #1819 which should fix the cache issue, feel free to git pull and retry. If it's still not working, please open a new issue.

@TxMat
Copy link
Contributor

TxMat commented Sep 18, 2023

working now !
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants