Closed jiserra closed 2 years ago
@jiserra Where are you seeing this log? Please provide as much details as possible to understand your set up and try to replicate this issue.
I do not get the SyntaxError you mentioned. But vacuum never shows up in accessories.
The way that this plugin is using the wyze-sdk is by parsing the output of the python helper scrips
for(let i = 0; i < stdout.length; i++) { const c = stdout.charAt(i); if( c === '\n') { nickNames.push( line ); currentRoomName.push( '' ); // Current room name for this vacuum line = ''; continue; } line = line.concat( stdout.charAt(i) ); }
That becomes a problem when you have a device that is currently not supported by the wyze-sdk, the wyze client will output information about an unknown device and corrupt the rest of the process done by this plugin.
@ma-armenta I'm seeing this log on Homebridge log. The vacuum never shows up because the plugin is interrupted by the error I posted. Again, is weird that if I execute the command that's failing on the command line, it finds the vacuum name without problems.
Whenever you run it manually, do you see anything else other than the name of your vacuum?
@ma-armenta Nope, just the name of my vacuum alone, no other text or error.
What version of python are you using? Did you install the wyze-sdk?
@ma-armenta It's up there in the info on this ticket: 3.8.6
Does your password have a blank (space) in it?
Nope, no blank on password, the only weird character is an underscore
Ok, I finally solved it:
sudo pip install wyze-sdk
because the sudo version of python is 3.7 (I didn't know that you can have a normal version of python and a sudo version of python!)
Describe The Bug: The plugin never starts because it says there's a syntax error. The weird thing is that if I execute the line that's failing, it gives me my vacuum name without a problem.
Logs:
Environment: