GithubHelp home page GithubHelp logo

hass-roborock's People

Contributors

89jd avatar thegabeman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hass-roborock's Issues

How to get segment numbers?

Hi,

i have just integrated my S5 Max into HA using this component, or to be more specific the PR from @redphx.

So far so good and its working right now.
But i'm curious how i can get the segments numbers to make room cleaning available in HA.
I've tried the numbers which are shown in the Roborock App (e.g. 1 and 2) but it looks like this is not correct.

So do you how we can find out the correct numbers?
Thanks

rr_tyua_xxxx empty but rr_rr_xxxx filled

I have the S5 Max and my Home Assistant docker running with NPM with a dedicated dockerfile but when using bluestacks to get my needed tokens from the Roborock app version 2.3.26 i ran into problems i can’t seem to solve

When gzipping the folder then the rr_tyua_xxxx contains an empty list but I found another file rr_rr_xxxxx that contains:the fields below

localKey 
duid
id, key, productId ( same key ) [ EDIT ]
roomId 

This is the available JSON String (changed some keys/information). One thing to notice is that tuyamigrated is false:

[{"activeTime":1609758228,"displayOrder":0,"duid":"6jtILnvV27chh9ane3SZab","extra":"{\"xxxx\": \"xxxx\"}","fv":"01.10.26","iconUrl":"","isShare":false,"localKey":"ZNNLKPc8DXTuse4E","localOnline":false,"name":"Roborock S5 Max","online":true,"productBean":{"attribute":0,"capability":0,"category":"s6","code":"s5e","id":"49qZXusGAhtBh4L3Sb4SOV","key":"49qZXusGAhtBh4L3Sb4SOV","model":"roborock.vacuum.s5e","name":"Roborock S5 Max","schema":[{"code":"rpc_request","id":"101","mode":"rw","name":"rpc_request","type":"RAW"},{"code":"rpc_response","id":"102","mode":"rw","name":"rpc_response","type":"RAW"}],"wifi":false},"productId":"49qZXusGAhtBh4L3Sb4SOV","pv":"1.0","share":false,"shareTime":0,"timeZoneId":"Europe/Amsterdam","tuyaMigrated":false,"tuyaUuid":"tsspjoc654kq5125c9255"}]

Entity does not show

Im a bit confused..
Did ok to extract the token and so on but after installation the roborock (s6 maxv) doesn't show up as an entity as described.
Whats wrong?
Screenshot_20210209-003312

Roborock not loaded

Since the new 2021.6 of HA, I had an issue that Roborock integration would not be loaded.
I solved it by simply adding one line to the manifest.json file:

"version": "1.0",

So my manifest.json would now be:
{ "domain": "roborock", "name": "Roborock", "config_flow": true, "documentation": "https://www.google.com", "requirements": ["pyroborock==1.0.10"], "version": "1.0", "codeowners": ["@89jd"] }

(Can't get the formatting correct)

Then reboot

Error creating entity

Hi,

i used an ssl inspection proxy to extract duid and localkey from roborock app.

setting up integration using this parameters:
Name = Roborock S7
duid = Device ID
localkey = API Token
ip = my.local.ip

No entity is shown up:

following error in homeassistant.log:

2021-03-29 23:12:23 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up roborock platform for vacuum
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 200, in _async_setup_platform
await asyncio.shield(task)
File "/home/homeassistant/.homeassistant/custom_components/roborock/vacuum.py", line 149, in async_setup_entry
vacuum = Roborock(ip=host, device_id=device_id, token=token, js_dir=js_dir)
File "/srv/homeassistant/lib/python3.8/site-packages/pyroborock/init.py", line 150, in init
super().init(ip, token, debug=debug)
File "/srv/homeassistant/lib/python3.8/site-packages/miio/vacuum.py", line 91, in init
super().init(ip, token, start_id, debug)
File "/srv/homeassistant/lib/python3.8/site-packages/miio/device.py", line 122, in init
self._protocol = MiIOProtocol(ip, token, start_id, debug, lazy_discover)
File "/srv/homeassistant/lib/python3.8/site-packages/miio/miioprotocol.py", line 42, in init
self.token = bytes.fromhex(token)
ValueError: non-hexadecimal number found in fromhex() arg at position 1

Unable to reinstall

Hi,
I've have had the integration working but after a re-IP of the roborock, it has lost connectivity, which I can understand since the IP is entered when adding the integration. But I now see no option to enter the new IP address.

I tried removing the HA integration, HACS integration and made sure the /custom_components/roborock folder was gone. I then reinstalled roborock through HACS, rebooted HA but I don't get the roborock anymore in the HA integrations.

Any tips to solve this or can I just hardcode the IP address somewhere in one of the JSON files?

iOSbackup

Trying to get the devId and localKey from an iOS backup. Neither of them is found but i see other id's.
token = 96295c30f97a48b685e315bbexxxxxxx-4c33d1673d5842d34b91462e1840b13757xxxxxx, guess this is same as local key?
How does the devId look like in an Android?

/Ola

Unable to install : conflicting dependencies

I get this message in the logs when trying to add the integration :

Unable to install package pyroborock==1.0.10: ERROR: Cannot install pyroborock because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

I'm running haos in a VM :

 Home Assistant 2022.7.6 Supervisor 2022.07.0 Operating System 8.4 Interface utilisateur : 20220707.1 - latest 

I added the repo using HACS as instructed.

Can't seem to find more detailed logs anywhere, sorry...

If you can help that would be great !

Homeassistant crashing when robot not available

When the roborock robot is not available, HASS keeps crashing every minute.

2021-03-15 20:10:37 | 2021-03-15 19:10:37 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
-- | --
  |   | 2021-03-15 20:10:37 | 2021-03-15 19:10:37 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:10:17 | 2021-03-15 19:10:17 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:09:57 | 2021-03-15 19:09:57 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:09:37 | ValueError: filedescriptor out of range in select()
  |   | 2021-03-15 20:09:37 | ready = select.select(sockets, [], [], seconds_left)[0]
  |   | 2021-03-15 20:09:37 | File "/usr/local/lib/python3.8/site-packages/netdisco/ssdp.py", line 255, in scan
  |   | 2021-03-15 20:09:37 | return itertools.chain.from_iterable([ssdp.scan() for _ in range(3)])
  |   | 2021-03-15 20:09:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 57, in <listcomp>
  |   | 2021-03-15 20:09:37 | return itertools.chain.from_iterable([ssdp.scan() for _ in range(3)])
  |   | 2021-03-15 20:09:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 57, in _run_ssdp_scans
  |   | 2021-03-15 20:09:37 | result = self.fn(*self.args, **self.kwargs)
  |   | 2021-03-15 20:09:37 | File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  |   | 2021-03-15 20:09:37 | entries = await self.hass.async_add_executor_job(_run_ssdp_scans)
  |   | 2021-03-15 20:09:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 72, in async_scan
  |   | 2021-03-15 20:09:37 | Traceback (most recent call last):
  |   | 2021-03-15 20:09:37 | 2021-03-15 19:09:37 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
  |   | 2021-03-15 20:09:37 | 2021-03-15 19:09:37 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:09:17 | 2021-03-15 19:09:17 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:08:57 | 2021-03-15 19:08:57 WARNING (MainThread) [custom_components.roborock.vacuum] Got exception while fetching the state: Timed out waiting for response
  |   | 2021-03-15 20:08:37 | ValueError: filedescriptor out of range in select()
  |   | 2021-03-15 20:08:37 | ready = select.select(sockets, [], [], seconds_left)[0]
  |   | 2021-03-15 20:08:37 | File "/usr/local/lib/python3.8/site-packages/netdisco/ssdp.py", line 255, in scan
  |   | 2021-03-15 20:08:37 | return itertools.chain.from_iterable([ssdp.scan() for _ in range(3)])
  |   | 2021-03-15 20:08:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 57, in <listcomp>
  |   | 2021-03-15 20:08:37 | return itertools.chain.from_iterable([ssdp.scan() for _ in range(3)])
  |   | 2021-03-15 20:08:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 57, in _run_ssdp_scans
  |   | 2021-03-15 20:08:37 | result = self.fn(*self.args, **self.kwargs)
  |   | 2021-03-15 20:08:37 | File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  |   | 2021-03-15 20:08:37 | entries = await self.hass.async_add_executor_job(_run_ssdp_scans)
  |   | 2021-03-15 20:08:37 | File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 72, in async_scan
  |   | 2021-03-15 20:08:37 | Traceback (most recent call last):

Node process not closed on home assistant restart

Is there a way to hook into when the hass server is restarting. I will raise an issue on the github too, but the issue is that, the old node process seems to hang around. I just need to be able to close the old session on restart, so any ideas, I am wiling to make the changes!

No "devId" under rr_cache

found a lot of parameters for my Roborock S6 MaxV under /rr_cache, "localKey" is between them, but there is no parameter called "devId".
Tried with different Roborock app versions:

  • 3.0.0
  • 2.4.18
  • 2.1.12

S5 Max API closed since last update

I cannot use the integration anymore since upgrading the firmware of the S5 Max to 02.14.64
Port 6668 is closed now, the only open port on the device is 58867, which i cannot use to connect to using the plugin.

Dont upgrade to this version! Anyone can confirm?

Cannot add this project as repository

Hi all,
am quite newbie, but I really like this project to add our Roborock, but somehow I am not successful following the guide.
I try to install on Raspi4 Hass.io, and I assume for adding the repository there is a file missing here: repository.json

Am I missing something or what can I do to add the integration manually?

token extraction with roborock app

Hi,
I want to add the roborock to homekit via homebridge. (at the moment I used the mi home app to extract the token, but I would like to switch to the roborock app) I know that this tool was developed for hassio, but is there a way to extract the token from tuya cloud which i could use in my homebridge roborock plugin?

Thank you!

BR

Error While Setting Up Roborock Integration

Hi all,

I followed the instructions to add the Roborock integration from HACS. I configured my device, but no entities show up and this is what I see in the HA logs:

Error while setting up roborock platform for vacuum Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/roborock/vacuum.py", line 146, in async_setup_entry tuya_init(js_dir) File "/usr/local/lib/python3.9/site-packages/tuyapipc/__init__.py", line 106, in init Popen(['npm', 'install', 'tuyapi-ipc'], \ File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/local/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'npm'

Can anyone help with this? I am running the latest version of HA on HASSOS on a Raspberry Pi.

Missing RoborockDockErrorCode code: 44

Logger: roborock.code_mappings
Source: runner.py:179
First occurred: 9:17:35 AM (28 occurrences)
Last logged: 9:31:05 AM

Missing RoborockDockErrorCode code: 44 - defaulting to 0

Screenshot_20230613_093951_Roborock

package not debuggable error

I get the "run-as: package not debuggable: com-roborock.smart" error when attempting to issue the following command:

adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/ | egrep rr_tuya_[0-9] | xargs -n1 adb exec-out run-as com.roborock.smart cat > roborock_details.gz
gzip -d roborock_details.gz

Actually, since the command error'd out I parsed the commands to figure out which one was causing the issue. It was the first command: "adb exec-out run-as com.roborock.smart find /data/data/com.roborock.smart/files/rr_cache/" that produced the error.

Anyone have any experience with overcoming this obstacle?

Thanks!

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.