This page last changed on May 27, 2015 by stevemichels.

Hi all,

Looking for some support on integrating zwave on OpenRemote running on QNAP NAS TS-459 (intel based). Im am trying to extend my KNX installation with zwave.

I have an Aeotec S2 zwave USB stick and I have 2 zwave components in my network (door sensor + smoke alarm of FIBARO).

Whatever I do/tried the zwave.log remains empty and zwave/java related errors are shown in the boot.log. The latter errors are probably a consequene of not having node<nodeid>.xml file present in OpenRemote/webapps/controller/zwave due to failing/not started discovery of elements.

BTW i had already included the 2 sensor devices manually using the USB stick.

Plugging the USB zwave controller device it gets discovered:
dmesg:
250372.213055 usb 6-2: new full-speed USB device number 2 using uhci_hcd
250372.378435 cp210x 6-2:1.0: cp210x converter detected
250372.485085 usb 6-2: reset full-speed USB device number 2 using uhci_hcd
250372.628976 usb 6-2: cp210x converter now attached to ttyUSB0

[/dev] # lsusb
Bus 002 Device 002: ID 1005:b155 Apacer Technology, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

1) boot.log:
============

--------------------------------------------------------------------

DEPLOYING NEW CONTROLLER RUNTIME...

--------------------------------------------------------------------

DEBUG 2015-05-27 21:50:11,915 : Created object model for Command( ID = 375, Type = zwave, Properties :

Unknown macro: {name=INCLUSION_MODE_OFF, nodeId=1, command=INCLUSION_MODE_OFF}
).
DEBUG 2015-05-27 21:50:11,915 : Created object model for Command( ID = 376, Type = zwave, Properties :
Unknown macro: {name=INCLUSION_MODE_ON, nodeId=1, command=INCLUSION_MODE_ON}
).
DEBUG 2015-05-27 21:50:11,915 : Created object model for Command( ID = 377, Type = zwave, Properties :
Unknown macro: {name=FIB Deur Sensor Status, nodeId=4, command=status}
).
DEBUG 2015-05-27 21:50:11,916 : Created object model for Command( ID = 378, Type = zwave, Properties :
Unknown macro: {name=INCLUSION_MODE_STATUS, nodeId=1, command=INCLUSION_MODE_STATUS}
).
DEBUG 2015-05-27 21:50:11,916 : Created object model for Command( ID = 379, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_STATUS, nodeId=1, command=EXCLUSION_MODE_STATUS}
).
DEBUG 2015-05-27 21:50:11,916 : Created object model for Command( ID = 380, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_ON, nodeId=1, command=EXCLUSION_MODE_ON}
).
DEBUG 2015-05-27 21:50:11,916 : Created object model for Command( ID = 381, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_OFF, nodeId=1, command=EXCLUSION_MODE_OFF}
).

...

ERROR 2015-05-27 21:50:12,066 : Creating sensor failed. Error : org/openremote/controller/ZWaveConfiguration
XML Element : <sensor xmlns="http://www.openremote.org" id="7076530" name="EXCLUSION ON/OFF" type="switch">
<include type="command" ref="379" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NoClassDefFoundError: org/openremote/controller/ZWaveConfiguration
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.createZWavePortConfiguration(DefaultZWaveConfigurationManager.java:74)
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.getPortConfiguration(DefaultZWaveConfigurationManager.java:47)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.initZWaveController(ZWaveCommandBuilder.java:245)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:145)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:440)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1324)
at java.lang.Thread.run(Thread.java:745)
ERROR 2015-05-27 21:50:12,074 : Creating sensor failed. Error : org/openremote/controller/ZWaveConfiguration
XML Element : <sensor xmlns="http://www.openremote.org" id="7076529" name="INCLUSION ON/OFF" type="switch">
<include type="command" ref="378" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NoClassDefFoundError: org/openremote/controller/ZWaveConfiguration
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.createZWavePortConfiguration(DefaultZWaveConfigurationManager.java:74)
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.getPortConfiguration(DefaultZWaveConfigurationManager.java:47)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.initZWaveController(ZWaveCommandBuilder.java:245)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:145)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:440)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1324)
at java.lang.Thread.run(Thread.java:745)
DEBUG 2015-05-27 21:50:12,083 : Created object model for sensor 'Salon-Centraal-Sense' (ID = '7,004,854').
ERROR 2015-05-27 21:50:12,090 : Creating sensor failed. Error : org/openremote/controller/ZWaveConfiguration
XML Element : <sensor xmlns="http://www.openremote.org" id="7076528" name="voordeur-sensor" type="switch">
<include type="command" ref="377" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NoClassDefFoundError: org/openremote/controller/ZWaveConfiguration
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.createZWavePortConfiguration(DefaultZWaveConfigurationManager.java:74)
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.getPortConfiguration(DefaultZWaveConfigurationManager.java:47)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.initZWaveController(ZWaveCommandBuilder.java:245)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:145)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:440)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1324)
at java.lang.Thread.run(Thread.java:745)

2) ZWAVE LOG:
=============

--------------------------------------------------------------------

INFO 2015-05-27 21:33:22,356 (Z-Wave):

--------------------------------------------------------------------

OpenRemote Z-Wave protocol version : '2.0.0'

--------------------------------------------------------------------

INFO 2015-05-27 21:49:08,657 (Z-Wave):

--------------------------------------------------------------------

OpenRemote Z-Wave protocol version : '2.0.0'

--------------------------------------------------------------------

So I have read on the forum somewhere that version 2.1.0 is not OK and that version 2.1.1 should be installed instead.

So I just downloaded that version and performed a replace of all files with the 2.1.1 version. http://sourceforge.net/projects/openremote/files/latest/download?source=typ_redirect

But still the zwave log is empty, but the zwave related errors in the boot.log are slightly different:

=> complaining that the identifiers are not integers, but who sets these values???

DEBUG 2015-06-01 20:57:26,534 : Created object model for Command( ID = 393, Type = zwave, Properties :

Unknown macro: {name=INCLUSION_MODE_OFF, nodeId=1, command=INCLUSION_MODE_OFF}
).
DEBUG 2015-06-01 20:57:26,534 : Created object model for Command( ID = 394, Type = zwave, Properties :
Unknown macro: {name=INCLUSION_MODE_ON, nodeId=1, command=INCLUSION_MODE_ON}
).
DEBUG 2015-06-01 20:57:26,534 : Created object model for Command( ID = 395, Type = zwave, Properties :
Unknown macro: {name=FIB Deur Sensor Status, nodeId=4, command=status}
).
DEBUG 2015-06-01 20:57:26,535 : Created object model for Command( ID = 396, Type = zwave, Properties :
Unknown macro: {name=INCLUSION_MODE_STATUS, nodeId=1, command=INCLUSION_MODE_STATUS}
).
DEBUG 2015-06-01 20:57:26,535 : Created object model for Command( ID = 397, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_STATUS, nodeId=1, command=EXCLUSION_MODE_STATUS}
).
DEBUG 2015-06-01 20:57:26,535 : Created object model for Command( ID = 398, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_ON, nodeId=1, command=EXCLUSION_MODE_ON}
).
DEBUG 2015-06-01 20:57:26,536 : Created object model for Command( ID = 399, Type = zwave, Properties :
Unknown macro: {name=EXCLUSION_MODE_OFF, nodeId=1, command=EXCLUSION_MODE_OFF}
).

DEBUG 2015-06-01 20:57:26,549 : Initializing event processor: Drools Rule Engine
DEBUG 2015-06-01 20:57:26,551 : Adding Rule 'modeler_rules.drl'...
DEBUG 2015-06-01 20:57:26,580 : Adding rule definitions from 'modeler_rules.drl'...
INFO 2015-06-01 20:57:26,587 : Initialized event processor : Drools Rule Engine
DEBUG 2015-06-01 20:57:26,587 : Initializing event processor: RRD4J Data Logger
INFO 2015-06-01 20:57:26,609 : Initialized event processor : RRD4J Data Logger
DEBUG 2015-06-01 20:57:26,609 : Initializing event processor: EmonCMS Data Logger
INFO 2015-06-01 20:57:26,610 : Initialized event processor : EmonCMS Data Logger

ERROR 2015-06-01 20:57:26,680 : Creating sensor failed. Error : The <include> element in sensor (ID = 7076530) contains an invalid reference identifier. The value is not a valid integer : 397
XML Element : <sensor xmlns="http://www.openremote.org" id="7076530" name="EXCLUSION ON/OFF" type="switch">
<include type="command" ref="397" />
<state name="on" />
<state name="off" />
</sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 7076530) contains an invalid reference identifier. The value is not a valid integer : 397
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:442)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:872)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:454)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1411)
at java.lang.Thread.run(Thread.java:745)
ERROR 2015-06-01 20:57:26,692 : Creating sensor failed. Error : The <include> element in sensor (ID = 7076529) contains an invalid reference identifier. The value is not a valid integer : 396
XML Element : <sensor xmlns="http://www.openremote.org" id="7076529" name="INCLUSION ON/OFF" type="switch">
<include type="command" ref="396" />
<state name="on" />
<state name="off" />
</sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 7076529) contains an invalid reference identifier. The value is not a valid integer : 396
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:442)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:872)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:454)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1411)
at java.lang.Thread.run(Thread.java:745)
DEBUG 2015-06-01 20:57:26,701 : Created object model for sensor 'Salon-Centraal-Sense' (ID = '7,004,854').
ERROR 2015-06-01 20:57:26,715 : Creating sensor failed. Error : The <include> element in sensor (ID = 7076528) contains an invalid reference identifier. The value is not a valid integer : 395
XML Element : <sensor xmlns="http://www.openremote.org" id="7076528" name="voordeur-sensor" type="switch">
<include type="command" ref="395" />
<state name="on" />
<state name="off" />
</sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 7076528) contains an invalid reference identifier. The value is not a valid integer : 395
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:442)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:872)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:454)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1411)
at java.lang.Thread.run(Thread.java:745)

Posted by stevemichels at Jun 01, 2015 22:20
Document generated by Confluence on Jun 05, 2016 09:33