So now the settings for the /dev/ttyACM0 are right, but…
How to get the settings for /var/lock set right after reboot?
It’s these commands:
chown -R root.uucp /var/lock
chmod -R g+w /var/lock/
I tried 2 scenario’s:
1 - create a xxx.conf file with these commands in the folder /etc/init
2 - added the commands to the startup file start_runtime.sh
Both strategies didn’t work.
Anyone any suggestions on what might be the problem or the solution?
I’m new to OpenHAB and I’m having the same problem as LeoVe.
I’m running a Synology DS1815+ with DSM 6.07321 I have OpenHAB 1.8.2, the latest HABmin, and the demo running.
I plugged in the Aeon Gen 5 z-wave stick and the Synology sees the device and assigns it /dev/ttyACM0, it even shows it plugged into the system via the control panel.
[ 25.111311] cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a modem.
[ 25.120340] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
[ 25.128397] usbcore: registered new interface driver cdc_acm
I followed these steps as per the previous posts:
created a dialout group via DSM
created a uucp group via DSM
assigned the openhab user to both groups via DSM
ran chown -R root.dialout /dev/ttyACM0 as root
ran chmod 660 /dev/ttyACM0 as root
ran chown -R root.uucp /var/lock as root
ran chmod -R g+w /var/lock/ as root
Created a file named openhab-zwave.rules in /lib/udev/rules.d with this content:
ACTION==“add”, KERNEL==“ttyACM0”, MODE=“0660”, GROUP=“dialout” as root
restarted the DSM, and reran ran chown -R root.uucp /var/lock as root & ran chmod -R g+w /var/lock/ as root
When I run ls -l /dev/ttyACM0 I get:
crw-rw---- 1 root dialout 166, 0 Mar 31 02:09 /dev/ttyACM0
My openhab.log still tells me:
23:46:38.991 [ManagedService Update Queue] ERROR o.o.b.z.i.protocol.ZWaveController - Serial Error: Port /dev/ttyACM0 does not exist
23:46:38.997 [org.openhab.core.internal.logging.OSGILogListener$NLogListener@99d7fe9] ERROR OSGi - port : Port /dev/ttyACM0 does not exist
org.openhab.binding.zwave.internal.protocol.SerialInterfaceException: Port /dev/ttyACM0 does not exist
Did I miss a step? I realize that the lock permissions will need to be reassigned every reboot without a script, but I can’t get it to run at all.
Try to just reinstall the package spk so that all files from openhab have the correct permissions.
The rest of the commands i use to exept the 660 is not needed in 5.2, i do not have 6 installed
I have reinstalled several times. I can run the debug as root and I can see my devices nodes 2, 3, &4 and they send update events.
However I don’t see the values updating on the UI (standard) and if I go back to launching from DSM now I get a does not exist even though it is there. I even tired adding -Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 to start.sh as suggested on another thread. no dice.
19:31:06.357 [ManagedService Update Queue] INFO o.o.b.z.i.protocol.ZWaveController - Starting Z-Wave controller
19:31:06.358 [ManagedService Update Queue] INFO o.o.b.z.i.protocol.ZWaveController - Z-Wave timeout is set to 5000ms. Soft reset is false.
19:31:06.358 [ManagedService Update Queue] INFO o.o.b.z.i.protocol.ZWaveController - Connecting to serial port /dev/ttyACM0
19:31:06.421 [ManagedService Update Queue] ERROR o.o.b.z.i.protocol.ZWaveController - Serial Error: Port /dev/ttyACM0 does not exist
19:31:06.426 [NTP Refresh Service] INFO o.o.c.service.AbstractActiveService - NTP Refresh Service has been started
19:31:06.426 [NTP Refresh Service] DEBUG o.o.binding.ntp.internal.NtpBinding - There is no existing NTP binding configuration => refresh cycle aborted!
19:31:06.434 [org.openhab.core.internal.logging.OSGILogListener$NLogListener@4233cd6] ERROR OSGi - port : Port /dev/ttyACM0 does not exist
org.openhab.binding.zwave.internal.protocol.SerialInterfaceException: Port /dev/ttyACM0 does not exist
################################ Z-Wave Binding ######################################
#
# The Z-Wave controller port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux
zwave:port=/dev/ttyACM0
# Z-Wave nightly heal time. This is the hour (eg 2AM) at which the automatic nightly
# network heal will be performed.
zwave:healtime=4
#zwave:masterController=True
items
group All
Group Main_Floor (All)
Group Basement (All)
Group Second_Floor (All)
Group Doors (All)
Group Batteries (All)
Contact frontdoor_sensor "Front door is [%s]" <door> (Doors,Main_Floor) {zwave="2:command=BASIC"}
Number frontdoor_battery "Front door sensor battery [%d %%]" <battery> (Batteries) {zwave="2:command=BATTERY"}
Contact sidedoor_sensor "Side door is [%s]" <door> (Doors,Main_Floor) {zwave="3:command=BASIC"}
Number sidedoor_battery "Side door sensor battery [%d %%]" <battery> (Batteries) {zwave="3:command=BATTERY"}
Contact Motion_Main_Floor "Motion [MAP(motion.map):%s]" <motion> (Main_Floor) {zwave="4:command=sensor_binary,respond_to_basic=true" }
/*Number Alarm_Main_Floor "Alarm: [%s]" (Main_Floor) {zwave="4:command=alarm" }*/
Number Temp_Main_Floor "Temperature: [%.1f °C]" <temperature> (Main_Floor) {zwave="4:command=sensor_multilevel,sensor_type=1,sensor_scale=0" }
Number Humid_Main_Floor "Humidity: [%.0f %%]" (Main_Floor) {zwave="4:command=sensor_multilevel,sensor_type=5" }
Number Lumin_Main_Floor "Luminance: [%.0f Lux]" (Main_Floor) {zwave="4:command=sensor_multilevel,sensor_type=3" }
Number UV_Main_Floor "Luminance: [UV index %d]" (Main_Floor) {zwave="4:command=sensor_multilevel,sensor_type=27" }
Number Battery_Main_Floor "Battery: [%d %%]" <battery> (Batteries) {zwave="4:command=battery" }
sitemp
sitemap piggpin label="Home"
{
Frame label="Pig Pen" {
Text label="Main Floor" icon="groundfloor"{
Group item=Main_Floor
Text item=frontdoor_sensor
Text item=sidedoor_sensor
Text item=Temp_Main_Floor
}
Text label="Second Floor" icon="firstfloor"{
Group item=Second_Floor
}
Text label="Basement" icon="cellar"{
Group item=Basement
}
}
}
I got some feedback from a friend and he suggested that I edit the start-stop-status.sh and add chmod 777 /dev/ttyACM0 and chmod 777 /run/lock/
It worked. I know that 777 is bad juju but I tried that on the command line for the device and it didn’t help. Wan it /run/lock? I already had /var/lock set as root.uucp and openhab was added to the group.
First thing, never run openhab as root, it will change a lot of files on synology, other systems no problem i think.
The last comment i see that you change rights on the device and its lockfile en thats correct, that is how it works for me to.
Search google for how to install openhab on xpenology, you will find a tut i wrote in the old forums.
I’m running OpenHAB2 on a DS214play, and finally (after trying a million different things from different webpages, including some of what’s above) got OpenHAB2 to see the z-stick when I ran start.sh from the commandline as root. If I run it from the package manager OpenHAB2 tells me that /dev/ttyACM0 doesn’t exist.
Can someone please advise me of the best way to cure this (what I guess is a rights) issue so that I can run Openhab as a normal package?
My stick in inserted in the ttyACM0, and in the ttyACM1 i have my Velbus system connected.
When i want to add the Z-wave stick i can only select the ttyACM1…