RMCob / homebridge-wyze-robovac

This plug-in provides rudimentary control for a Wyze Robot Vacuum.
Apache License 2.0
8 stars 4 forks source link

No devices listed #4

Closed ma-armenta closed 1 year ago

ma-armenta commented 1 year ago

When the plugin runs the discoverDevices() method. No devices get listed. Running the same exact command inside homebridge terminal, successfully logs my vacuum name.

This is all I as the plugin logs to homebridge ` [8/22/2022, 11:10:53 AM] [WyzeRoboVac] Launched child bridge with PID 353787

[8/22/2022, 11:10:53 AM] Registering platform 'homebridge-wyze-robovac.WyzeRoboVac'

[8/22/2022, 11:10:53 AM] [WyzeRoboVac] Loaded homebridge-wyze-robovac v1.2.1 child bridge successfully

[8/22/2022, 11:10:54 AM] [WyzeRoboVac] discoverDevices(): username = 'xxxxxx', password = 'xxxx'

[8/22/2022, 11:10:54 AM] Homebridge v1.5.0 (HAP v0.10.2) (WyzeRoboVac) is running on port 45383. `

RMCob commented 1 year ago

Does your password have a space in it? Try changing it to an underscore.

ma-armenta commented 1 year ago

My password does not have any spaces.

When I use the python scripts directly, it does work without a problem.

RMCob commented 1 year ago

Is this still a problem for you?

ma-armenta commented 1 year ago

Yes, no devices get listed

latetedemelon commented 1 year ago

I can report the same issue. I initially couldn't start the process (special characters in my email and password). However single quotes seemed to solve this problem. Now however it connects without detecting my vaccum.

[9/29/2022, 4:39:37 AM] [WyzeRoboVac] Restarting child bridge... [9/29/2022, 4:39:37 AM] Got SIGTERM, shutting down child bridge process... [9/29/2022, 4:39:42 AM] [WyzeRoboVac] Child bridge process ended [9/29/2022, 4:39:42 AM] [WyzeRoboVac] Process Ended. Code: 143, Signal: null [9/29/2022, 4:39:49 AM] [WyzeRoboVac] Restarting Process... [9/29/2022, 4:39:50 AM] [WyzeRoboVac] Launched child bridge with PID 14684 [9/29/2022, 4:39:50 AM] Registering platform 'homebridge-wyze-robovac.WyzeRoboVac' [9/29/2022, 4:39:50 AM] [WyzeRoboVac] Loaded homebridge-wyze-robovac v1.2.1 child bridge successfully [9/29/2022, 4:39:50 AM] Loaded 0 cached accessories from cachedAccessories.0E3311CA9D8B. [9/29/2022, 4:39:50 AM] Homebridge v1.5.0 (HAP v0.10.4) (WyzeRoboVac) is running on port 57104.

moenzuel commented 1 year ago

I am also not seeing any devices listed even after following the other recommendations here

moenzuel commented 1 year ago

After some debugging the issue was a space in the vacuum name on the wyze side and the py_helper called from this plugin not quoting the vacuum name. Calling the helper manually but quoting the name seemed to produce output from the script. Then removing the space from the vacuum name on the wyze side allowed everything to work as expected.

ma-armenta commented 1 year ago

The only log I see now is below, that and nothing else.

[WyzeRoboVac] Initializing WyzeRoboVac platform...

ma-armenta commented 1 year ago

I did noticed that when running the helper script getVacuumDeviceList.py, before getting the name of my vacuum, this was printed... Unknown device type detected, follow by device details about my wyze headphones.

I wonder if this is causing the problem.

tseterry commented 1 year ago

having similar issues, running the python scripts from terminal lists device, but not showing under accessories.

pjrezai commented 1 year ago

Hey guys, I get this error, anyone know how to fix this? (Sorry i'm a newbie) : "Command failed: python3 /usr/lib/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py (here I have my username and password) python3: can't open file '/usr/lib/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py': [Errno 2] No such file or directory

RMCob commented 1 year ago

@pjrezai On what system are you installing the plugin? As I said in the README, this plugin is only supported on RPi Homebridge installations. See closed issues #3, #10, & #11. You need to search your system to discover where the py_helpers were installed and then update the config.json appropriately. Please report back here as to where you found the files to help others with the same problem. Thanks!

pjrezai commented 1 year ago

@pjrezai On what system are you installing the plugin? As I said in the README, this plugin is only supported on RPi Homebridge installations. See closed issues #3, #10, & #11. You need to search your system to discover where the py_helpers were installed and then update the config.json appropriately. Please report back here as to where you found the files to help others with the same problem. Thanks!

@RMCob Thanks for the response! I am using unraid docker. I fixed the the location of the py_helpers, and now this pops up: rror: Command failed: python3 /homebridge/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py (myusername) (mypassword) Traceback (most recent call last): File "/homebridge/node_modules/homebridge-wyze-robovac/py_helpers/getVacuumDeviceList.py", line 4, in import wyze_sdk ModuleNotFoundError: No module named 'wyze_sdk'

pjrezai commented 1 year ago

I am not sure if I need to install wyze_sdk? but I am not sure how to do that or have never used PYPI

RMCob commented 1 year ago

@pjrezai See the Requirements section of the READ_ME for installation instructions for wyze_sdk.