Aeon lab zstick and aeon lab zwave switch

I install openhab-offline-2.0.0-SNAPSHOT.zip as my openHAB.

I install zwave binding via paper UI. It is shown in paper UI as binding-zwave - 2.0.0.SNAPSHOT.

I have a aeon lab** z-stick S2** and a aeon lab applicance switch.

Below are my configuration files.

sitemaps/demo2.sitemap,
Switch item=Light1

things/demo2.things,
zwave:serial_zstick:1 [port="/dev/ttyUSB0"]

items/demo2.items,
Switch Light1 { zwave=“1:command=switch_binary,refresh_interval=10000” }

conf/services/zwave.cfg,
port=/dev/ttyUSB0
masterController = true
softReset = false
setSUC = false

However, when I ./start.sh
I got error below,
"Z-Wave Serial Controller
Z-Wave USB Stick with Serial Interface
Status: OFFLINE - COMMUNICATION_ERROR Serial Error: Port /dev/ttyUSB0 does not exist"

via paper UI from
http://localhost:8080/ui/index.html#/configuration/things/view/zwave:serial_zstick:1

I believe this problem may be trivial for expert as it may be just a syntax problem.
Thank you and any information will be greatly appreciated.

The port for zwave binding 2.0 is normally set by using Paper UI or Habmin, not in a cfg file. That being said, the error you are seeing is more typical for a permissions problem on the serial port device file in /dev. Check that your permissions and groups are set correctly on /dev/ttyUSB0 for the user running openHAB.

You don’t mention what system you are running on. This information would be helpful if you continue to have problems.

Thank you for your information.

My OS is ubuntu 14.04 as shown below.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

I follow
CP210x.ko,

$sudo usermod openhab -a -G dialout
Although I do not have much idea about openhab user.

As mostly I use user xiaomin, I also do,
$sudo usermod xiaomin -a -G dialout

Now, both users in dialout group,
$grep dialout /etc/group
dialout:x:20:openhab,xiaomin

However, when I ./start.sh
I still got error below,
"Z-Wave Serial Controller
Z-Wave USB Stick with Serial Interface
Status: OFFLINE - COMMUNICATION_ERROR Serial Error: Port /dev/ttyUSB0 does not exist"

via paper UI from
http://localhost:8080/ui/index.html#/configuration/things/view/zwave:serial_zstick:1

Can some expert shed some light?
Thank you.

Never mind.

I login again to let user group setting take effect.
Now it is OK.

it show,
Z-Wave Serial Controller
Z-Wave USB Stick with Serial Interface

			Status: ONLINE

Thank you.

[FOLLOW UP]

for now, by http://localhost:8080/ui/index.html#/configuration/things/view/zwave:serial_zstick:1, it show status as online

In detail, it also shows 5 channel

Start Frames

zwave:serial_zstick:1:serial_sof

Counter tracking the number of SOF bytes received

Frames Acknowledged

zwave:serial_zstick:1:serial_ack

Counter tracking the number of frames acknowldeged by the controller

Frames Rejected

zwave:serial_zstick:1:serial_nak

Counter tracking the number of frames rejected by the controller

Frames Cancelled

zwave:serial_zstick:1:serial_can

Counter tracking the number of frames cancelled by the controller

OOF Bytes Received

zwave:serial_zstick:1:serial_oof

Counter tracking the number of out of flow bytes recieved


However, as this is a aeon zstick, by zensys-tool(a software on windows ), I manage to send Switch_binary command to my aeon applicance switch.

How can I do that by openhab zwave binding?
Can some expert shed some light?
Thank you.

Perhaps start here: Testing Z-Wave binding on openHAB-2

This gives a lot of detail and learning about getting z-wave going in OpenHAB2

Thank you for your link and description.

[FOLLOW UP]
my configuration
openhab.log observation
paper UI status observation
operation without openhab to include switch binary device

my configuration
Here is my configuration,
.items,
Switch Z_socket1 “Living Room” (Lights) {zwave=“5:command=SWITCH_BINARY”}

.things,
.zwave:aeon_dsc06_00_000:1 []

.sitemap
Switch item=Z_socket1

openhab.log observation
However, when I switch my Z_socket1, only shown these shown in log,
2016-03-23 18:51:48.020 [INFO ] [smarthome.event.ItemCommandEvent ] - Item ‘Z_socket1’ received command ON
2016-03-23 18:51:48.021 [INFO ] [marthome.event.ItemStateChangedEvent] - Z_socket1 changed from OFF to ON


paper UI status observation

Moreover, via paper UI, I see
DSC06 Smart Energy Switch

Smart Energy Switch

Status: INITIALIZING
Channels
Electric meter (kWh)

zwave:aeon_dsc06_00_000:1:meter_kwh

Indicates the energy consumption (kWh)
Electric meter (watts)

zwave:aeon_dsc06_00_000:1:meter_watts

Indicates the instantaneous power consumption
Sensor (power)

zwave:aeon_dsc06_00_000:1:sensor_power

Indicates the energy consumption (kWh)
Switch

zwave:aeon_dsc06_00_000:1:switch_binary

Switch the light on and off

It seems the status staying initialization forever.


operation without openhab to include switch binary device

I follow instructions here to operate,

I copy his description here,

Then, I assume, all I have to do is run openhab runtime, press the
button on the z-wave stick, bring the stick close to the z-wave outlet,
press the button on the outlet, wait for the stick’s light to return to solid(from blinking), and plug the stick into a USB slot on my mac. Then, in openhab designer, navigate to the website, and click on the switch and that should turn on my appliance, right?

to unplug my aeon zstick S2, include swtich binary device, and plug back to laptop USB port, and start openhab2.


Can some expert shed some light?
Thank you very much.