-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Receiving QR code Error when trying to add Leviton Outlet (ZW15R) #2766
Comments
Hi @tamorgen, are you adding it from the provisioning entries table or are you using nodes manager dialog? Is the QR code very small (like 10x10mm)? In case it is so small I can suggest you to take a picture of it, then zoom the picture in your phone and use that as a scan as there is a known issue with small qr codes not read correctly. If this still doens't work you could try to parse the QR code with some other tool and insert the parsed string manually in the provisioning entries table dialog (just click the scan button and go to the 3rd tab of the dialog shown to input the string manually). cc @AlCalzone |
All the driver ever sees is the QR code's content, so either the code on the device is really shitty, or the UI has trouble reading it. @robertsLando I had better luck parsing codes reliably by scaling the Webcam image up 2x before attempting detection. Maybe worth a try, ZUI not being able to scan seems to happen semi-frequently. |
I tried all qrcode readers libraries I found online and none of them is able to read the qo code of my aeotec temperature and humidity sensor. I think I may need to implement my own one? 😢 As ref: mebjas/html5-qrcode#478 |
Maybe this could do the trick: mebjas/html5-qrcode#308 (comment) |
I'm adding it from the Manage Node's screen (Action --> Manage Nodes --> Inclusion -- > Name and Location --> Scan QR Code The QR code isn't terribly small. It's the same size as others that have functioned properly (Enbrighten Switches, Zooz Switches). I've tried both from the box QR and the receptacle QR. If it was too small, generally I'd have problems focusing on it, but this scans it straight away and then gives me the error. I have three of these devices and they all do the same thing. |
Ok so the problem is not a small QR code, I think it may be something related to zwavejs method that parse the QR string, @AlCalzone should I move this to zwave-js? |
One other piece of information. I just tried to add the device using the QR text, and it's failing to add as well. This time, it gives me an error about the length of the code. (Not valid. Must be 52 digits long and starts with "90".) The code I'm trying to enter is: 18XXX-55502-60104-02250-44975-53279-60438-60082 (PIN partially excluded) It's only 40 characters, so where are the other 12 characters supposed to come from? |
Seems also it doesn't start with '90' at all, that validation is taken from zwave-js so I have no clue why this happens, let's see what Al says |
So I noticed. I'm wondering if Leviton isn't following an industry standard. |
Is the QR code just the DSK (40 digits)? That's not a smart start QR code then, but we should probably detect it as a valid S2 DSK. It won't help much though, only spare you from entering the 5 digit PIN. |
It only appears to show 40 digits, yes. Their website claims it is SmartStart: https://www.leviton.com/en/products/zw15r-1bz "Z-Wave 700 Series Chipset includes S2 security and SmartStart" Edit: To be clear, I'm just stating what they claim. I'm not claiming they are right. |
@AlCalzone So what about this? |
This issue is the 2nd part of the linked one, only without the |
Sorry, I’ve been out of town for a few days. I did get a reply from Leviton engineering and they claim the whole code is in the QR code. Below is their response. If the whole code is there, why is Z Wave JS only providing me with the DSK when it scans the code and throwing this error?
|
I did try scanning the QR codes as he suggested, and it does scan with Smart Start prefix before the DSK. However, it appears that there are more numbers included after the DSK. I don’t know if that’s normal behavior when scanning from the iOS camera or not. It shows in the Google search bar after I scan the code, the whole code as Aaron suggested, but then there are 38 digits after the DSK: 00100409601794022000029000560000200263 |
Can you share the entire text content of the QR code? |
900125692131184405550260104022504497553279604386008200100409601794022000029000560000200263 |
I believe I may have come up with an explanation for the invalid character error. I appears to be in the generation of the QR code by Leviton, because I'm seeing it on all three Leviton devices I've tried to add, and none of the other 25 Smart Start devices I have on my network. I went to manual add one of the outlets a short time ago by copying the string output by the iOS camera on my iPhone, and pasting it into the manual text entry field for QR Code text in the Nodes Manager. When I copied the entire text, I got an error “Not valid. Must be 52 digits long and starts with “90”, similar to my earlier attempts of just entering the SDK that was on the label. I noticed however, that the QR cod text copied from the camera included a trailing space after the last digit. When I backspaced, the QR code was accepted. I checked the other two outlets, and they all had the same trailing spaces. My guess is that when I used the scan by camera feature in the app, it is also detecting the trailing space, but throwing invalid characters error that I initially provided. I haven’t seen this with any other companies Smart Start QR code. I’ve added many devices including Zooz, Jasco/Enbrighten, and Yale locks with QR code, and the Leviton devices are the only ones doing this. I would appear that there is an issue with the QR code generation that is adding this extra space, that other devices are not experiencing. I think this is an issue for Leviton to solve. The problem is fixed for me now by manually adding and correcting the text. The only thing I could say that the app could do is do a sanity check when it scans the QR code with the camera, look for trailing spaces, and delete them. I would think that would avoid this problem in the future. |
Fair enough, I've put this on my to do list. Thanks for investigating. Can you let Leviton know too? |
I emailed them before I posted here. I have not received a response from them yet. |
@robertsLando that error message looks like it comes from Z-UI? Is there an additional check on your end that also needs to be fixed? |
Yeah that's a frontend validation, I used the code you had on your side, does that changed? https://github.com/zwave-js/zwave-js-ui/blob/master/src/components/Confirm.vue#L423 |
The next version is going to |
I can add v-model.trim for this, it's automatically handeld by vue |
Done |
Good afternoon,
I'm trying to add a Leviton Decora Smart Outlet (ZW15R) to my Z-wave network. This is a 700 series Zwave plus outlet, supposedly with S2 support.
When I attempted to add it to my mesh through scanning the QR code, I received the following error: "Error while calling api parseQRCodeString: contains invalid characters (ZW1406).
I purchased 3 of these switches, and I've tried it on two so far, and zero luck.
I tried to add them the old fashioned way, by putting my Z-wave network into inclusion mode, and then held the inclusion button for 7 seconds, then pressed it once more after the light started flashing amber, to put it into inclusion mode per the manual, and it was found and recognized by HA, however, it did not prompt me for a PIN for the S2 security.
I've attempted to contact Leviton nad I was met with perhaps the dumbest Tier 1 I've ever spoken to, and then the rudest Tier 2 who didn't understand or care about the QR code issue. He said, "well t's included, so that's all I can help you with."
So my questions are:
The text was updated successfully, but these errors were encountered: