How-to Article on MakeUseOf

Neither is fully functional. I just got openhab and habmin I stalled on one of them, but still having issues getting the zstick to be recognized. I used the tutorial on instructibles to get evert hinges up and running. I’ve been here before, which is why I tried a different install tutorial.

Are you familiar with the zwave and aeon z stick set up?

If so, I have configured the binding using /dev/ttyACM0. Also added the user (pi) to dialout, sudo add user pi dialout.

I still cannot see the node in habmin. This was the issue I started my first post with, not this one, obviously…

I just don’t understand how it is that so many others don’t have issues, but apparently I am.

Just to clarify…both pi will use the z stick, but be at different houses.

One, I would like to control my hvac with, using dz, but they currently don’t integrate with oh. It will also have zwave, and rs232.

The other will have zwave and sonos.

It is my intention just to get one working, then I’ll know what to do with the other, hopefully…

I did lsusb and saw the stick as sigma

I did dmesg, but didn’t see the stick there, at least I dint see a manual tureen name, but did for my wireless keyboard and WiFi dongle. Definitely didn’t see a port. I’ve tried ACM0 and USB both in the binding, but it does not shoe up.

The add user to dialout says to add user openhab. I tried that but it said there is no user openhab. Is openhab supposed to be a user?

you should see it in dmesg output.

mine says:

cdc_acm 1-1.4:1.0: This device cannot do calls on its own. It is not a modem
cdc_acm 1-1.4:1.0:TTYACM0: USB ACM device
usbcore: registered new interface driver usb_acm
cdc_acm USB Abstract Control Model driver for usb modems and ISDN adapters

I’ll check mine again and let you know

I may have found the issue. I found a post about the openhab user. Says using wget the openhab user is added. I couldn’t use the wget, had to curl, and when I tried to add the openhab user to dialout, it said there was no user openhab so I figured I had to add the standard user (pi) in my case. Apparently I have to add the user openhab.

I’ll try this and see if it works.

Any idea why I can’t wget the openhab runtime?

Ok, so I did as follows

watou
Aug 21
I use a straight Raspian image, latest, and then applied these steps8 to boot/run from external disk. I created an openhab user with sudo adduser openhab (openHAB install might do this anyway). I added the openhab user to the dialout group so it could access the USB Z-Stick with sudo usermod openhab -a -G dialout. I installed openHAB using apt-get method here6. Installed addons using same apt-get method. Changed logging to events.log to WARN to stop that log from …

At least to add the user and allow to dialout.

My dmesg did have it. In habmin, under zwave bindings, set as /dev/ttyACM0, healtime 2.

Still not showing up as a node.

When I added the user, I entered a password to match, maybe I shouldn’t have a password? Do I need to change security settings?

I’ve not followed the whole thread here so apologies if I’m telling you what you already know…

It seems that you’re focussing on the port not opening. What I don’t see anywhere is anything from the logs that show what errors you’re getting - just that you’re not seeing anything in HABmin. If the port isn’t being opened, then you’ll get an error in the log - you should check there. You should also run the logging in DEBUG mode - at least until things are up and running - logging is really your best friend here :smile:

You also seem to be unsure about the port name? to find the port name, simply type ls /dev/tty* - do this with and without the stick plugged in and see what changes.

Ok, I’ll try it. Also, I’ve seen about using symlinks, but the documentation is not clear as to how and where to actually write the link. Can you help me in the right direction with this?

So since I really have no clue…

I will start openhab in debug mode, what do I need to be looking for exactly and when?

It might pay to quote text when replying so that we know what you have no clue about and can help :smile:

When the binding starts, it prints messages about opening the COM port - it will give an error if it can’t open the port - the error will say why it can’t be opened… People will help if you post logs here, but the logs are one of the best ways to find out what’s wrong…

Chris

Ok. Should I remove the password created for the user openhab, as well as give it permissions to the openhab folders? I created the user openhab and it asked for a password so I gave it one, though now that I’ve done a little bit of searching the web, I have found that I didn’t have to give it one. Also , I have not given the user open hab any permissions to any particular folders, ie /opt/openhab.

I must say, the tutorials but adding user openhab really should be more specific about this. I know this is a community of people that share, but how can the community grow if people aren’t willing to help others get started without a little hand holding? This isn’t the only community I’ve found this behavior on, other open source communities as well are like this. I think that once people spend time hashing out the problems, they figure others should have trial by fire too.

Not saying anything negative about anyone helping me here, just the general tutorials I’ve found leave a little to be desired, and a whole lot to be figured out on one’s own. I feel like this is more discouraging than helping…

Thank you for your help so far. I will run the debug in a little bit and hopefully have a better idea of what’s happening.

you’ll definitely have to give whatever the user running openhab is permissions to /opt/openhab et al.

(I have the t-shirt on this one)

How do I give it permissions

2015-09-20 00:18:34.174 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2015-09-20 00:18:34.407 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2015-09-20 00:18:34.410 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-09-20 00:18:34.412 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2015-09-20 00:18:34.688 [ERROR] [b.z.i.protocol.ZWaveController] - Serial Error: Port /dev/ttyACM0 does not exist****

pi@OpenHAB ~ $ dmesg | grep tty
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa01041 bcm2709.serial=0x46efd952 smsc95xx.macaddr=B8:27:EB:EF:D9:52 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3ea00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.002119] console [tty1] enabled
[    0.195713] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
[    0.695948] console [ttyAMA0] enabled
[    4.037204] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device
[ 1180.153287] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device


pi@OpenHAB ~ $ ls -l /dev/ttyACM0
crw-rw---T 1 root dialout 166, 0 Dec 31  1969 /dev/ttyACM0
pi@OpenHAB ~ $ grep dialout /etc/group
dialout:x:20:pi,openhab

so…added

-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0:/dev/ttyAMA0

per this post: https://groups.google.com/forum/m/#topic/openhab/PHVs33PqINE

Running start_debug.sh in a terminal windows and it is showing zwave communications between nodes. But…HABmin does not show my nodes. What now?

Please copy the first part of the logfile showing the zwave binding starting up…

chown

Ok, now for weirdness…

I opened habmin today, and low and behold, there were my nodes!

Just for giggles, restarted the pi, restarted openhab, now when I open habmin, no nodes.

I can see zwave communication in the start_debug.sh.

What now?

So debug the process. Something you did prior to today in a bash shell made this work correctly until you rebooted, wiping out whatever transient goodness you did in that shell. (Canonical example: you installed something or changed something where you should have put it into your .bash_profile, did not, so when you reboot its gone.)

Replay that prior shell session in your head. You’ve had a lot going on, so unless you have really good paper or electronic records of it, your recollection will be faulty. Make some notes on paper about what you recall.

Sort out what you know from from you sort-of-know. Take your paper list of what you did. Be prepared to reboot multiple times. Whenever something does not work–reboot and start again. You need to find the working path. (You had one, just have to find it again and make it sticky).

I install oh2 and habmin2, but then Uninstaller them, that’s all I did. I couldn’t get them to pull up in a browser.

OK. Suggest you make some notes and go back to stage zero – ie a NOOBS raspbian blank slate. Trying to untangle an OS-level mess is generally not worth the effort.
Goto NOOBS.
Update all.
Follow the video on Pi 2 install.
Write down every command you type and results. Better yet do a {command}|tee| …wrong syntax, but essentially use “tee” to see the output and also create a log copy of result for the record.