OH2 Z-Wave refactoring and testing... and SECURITY

ok, I can’t seem to get to the Karaf console to run the commands. This is a premade image for the pine64…

Did you try and ssh into the Karaf console?

ssh openhab@localhost -p 8101

password is habopen

Chris, how do you intend to notify us about binding recompiles with the updated database? I know this will eventually be automated via apt-get when it’s in the main branch, but until then?

I’ll post here when I update. I will be doing an update tonight so if you grab tomorrow (or this evening if you’re in the US) it will have the new database additions.

I tried this from putty, same port and all, I can’t connect to 8101, only into the linux bash at port 23

Try a: “netstat -a | grep 8101”

Report back what you get…

it is red

netstat -a | grep 8101
tcp6 0 0 localhost:8101 [::]:* LISTEN

Try "ssh localhost -p 8101"
Im guessing you’ll have to approve the key, then exit and try again with the username@ command… I’ve seen that happen when the key has never been added.

You can’t connect remotely to the Karaf console/shell since only IP 127.0.0.1 is allowed (localhost) in /var/lib/openhab2/etc/org.apache.karaf.shell.cfg (sshHost parameter).

To get access to the console, ssh to your host and then locally: ssh openhab@localhost -p 8101

Or change the sshHost to 0.0.0.0 (careful about security in this case…change the default habopen password?)

That’s fine: it’s listening properly to port 8101. You should be able to connect to it.

see if you need to remove the already stored key: ssh-keygen -f "/root/.ssh/known_hosts" -R [localhost]:8101

Ps: Open up new threads for these issues plz :slight_smile: This thread is for the new Z-Wave binding :sunglasses:

Didn’t realize I was doing it wrong, now I get this…

bundle:start org.openhab.binding.zwave
Error executing command: Error executing command on bundles:
Error starting bundle 9: Could not resolve module: org.openhab.binding.zwave [9]
Unresolved requirement: Import-Package: gnu.io

Using search function results to: Link

now I need to exclude my lock and i get command failed from habmin?

I can’t delete the zwave controller either

Did you follow the steps as Chris wrote in post #6 in this thread?

I can delete the things, but any of the below commands gives me an error, same when i try to remove the zwave controller.

I don’t think that you need to do any of that…
You shouldn’t have to include or exclude devices from your Z-Wave controller when changing to the new binding.
Just delete all things, uninstall old binding, install new, search for things
These HABmin functions (Reset etc) manage the Z-Wave Controller/network.

I can’t exclude anything, it comes up with an error, if I don’t exclude it, it comes up unknown because the lock was added securely before and is most likely using the old key. This is how I understand it. This is a new problem, not being able to use those commands.

error 409 conflict

Not sure why you can’t use these commands in HABmin… (note that Hard Reset will wipe out all devices from your controller and you will have to re-add them)
I think that: If you exclude them from the controller but do not reset the device itself, you won’t be to re-add it.
Check your device’s manual on how to exclude it and/or how to do a factory reset on it (if needed)
Then try again to perform device inclusion (I usually add the devices using the controller standalone)

You haven’t cleaned up properly the previous Z-Wave installation in your OH2.
check your addons.cfg file also (do not use the binding = zwave line in there or you will end up with 2 bindings running)