This page last changed on May 01, 2015 by myandmyopenremote.

<newbie question>

Dear all,
This week I started with my first home automation project. After some issues with installing OpenRemote on my Synology I decided to move to another platform and bought myself a Raspberry Pi and a USB Z-Wave dongle.

I have OpenRemote running now. Does Vision Z-wave ZU 1401 dongle work with OpenRemote? (I know, I should have checked this before buying it; I just assumed it would work ) On the web I can only find info on the Aeon dongle.

And if yes, how should I proceed??
Do I need to install drivers? How can I pair and access sensors and actuators?

Thank you very much for pushing me in the right direction!

Jasper

You will need the stick to be recognized as usb serial device eg. /dev/ttyUSB0.
After that check here: www.openremote.org/pages/viewpage.action?pageId=23595691

Posted by mredeker at May 02, 2015 10:46

Thanks!

Is it a problem that the dongle shows up as /dev/ttyACM0 and not as ttyUSB0?

Posted by myandmyopenremote at May 02, 2015 13:39

I don't know what's the difference between those two. Just give it a try.

Posted by mredeker at May 03, 2015 22:24

Ok, I have come this far, but am completely stuck now.. This is clearly out of my league

I have the Raspberry pi and OpenRemote properly running now.

I have followed these instructions to include zwave: http://openremote.org/display/docs/OpenRemote+2.0+How+To+-+Z-Wave

