This page last changed on Jan 13, 2016 by johnwb.

Over the weekend, I made some changes to my OpenRemote panel as a part of streamlining the control of my Linn DS for audio. I also consolidated a configuration file for use in all bash scripts. Before installing the changes on the server, I made a backup copy of the webapps/controller directory.

The changes I made, did not impact any of the Z-Wave code. Prior to implementing the change, all the z-wave lights operated via rules and individual controls. After the change, all lights operated via the existing rules, BUT I now get "Send Request Error Command not found" if I manually operate any of the switches including the Include/Exclude ones.

I have performed some investigation and discovered the boot.log contains the following:

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

  DEPLOYING NEW CONTROLLER RUNTIME...

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

INFO 2016-01-13 09:22:28,053 : Initialized event processor : Drools Rule Engine
INFO 2016-01-13 09:22:28,091 : Initialized event processor : RRD4J Data Logger
INFO 2016-01-13 09:22:28,091 : Initialized event processor : EmonCMS Data Logger
ERROR 2016-01-13 09:22:28,505 : Creating sensor failed. Error : Native Library /opt/smhome/ORC/webapps/controller/WEB-INF/lib/native/librxtxSerial.so already loaded in another classloader 
 XML Element : <sensor xmlns="http://www.openremote.org" id="105015028" name="Switch 1 Sensor" type="switch">
      <include type="command" ref="3429" />
      <state name="on" />
      <state name="off" />
    </sensor>
java.lang.UnsatisfiedLinkError: Native Library /opt/smhome/ORC/webapps/controller/WEB-INF/lib/native/librxtxSerial.so already loaded in another classloader
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1743)

... skip traceback lines  ...

	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
ERROR 2016-01-13 09:22:28,513 : Creating sensor failed. Error : The node '2' is not known by the Z-Wave controller 
 XML Element : <sensor xmlns="http://www.openremote.org" id="106906000" name="Switch 1 Meter Sensor" type="custom">
      <include type="command" ref="3434" />
    </sensor>
org.openremote.controller.exception.NoSuchCommandException: The node '2' is not known by the Z-Wave controller
	at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:207)

... etc ...

I am using the free version of OpenRemote controller (2.1.0) with the New Z-Wave code installed 2015-01-29.

The Operating System is

Linux chusuk 3.13.0-74-generic #118+7.0trisquel2 SMP Sat Dec 19 12:20:40 UTC 2015 i686 i686 i686 GNU/Linux
and the contents of WEB-INF/lib/native is:

  /ssh:chusuk:/opt/smhome/ORC/webapps/controller/WEB-INF/lib/native:
  total 464
  drwxr-xr-x 2 jwb jwb   4096 Jan 20  2015 .
  drwxr-xr-x 3 jwb jwb   4096 Jan 20  2015 ..
  -rw-r--r-- 1 jwb jwb  10075 Jan 20  2015 librxtxParallel.so
  -rw-r--r-- 1 jwb jwb 169488 Jan 20  2015 librxtxSerial.jnilib
  -rw-r--r-- 1 jwb jwb 154682 Jan 20  2015 librxtxSerial.so
  -rw-r--r-- 1 jwb jwb  47421 Jan 20  2015 rxtxParallel.dll
  -rw-r--r-- 1 jwb jwb  77759 Jan 20  2015 rxtxSerial.dll

The zwave-debug.log is as follows:

DEBUG 2016-01-13 09:54:30,194 (Z-Wave): RX_Session_Layer            : Callback [0x01, 0x05, 0x00, 0x13, 0x26, 0x00, 0xCF] (callback ID=0x26) with state 'TRANSMIT_COMPLETE_OK' received -> Z-Wave function 'ZW_SendData(NodeID=2, Payload=[0x32, 0x01, 0x00], TxOptions=[TRANSMIT_OPTION_AUTO_ROUTE, TRANSMIT_EXPLORE_OPTION_ACK], CallbackID=0x26)' successfully executed.
DEBUG 2016-01-13 09:54:30,196 (Z-Wave): RX_Session_Layer            : Add function to pending transaction list (size='1') : ZW_SendData(NodeID=2, Payload=[0x32, 0x01, 0x00], TxOptions=[TRANSMIT_OPTION_AUTO_ROUTE, TRANSMIT_EXPLORE_OPTION_ACK], CallbackID=0x26)
DEBUG 2016-01-13 09:54:30,197 (Z-Wave): RX_Serial_Port_RXTX         : Data bytes read : [0x01]
DEBUG 2016-01-13 09:54:30,198 (Z-Wave): RX_Serial_Port_RXTX         : Data bytes read : [0x14, 0x00, 0x04, 0x00, 0x02, 0x0E, 0x32, 0x02, 0x21, 0x64, 0x00, 0x00, 0x40, 0x9A, 0x00, 0x00, 0x00, 0x00, 0x40, 0x9A, 0x96]
DEBUG 2016-01-13 09:54:30,198 (Z-Wave): RX_Frame_Layer              : Data frame [0x01, 0x14, 0x00, 0x04, 0x00, 0x02, 0x0E, 0x32, 0x02, 0x21, 0x64, 0x00, 0x00, 0x40, 0x9A, 0x00, 0x00, 0x00, 0x00, 0x40, 0x9A, 0x96] has been received.
DEBUG 2016-01-13 09:54:30,198 (Z-Wave): Node_Initializer            : Node '2:0' : [COMMAND_CLASS_METER::METER_REPORT (Retry='1'), Type='ELECTRIC_METER', Scale='ELECTRIC_METER_SCALE_KWH', Value='16.538', PreviousValue='--', Delta='0', RateType='Import'].
DEBUG 2016-01-13 09:54:30,199 (Z-Wave): RX_Session_Layer            : Removed function from pending transaction list (size='0') : ZW_SendData(NodeID=2, Payload=[0x32, 0x01, 0x00], TxOptions=[TRANSMIT_OPTION_AUTO_ROUTE, TRANSMIT_EXPLORE_OPTION_ACK], CallbackID=0x26)
DEBUG 2016-01-13 10:22:12,665 (Z-Wave): Command_Builder             : Building Z-Wave command
DEBUG 2016-01-13 10:22:12,674 (Z-Wave): Command_Builder             : Z-Wave command: nodeId = '2', endPoint = '1'
DEBUG 2016-01-13 10:22:12,674 (Z-Wave): Command_Builder             : Z-Wave command: command = ON

Which seems to indicate node 2, a light switch is turned on, BUT the action does not happen. However, it does if a rule is triggered.

Any thoughts of how to fix this problem so I am able to manually control the lights and add further devices?

Many thanks

John

Situation has been resolved!!

I do not know what caused the problem in the first place, but today I shutdown the server and unplugged it for a few minutes. Upon starting it up from the
cold state, it started up without any errors and the Z-Wave devices functioned properly again (I also removed and reinserted the aeotec z-stick S2 before
power up).

In the future, I will need to explore all options, including complete shutdown, before asking for help.

Posted by johnwb at Jan 14, 2016 14:39

In the future, I will need to explore all options, including complete shutdown, before asking for help.

Relax, we've all had our moments..

Posted by pz1 at Jan 14, 2016 17:44
Document generated by Confluence on Jun 05, 2016 09:34