This page last changed on Oct 04, 2013 by allen912.

Hi,

Here are my little problem with Open Remote on my new 1.4 Razberry Pi !

I follow this usefull doc ! Thank's for it : http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Install+Controller+on+Raspberry+Pi

Raspberry Pi last version

Raspbian hard float (from N.O.O.B)
last jdk1.8.0 (hard float)
OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17

I had to set ("export") correct JRE_Home.

But when i'm launching it, nothing response on my "localhost":8080 request !
Exactly : "Waiting delay of response ..."
Same result afeter restart of the Raspberry, and several attempts...

Here is the copy past of the launching result :

$ ./openrem....
Using CATALINA_BASE: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_HOME: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_TMPDIR: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/
Using JRE_HOME: /opt/jdk1.8.0

---- Logging ----------------------------------------------------------

Console (stdout) threshold CONTROLLER\_CONSOLE\_THRESHOLD: INFO

System logs:

  • Controller startup log CONTROLLER\_STARTUP\_LOG\_LEVEL: DEBUG

-----------------------------------------------------------------------
oct. 04, 2013 4:00:31 PM org.apache.catalina.core.AprLifecycleListener init
INFOS: The APR based Apache Tomcat Native library which allows optimal performanwebapps/controller/WEB-INF/lib/native
oct. 04, 2013 4:00:32 PM org.apache.coyote.http11.Http11Protocol init
INFOS: Initialisation de Coyote HTTP/1.1 sur http-8080
oct. 04, 2013 4:00:32 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 8076 ms
oct. 04, 2013 4:00:33 PM org.apache.catalina.core.StandardService start
INFOS: D�marrage du service Catalina
oct. 04, 2013 4:00:33 PM org.apache.catalina.core.StandardEngine start
INFOS: Starting Servlet Engine: Apache Tomcat/6.0.18
oct. 04, 2013 4:00:33 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: D�ploiement de l'archive webconsole.war de l'application web
oct. 04, 2013 4:00:49 PM org.openremote.controller.bootstrap.Startup redirectJUL
INFOS: Initialized JUL to LOG4J Redirector.
INFO 2013-10-04 16:01:07,660 :

********************************************************************************

Controller definition was not found in this OpenRemote Controller instance.

If you are starting the controller for the first time, please use your web
browser to connect to the controller home page and synchronize it with your
online account.

********************************************************************************

Could not find a controller definition to load at path '../webapps/controller/co
INFO 2013-10-04 16:01:07,673 : Controller Definition File Watcher for Default De
oct. 04, 2013 4:01:13 PM org.apache.coyote.http11.Http11Protocol start
INFOS: D�marrage de Coyote HTTP/1.1 sur http-8080
oct. 04, 2013 4:01:13 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 40612 ms

And then nothing...

Could you please help me.

You need to create an online designer account, create a design and sync to your controller.

Posted by mredeker at Oct 05, 2013 21:23

Hi,

Thanks for your answer,

I was unable to synchronize my "data", because my port 8080 is reserved by my modem router (I was working on it, remotely out of my home). It now works (on port 8686). Anyway, thanks for your answer.

I've now designed my first switch, and my first "screen", but I've got trouble, it doesn't work. Here are my logs:

Using CATALINA_BASE: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_HOME: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_TMPDIR: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/temp
Using JRE_HOME: /opt/jdk1.8.0

---- Logging ----------------------------------------------------------

Console (stdout) threshold CONTROLLER\_CONSOLE\_THRESHOLD: INFO

System logs:

  • Controller startup log CONTROLLER\_STARTUP\_LOG\_LEVEL: DEBUG

-----------------------------------------------------------------------
oct. 08, 2013 1:04:28 PM org.apache.catalina.core.AprLifecycleListener init
INFOS: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/webapps/controller/WEB-INF/lib/native
oct. 08, 2013 1:04:29 PM org.apache.coyote.http11.Http11Protocol init
INFOS: Initialisation de Coyote HTTP/1.1 sur http-8686
oct. 08, 2013 1:04:29 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 8152 ms
oct. 08, 2013 1:04:29 PM org.apache.catalina.core.StandardService start
INFOS: D�marrage du service Catalina
oct. 08, 2013 1:04:30 PM org.apache.catalina.core.StandardEngine start
INFOS: Starting Servlet Engine: Apache Tomcat/6.0.18
oct. 08, 2013 1:04:30 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: D�ploiement de l'archive webconsole.war de l'application web
oct. 08, 2013 1:04:45 PM org.openremote.controller.bootstrap.Startup redirectJULtoLog4j
INFOS: Initialized JUL to LOG4J Redirector.
INFO 2013-10-08 13:05:04,057 :

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

DEPLOYING NEW CONTROLLER RUNTIME...

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

*****************************************************************

The license restrictions Sigma Designs places on Z-Wave
implementations prevents us from distributing Z-Wave with
an Open Source product.

To test Z-Wave, download a freely available binary from
http://download.openremote.org/free/zwave and follow the
installation instructions at http://www.openremote.org/x/xAo4AQ

*****************************************************************