I have enabled z-wave debug logging in order to discover devices
(http://openremote.org/display/docs/Discover+Controller+Z-Wave+Devices)

However, the z-wave log doesn't show any devices. Actually, the log does not show anything (except for some version info everytime I reboot the Rasp Pi). This is most probably not surprising, but I have no clue how to proceed..

A couple of issues:

  • Should I install a driver? (There is a driver here: http://www.visionsecurity.com.tw/ha_files_3.html but I have no clue how to install drivers on the Rasp PI)
  • How should I pair devices? The Vision Z-wave ZU 1401 does not have an 'Action button' as described in the manuals of the sensor and switch I have.

The current settings in designer:

protocol.zwave.classname: org.openremote.controller.protocol.zwave.ZWaveCommandBuilder
zwave.comPort: /dev/ttyACM0
zwave.commLayer: RXTX
zwave.pad.host: localhost (was already there, left as is according to instructions)
zwave.pad.port: 7876 (was already there, left as is according to instructions)

Hopefully you guys can help me!
Thanks in advance!!
Jasper

Posted by myandmyopenremote at May 05, 2015 15:10

Do you see any erros in any of the other openremote log files?

Posted by mredeker at May 05, 2015 15:22

Thank you for your swift reply Marcus. Please find below some of the info in the logs. There seems to be something wrong with VeraClient. Would that be relevant?

-> From boot.log (equal to /dev/dev.log)

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

  DEPLOYING NEW CONTROLLER RUNTIME...

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

INFO 2015-05-05 16:32:41,045 : No rule definitions found in '/etc/OpenRemote-Controller-2.1.0/$
INFO 2015-05-05 16:32:41,045 : Initialized event processor : Drools Rule Engine
INFO 2015-05-05 16:32:41,604 : Initialized event processor : RRD4J Data Logger
INFO 2015-05-05 16:32:41,605 : Initialized event processor : EmonCMS Data Logger
INFO 2015-05-05 16:32:41,618 : Startup complete.
INFO 2015-05-05 16:32:41,623 : Controller Definition File Watcher for Default Deployer started.

-> from container/appcontext.log.15 ***************

May 05, 2015 4:32:34 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Log4J from [/etc/OpenRemote-Controller-2.1.0/webapps/controller/WEB-INF/cla$
May 05, 2015 4:32:43 PM org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
May 05, 2015 4:32:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Loading WebApplicationContext for Spring FrameworkServlet 'dispatcherServlet'

-> from /container/stderrout.log ************

dAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMe$
        at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequest$
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractContro$
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleCon$
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java$
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:$
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.ja$
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterC$
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.jav$
        at org.openremote.controller.rest.support.json.JSONCallbackFilter.doFilter(JSONCallbac$
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterC$
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.jav$
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEn$
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.j$
....
ERROR [HTTP-Thread-4]: Unable to store user credentials. Background API requests will not be a$
org.openremote.security.KeyManager$KeyManagerException: java.io.IOException: Error initialisin$
        at org.openremote.security.PasswordManager.add(PasswordManager.java:373)
        at org.openremote.security.PasswordManager.addPassword(PasswordManager.java:185)
        at org.openremote.controller.service.Deployer$BeehiveConnection.storeCredentials(Deplo$
        at org.openremote.controller.service.Deployer$BeehiveConnection.downloadZip(Deployer.j$
        at org.openremote.controller.service.Deployer$BeehiveConnection.access$200(Deployer.ja$
        at org.openremote.controller.service.Deployer.deployFromOnline(Deployer.java:550)
        at org.openremote.controller.action.ConfigManageController.syncOnline(ConfigManageCont$
ERROR [main]: Could not start VeraClient:
java.lang.IllegalArgumentException: Host name may not be null
        at org.apache.http.HttpHost.<init>(HttpHost.java:83)
        at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.j$
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:708)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700)
        at org.openremote.controller.protocol.vera.VeraClient.requestStatus(VeraClient.java:24$
        at org.openremote.controller.protocol.vera.VeraClient.startVeraClient(VeraClient.java:$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.startVeraClient(VeraComm$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.<init>(VeraCommandBuilde$
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
.....

-> from dsc/dsc-debug.log

DEBUG 2015-05-05 16:56:12,287 (DSC): Adding shutdown hook to manage unclosed DSC connections in case of controller exit.

-> from vera/vera.log

ERROR 2015-05-05 16:56:14,382 (Vera): Could not start VeraClient:
java.lang.IllegalArgumentException: Host name may not be null
        at org.apache.http.HttpHost.<init>(HttpHost.java:83)
        at org.apache.http.impl.client.AbstractHttpClient.determineTarget(Abstr$
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpC$
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpC$
        at org.openremote.controller.protocol.vera.VeraClient.requestStatus(Ver$
        at org.openremote.controller.protocol.vera.VeraClient.startVeraClient(V$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.startVera$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.<init>(Ve$
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruc$
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegating$
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
        at org.openremote.controller.command.CommandFactory.updateCommandBuilde$
        at org.openremote.controller.deployer.Version20ModelBuilder.build(Versi$
        at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(A$
        at org.openremote.controller.service.Deployer.startup(Deployer.java:872)
        at org.openremote.controller.service.Deployer.startController(Deployer.$
        at org.openremote.controller.spring.SpringContext.initializeController($
        at org.openremote.controller.service.ServiceContext.init(ServiceContext$
        at org.openremote.controller.bootstrap.Startup.loadServiceContext(Start$
        at org.openremote.controller.bootstrap.servlet.ServletStartup.initializ$
        at org.openremote.controller.bootstrap.servlet.ServletStartup.contextIn$
        at org.apache.catalina.core.StandardContext.listenerStart(StandardConte$
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:$
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas$
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7$
        

dev/sensors.log, dev/xml-parser.log, enocean/enocean.log, isy99/isy99.log, lagarto/lagarto.log, telnet/telnet.log, telnet/telnet-debug.log, http/http.log, knx/knx.log, knx/knx-debug.log, onewire/newire.log are empty. No errors in tomcat-server.log.15

Posted by myandmyopenremote at May 05, 2015 16:07

I have some more information based on some of your other responses Marcus. I have enabled vera debugging, you can find the log below. I have also tried to access the xml file, but that also gives a ERR_CONNECTION_REFUSED.

http://<veraip>:3480/data_request?id=status&output_format=xml

LOG:

ERROR 2015-05-05 18:39:02,407 (Vera): IOException when executing HTTP method
org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.0.3:3480 refused
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultCli$
        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.$
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.j$
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:731)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:709)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:700)
        at org.openremote.controller.protocol.vera.VeraClient.requestStatus(VeraClient.java:24$
        at org.openremote.controller.protocol.vera.VeraClient.startVeraClient(VeraClient.java:$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.startVeraClient(VeraComm$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.<init>(VeraCommandBuilde$
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl$
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcce$
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
        at org.openremote.controller.command.CommandFactory.updateCommandBuilders(CommandFacto$
        at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilde$
.......at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.jav$
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultCli$
        ... 49 more
ERROR 2015-05-05 18:39:02,472 (Vera): Could not get initial Vera status. Vera protocol is not $
ERROR 2015-05-05 18:39:02,473 (Vera): Could not start VeraClient:
java.lang.NullPointerException
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.startVeraClient(VeraComm$
        at org.openremote.controller.protocol.vera.VeraCommandBuilder.<init>(VeraCommandBuilde$
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl$
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcce$
        at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
        at org.openremote.controller.command.CommandFactory.updateCommandBuilders(CommandFacto$
        
....

Do you have any idea why the connection is refused?
Thanks for your time and efforts!
Jasper

Edit: between my two messages I have changed vera.address in the designer to the openremote ip; I have no particular clue what vera is for..

Posted by myandmyopenremote at May 05, 2015 18:04

Vera is another device which we support.
If you don't have a Vera box you should not need to configure it and don't create any commands with Vera protocol.

Posted by mredeker at May 05, 2015 23:10

Thanks Marcus, that's clear then. That brings us back to my first questions: What is the reason that the z-wave network is not picked up?

Also the credentials do not seem to be a problem? At least according to this post: http://www.openremote.org/pages/viewpage.action?pageId=23596278&focusedCommentId=23598085#comment-23598085

Do you have any clue?
Jasper

Posted by myandmyopenremote at May 06, 2015 08:09

Please note that you have the new Z-Wave version : New Z-Wave 2.0.0 Release

I have some experience with the Raspberry Pi 2 and the Razberry Z-Wave module. The following steps were necessary:

  1. Disable the serial console (see https://github.com/lurch/rpi-serial-console)
    sudo wget https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console 
    
    sudo rpi-serial-console disable
    
    rpi-serial-console status
    
  2. Update RXTX native library
    sudo apt-get install librxtx-java
    
    cp /usr/lib/jni/librxtxSerial.so <path to OpenRemote Controller>/OpenRemote-Controller-2.0.2/webapps/controller/WEB-INF/lib/native/librxtxSerial.so
    
  3. Check if user is part of dialout group
    id
    
    sudo usermod -a -G dialout username
    
  4. Make sure the serial port is recognized by RXTX
    export JAVA_OPTS=-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0
    

Step #1 and #4 was necessary for the Razberry module - I'm not sure if it's required for you external Vision USB stick.

Also note that you have to add at least one sensor with a linked Z-Wave command otherwise the Z-Wave protocol is not initialized and the Z-Wave log will be empty.

Posted by rhitz at May 06, 2015 10:08

Thanks Rainer! I'll try this!
FYI: the installation of the rpi-serial-console requires a bit more:
sudo wget https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console

Posted by myandmyopenremote at May 06, 2015 11:22

I am sorry for my incompetence guys.. You may need to help me step-by-step...

I followed your instructions as suggested.
I also added a sensor (with z-wave command 'status', node 1) and a switch (with the previously mentioned sensor and z-wave commands 'on' and 'off', node 2).

Of course this is all quite random, as I have not yet been able pair devices (there is no 'discover' button on the dongle). I kind of feel like a real-life 'chicken-and-egg'

The boot log now gives the error below. However, the zwave logs still do not show any activity..
Is this error caused because there is nothing at node 1 and node 2 yet? Or have I stumbled at yet another issue?

Thanks guys!!!

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

  DEPLOYING NEW CONTROLLER RUNTIME...

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

INFO 2015-05-06 14:45:00,949 : No rule definitions found in '/etc/OpenRemote-Controller-2.1.0/webapps/controller/rules'.
INFO 2015-05-06 14:45:00,949 : Initialized event processor : Drools Rule Engine
INFO 2015-05-06 14:45:01,523 : Initialized event processor : RRD4J Data Logger
INFO 2015-05-06 14:45:01,524 : Initialized event processor : EmonCMS Data Logger
ERROR 2015-05-06 14:45:01,837 : Creating sensor failed. Error : The <include> element in sensor (ID = 106974812) contains an invalid reference identifier. The value is not a valid integer : 16
 XML Element : <sensor xmlns="http://www.openremote.org" id="106974812" name="Sens1" type="range">
      <include type="command" ref="16" />
      <min value="0" />
      <max value="1" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 106974812) contains an invalid reference identifier. The value is not a valid integer : 16
        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.startController(Deployer.java:350)
        at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
        at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:427)
        at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:88)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:195)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:4$
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
INFO 2015-05-06 14:45:01,849 : Startup complete.
INFO 2015-05-06 14:45:01,851 : Controller Definition File Watcher for Default Deployer started.
Posted by myandmyopenremote at May 06, 2015 13:52

What does the Z-Wave log in <OpenRemote Controller Path>/logs/zwave/zwave.log show ?

Posted by rhitz at May 06, 2015 14:01

Not much unfortunately...


INFO 2015-05-06 14:38:23,552 (Z-Wave):

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

  OpenRemote Z-Wave protocol version : '2.0.0'

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

INFO 2015-05-06 14:45:00,912 (Z-Wave):

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

  OpenRemote Z-Wave protocol version : '2.0.0'

--------------------------------------------------------------------
Posted by myandmyopenremote at May 06, 2015 14:14

Create two switches with the following commands (see section "Z-Wave NODE INCLUSION/EXCLUSION" in New Z-Wave 2.0.0 Release). You'll need these switches anyway because the Vision USB stick doesn't have an inclusion button. Place these switches on a panel and you're able to include and exclude Z-Wave devices.

INCLUSION_MODE_ON
INCLUSION_MODE_OFF
INCLUSION_MODE_STATUS

EXCLUSION_MODE_ON
EXCLUSION_MODE_OFF
EXCLUSION_MODE_STATUS

With these switches you do not need a dummy sensor and Z-Wave command anymore - so delete the sensor and command you've previously created.

Posted by rhitz at May 06, 2015 14:15

Thanks!!!! I feel we are getting closer I have created the switches (and added them to a screen).
However, there still seems to be a problem with the recognition of the commands.
Do you have any clue?

Thanks for all your efforts!

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

  DEPLOYING NEW CONTROLLER RUNTIME...

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

INFO 2015-05-06 17:38:16,576 : No rule definitions found in '/etc/OpenRemote-Controller-2.1.0/webapps/controller/rules'.
INFO 2015-05-06 17:38:16,576 : Initialized event processor : Drools Rule Engine
INFO 2015-05-06 17:38:17,144 : Initialized event processor : RRD4J Data Logger
INFO 2015-05-06 17:38:17,145 : Initialized event processor : EmonCMS Data Logger
ERROR 2015-05-06 17:38:17,465 : Creating sensor failed. Error : The <include> element in sensor (ID = 106974819) contains an invalid reference identifier. The value is not a valid integer : 25
 XML Element : <sensor xmlns="http://www.openremote.org" id="106974819" name="EXCLUSION_MODE_STATUS" type="switch">
      <include type="command" ref="25" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 106974819) contains an invalid reference identifier. The value is not a valid integer : 25
        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.startController(Deployer.java:350)
        at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
        at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:427)
        at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:88)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:195)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
ERROR 2015-05-06 17:38:17,489 : Creating sensor failed. Error : The <include> element in sensor (ID = 106974817) contains an invalid reference identifier. The value is not a valid integer : 22
 XML Element : <sensor xmlns="http://www.openremote.org" id="106974817" name="INCLUSION_MODE_STATUS" type="switch">
      <include type="command" ref="22" />
      <state name="on" />
      <state name="off" />
    </sensor>
org.openremote.controller.exception.XMLParsingException: The <include> element in sensor (ID = 106974817) contains an invalid reference identifier. The value is not a valid integer : 22
        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.startController(Deployer.java:350)
        at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
        at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:427)
        at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:88)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:195)
        at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
INFO 2015-05-06 17:38:17,503 : Startup complete.
INFO 2015-05-06 17:38:17,505 : Controller Definition File Watcher for Default Deployer started.

And the complete controller.xml


<?xml version="1.0" encoding="UTF-8"?>
<openremote xmlns="http://www.openremote.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openremote.org http://www.openremote.org/schemas/controller.xsd">
  <components>
    <switch id="17">
      <on>
        <include type="command" ref="20" />
      </on>
      <off>
        <include type="command" ref="21" />
      </off>
      <include type="sensor" ref="106974817" />
    </switch>
    <switch id="19">
      <on>
        <include type="command" ref="23" />
      </on>
      <off>
        <include type="command" ref="24" />
      </off>
      <include type="sensor" ref="106974819" />
    </switch>
  </components>
  <sensors>
    <sensor id="106974819" name="EXCLUSION_MODE_STATUS" type="switch">
      <include type="command" ref="25" />
      <state name="on" />
      <state name="off" />
    </sensor>
    <sensor id="106974817" name="INCLUSION_MODE_STATUS" type="switch">
      <include type="command" ref="22" />
      <state name="on" />
      <state name="off" />
    </sensor>
  </sensors>
  <commands>
    <command id="20" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_ON" />
      <property name="name" value="INCLUSION_MODE_ON" />
    </command>
    <command id="21" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_OFF" />
      <property name="name" value="INCLUSION_MODE_OFF" />
    </command>
    <command id="22" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="INCLUSION_MODE_STATUS" />
      <property name="name" value="INCLUSION_MODE_STATUS" />
    </command>
    <command id="23" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_ON" />
      <property name="name" value="EXCLUSION_MODE_ON" />
    </command>
    <command id="24" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_OFF" />
      <property name="name" value="EXCLUSION_MODE_OFF" />
    </command>
    <command id="25" protocol="zwave">
      <property name="nodeId" value="1" />
      <property name="command" value="EXCLUSION_MODE_STATUS" />
      <property name="name" value="EXCLUSION_MODE_STATUS" />
    </command>
  </commands>
  <config>
    <property name="controller.roundrobin.multicast.port" value="10000" />
    <property name="controller.roundrobin.tcpserver.port" value="20000" />
    <property name="controller.groupname" value="floor20" />
    <property name="multicast.port" value="3333" />
    <property name="enocean.commLayer" value="" />
    <property name="enocean.comPort" value="" />
    <property name="protocol.vera.classname" value="org.openremote.controller.protocol.vera.Ve$
    <property name="controller.groupmember.autodetect.on" value="true" />
    <property name="amx_ni.port" value="50000" />
    <property name="enocean.serialProtocol" value="ESP3" />
    <property name="zwave.commLayer" value="RXTX" />
    <property name="copy.lircd.conf.on" value="true" />
    <property name="irsend.path" value="/usr/local/bin/irsend" />
    <property name="domintell.port" value="17481" />
    <property name="controller.applicationname" value="controller" />
    <property name="domintell.address" value="192.168.1.1" />
    <property name="multicast.address" value="224.0.1.100" />
    <property name="Macro.IR.Execution.Delay" value="500" />
    <property name="zwave.pad.port" value="" />
    <property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
    <property name="zwave.comPort" value="/dev/ttyACM0" />
    <property name="lutron_homeworks.password" value="openremote" />
    <property name="lagarto_network.broadcast" value="tcp://127.0.0.1:5001" />
    <property name="lircd.conf.path" value="/etc/lircd.conf" />
    <property name="lutron_homeworks.port" value="23" />
    <property name="lutron_homeworks.address" value="192.168.1.1" />
    <property name="zwave.pad.host" value="" />
    <property name="lutron_homeworks.username" value="openremote" />
    <property name="webapp.port" value="18581" />
    <property name="vera.address" value="" />
    <property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.$
    <property name="resource.upload.enable" value="true" />
    <property name="amx_ni.address" value="192.168.1.1" />
  </config>
</openremote>

Posted by myandmyopenremote at May 06, 2015 16:43
Document generated by Confluence on Jun 05, 2016 09:33