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

Interview of 'Secure' included devices doesn't complete #136

Open
travellingkiwi opened this issue Dec 12, 2017 · 18 comments
Open

Interview of 'Secure' included devices doesn't complete #136

travellingkiwi opened this issue Dec 12, 2017 · 18 comments
Assignees

Comments

@travellingkiwi
Copy link

travellingkiwi commented Dec 12, 2017

because my RaZBerry is fairly fixed in place, I have a second controller in my network. An Aeotec USB Gen5 stick. Very useful because it's portable.

Usually devices include (eventually - that's a whole other story). However after going back to z-way on the RaZBerry (I was running openzwave for a while) I've noticed that any device that is shown as 'secure' in the way interface never completes the interview. It's always outstanding for the 'Security' interrogation...

Both controllers have the same 'secure' key (Which is currently the default 0x00, 0x01, 0x02 etc) and both controllers appear to be able to talk to the devices (Mostly). And I get updates form the devices back to the RaZBerry and they get fed to openHab OK. But it's a little disconcerting that I can't get the interview to complete 100% for all those 'secure' devices.

@PoltoS
Copy link
Member

PoltoS commented Dec 13, 2017

Secure interview is a very subtle thing.

I suggest to do inclusion of secure devices right from Z-Way

@travellingkiwi
Copy link
Author

travellingkiwi commented Dec 13, 2017 via email

@rafale77
Copy link

I am having the same problem. I have been trying to get the secure key from the vera into Zway and have not seen it completed. I initially thought it was a problem with the vera but it does not appear to be...

@PoltoS
Copy link
Member

PoltoS commented Jul 25, 2018

Send us the log

@rafale77
Copy link

Would love to. Could you tell me exactly which logs you need? And what folder I could get them from as well as where to send them to?

@PoltoS
Copy link
Member

PoltoS commented Jul 26, 2018

/var/log/z-way-server.log

https://z-wave.me/support/how-to-report-a-bug/

@rafale77
Copy link

Looking into the logs when only doing the security interview, this is what I am getting.

[2018-07-25 20:09:55.972] [W] [zway] Node 1:0 CC Security: secure channel not established by primary controller - skipping security
[2018-07-25 20:09:55.972] [D] [zway] SETDATA devices.1.instances.0.commandClasses.152.data.interviewCounter = 0 (0x00000000)
[2018-07-25 20:09:55.972] [I] [zway] Saving configuration data to config/zddx/f19e7657-DevicesData.xml
[2018-07-25 20:09:56.335] [I] [zway] Interview step 5

[2018-07-25 20:10:38.873] [W] [zway] Node 1:0 CC Security: secure channel not established by primary controller - skipping security
[2018-07-25 20:10:38.873] [D] [zway] SETDATA devices.1.instances.0.commandClasses.152.data.interviewCounter = 0 (0x00000000)
[2018-07-25 20:10:38.873] [I] [zway] Saving configuration data to config/zddx/f19e7657-DevicesData.xml
[2018-07-25 20:10:39.236] [I] [zway] Interview step 5
`

@PoltoS
Copy link
Member

PoltoS commented Jul 26, 2018

This means your RaZberry do not have Security established by the primary controller. Is RaZberry slave?

@rafale77
Copy link

rafale77 commented Jul 26, 2018

No actually it’s not. The vera is secondary and the UZB is primary in this case.

I am running on vs 3.0.0 RC15. The vera was the original primary and I have shifter primary from the vera to zway.

@PoltoS
Copy link
Member

PoltoS commented Dec 11, 2018

Please help us to solve this. Just need some explanation. So Vera was primary and you included Z-Way in it as secondary and shifted the primary role to Z-Way?

@rafale77
Copy link

Vera was primary. Included Z-way as secondary and then did a shift that is correct. At no time Z-way is able to join the network securely. I did exactly the same thing with openZwave with the same result. The only difference is that I can input the secure class key on openzwave. I cannot with Z-way.

@PoltoS
Copy link
Member

PoltoS commented Dec 12, 2018 via email

@rafale77
Copy link

I believe it is S2 security but can't be sure. it runs on the latest SDK version.

@pepper77
Copy link

I'm having the exact same problem as described, and I have done something very similar: I used to have Aeon Labs Z-stick gen5 as primary (and only) controller on a Raspberry pi3 running OpenHAB. Then I wanted a second controller and included a Raspberry pi2 with a RaZBerry2 controller running Z-way. After that I switched the RaZBerry2 to be primary controller because I liked the "expert"-interface in Z-way better than the Z-wave-configuration possibilities in OpenHAB. I then included all devices again, but all devices with a "Security"-attribute has interview results somewhere around 97% because the "Security"-part of the interview never succeeds.

@PoltoS
Copy link
Member

PoltoS commented Dec 26, 2018

This is because if you include RaZberry as secondary controller, it expects security interview from the primary to get the network key. But if the primary has not done that (I believe OpenHAB missed this), your RaZberry do not know the key. If you want to re-include all, please reset to factory default your RaZberry and then start over. Otherwise you can not use security.

@rafale77
Copy link

@PoltoS, While I agree with you on your assessment, I would like to insist on the fact that OpenHab (which uses openZwave as the backbone) gives the ability to set the S0 security key. I looked further into the zwave security and it seems vera uses S0 as well. It would be a great addition to Zway as for now we cannot get secure devices to migrate to Zway.

@PoltoS
Copy link
Member

PoltoS commented Dec 26, 2018

Please send me the log of Z-Way during inclusion. This will enlighten the issue.

We have tested and Z-Way can include another Z-Way securely.

To be sure, you tried to just add Z-Way as secondary, not as primary (controller shift)?

@pepper77
Copy link

This shows up in the log when I try to force interview for the "Security"-attribute:
[2018-12-26 20:43:41.806] [W] [zway] Node 13:0 CC Security: secure channel not established by primary controller - skipping security
[2018-12-26 20:43:41.806] [D] [zway] SETDATA devices.13.instances.0.commandClasses.152.data.interviewCounter = 0 (0x00000000)
[2018-12-26 20:43:41.807] [I] [zway] Saving configuration data to config/zddx/f50c7816-DevicesData.xml
[2018-12-26 20:43:42.590] [I] [zway] Interview step 4 skipped due to absence of MultiInstance CC
[2018-12-26 20:43:42.591] [I] [zway] Interview step 5
[2018-12-26 20:43:49.261] [D] [zway] Job 0x3b: deleted from queue

I added Z-Way (RaZBerry2) as second controller, and afterward I shifted controllers, so Z-Way became primary (and running SUC and SIS).
I can extract the Network Security Key from the Z-Stick via OpenHAB, but I don't know how to check if it is the same key in Z-Way (RaZBerry2), or how to change the key if it's not the same.

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

No branches or pull requests

5 participants