INFO 2013-10-08 13:05:06,659 : No rule definitions found in '/home/pi/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/webapps/controller/rules'.
INFO 2013-10-08 13:05:06,662 : Initialized event processor : Drools Rule Engine
INFO 2013-10-08 13:05:08,091 : Initialized event processor : RRD4J Data Logger
INFO 2013-10-08 13:05:08,096 : Initialized event processor : EmonCMS Data Logger
ERROR 2013-10-08 13:05:08,464 : Creating sensor failed. Error : null
XML Element : <sensor xmlns="http://www.openremote.org" id="14" name="Chauffage ON/OFF" type="switch">
<include type="command" ref="13" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NullPointerException
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:429)
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.startController(Deployer.java:336)
at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:383)
at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:85)
at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:190)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
ERROR main: Creating sensor failed. Error : null
XML Element : <sensor xmlns="http://www.openremote.org" id="14" name="Chauffage ON/OFF" type="switch">
<include type="command" ref="13" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NullPointerException
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:429)
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.startController(Deployer.java:336)
at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:383)
at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:85)
at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:190)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
INFO 2013-10-08 13:05:08,553 : Startup complete.
INFO 2013-10-08 13:05:08,558 : Controller Definition File Watcher for Default Deployer started.
oct. 08, 2013 1:05:13 PM org.apache.coyote.http11.Http11Protocol start
INFOS: D�marrage de Coyote HTTP/1.1 sur http-8686
oct. 08, 2013 1:05:14 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 44810 ms

Here is my 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="10">
<on>
<include type="command" ref="12" />
</on>
<off>
<include type="command" ref="11" />
</off>
<include type="sensor" ref="14" />
</switch>
<button id="8">
<include type="command" ref="12" />
</button>
</components>
<sensors>
<sensor id="14" name="Chauffage ON/OFF" type="switch">
<include type="command" ref="13" />
<state name="on" />
<state name="off" />
</sensor>
</sensors>
<commands>
<command id="11" protocol="zwave">
<property name="nodeId" value="3" />
<property name="command" value="off" />
<property name="name" value="Arrêter chauff. Cuisine" />
</command>
<command id="12" protocol="zwave">
<property name="nodeId" value="3" />
<property name="command" value="on" />
<property name="name" value="Chauffer Cuisine" />
</command>
<command id="13" protocol="zwave">
<property name="nodeId" value="3" />
<property name="command" value="status" />
<property name="name" value="Statut Chauffage" />
</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="controller.groupmember.autodetect.on" value="true" />
<property name="amx_ni.port" value="50000" />
<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="controller.applicationname" value="controller" />
<property name="multicast.address" value="224.0.1.100" />
<property name="Macro.IR.Execution.Delay" value="500" />
<property name="controller.roundrobin.multicast.address" value="224.0.1.200" />
<property name="zwave.comPort" value="" />
<property name="zwave.pad.port" value="7876" />
<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="localhost" />
<property name="lutron_homeworks.username" value="openremote" />
<property name="webapp.port" value="8080" />
<property name="protocol.zwave.classname" value="org.openremote.controller.protocol.zwave.ZWaveCommandBuilder" />
<property name="resource.upload.enable" value="true" />
<property name="amx_ni.address" value="192.168.1.1" />
</config>
</openremote>

When I click on the switch, here is the message :

ERROR 2013-10-08 13:11:32,752 : Attempted to access sensor with id '14' which did not exist in device state cache.
ERROR HTTP\-Thread\-2: Attempted to access sensor with id '14' which did not exist in device state cache.

When i click on the button, nothing happens...

Everything works fine on my Razberry panel...

Thank you fort your help...

Posted by allen912 at Oct 08, 2013 12:12

Looks like you are trying to create a zwave switch without installing the zwave.jar.
Look at your log where it says:

*****************************************************************

The license restrictions Sigma Designs places on Z-Wave
implementations prevents us from distributing Z-Wave with
an Open Source product.

To test Z-Wave, download a freely available binary from
http://download.openremote.org/free/zwave and follow the
installation instructions at http://www.openremote.org/x/xAo4AQ

*****************************************************************
Posted by mredeker at Oct 08, 2013 12:36

Zwave.jar is deployed on the right place... the Zwave controller is not a USB stick but the razberry module. Does it matter ?

This command 192.168.1.3:8083/ZWaveAPI/Run/devices3.instances0.commandClasses37.Set(0) works fine...

Thank you for your help.

Posted by allen912 at Oct 08, 2013 12:54

The jar seems not to be deployed correct or else the message should not show up.
Anyway, if you use the Razberry you cannot use "zwave" protocol but have to use http protocol.
Look at the RazBerry Howto.

Posted by mredeker at Oct 08, 2013 15:05

This important "detail" wasn't known for me, even if I had read all documentation about OR on Raspberry...

It's now more clear about the structure. Unfortunately, this one seems more restrictive.

Anyway, it will be great to now have a fonctionnal screen on my smartphone...

Thank you Marcus, and great job to the "open remote" team for this powerfull soft !

PS : Sorry for my english, which is not my mother language....

Posted by allen912 at Oct 08, 2013 18:15

Unfortunately, this one seems more restrictive.

The RaZ-OR module is not intended to be restrictive. You are free to extend it.
Also it is not a problem to use http-calls as specified in the Z-Way documentation/forum next to calls using RaZ-OR.
RaZ-OR was just meant to make life easier for starters.
If you have further questions please raise them in the forum thread mentioned at the end of the How To page.

Posted by pz1 at Oct 08, 2013 20:33
Document generated by Confluence on Jun 05, 2016 09:41