This page last changed on Jul 07, 2013 by vasanthv16.


I added a TCP sensor, but it fails to load in the controller (version: OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17).

<sensor id="14" name="XYZ" type="switch">
<include type="command" ref="11" />
<state name="on" />
<state name="off" />
<command id="11" protocol="socket">
<property name="port" value="1101" />
<property name="command" value="getstatussec D12345" />
<property name="ipAddress" value="" />
<property name="name" value="Check XYZ" />

As you can see, the sensor uses a command (a TCP command) and it has no polling interval set. The designer did not seem to have an option for polling interval for a TCP command. Here is the error message:

ERROR [Controller Definition File Watcher for Default Deployer]: There was an implementation error in the event listener associated with sensor 'Garage Sensor'. The listener implementation may not have started correctly : Could not set sensor because no polling interval was given
java.lang.RuntimeException: Could not set sensor because no polling interval was given
at org.openremote.controller.protocol.socket.TCPSocketCommand.setSensor(
at org.openremote.controller.model.sensor.Sensor.start(

Am I missing something?

By the way, I have Open Remote set up with mochad on Raspberry Pi and it has been a pretty cool experience so far.


It seems like I was using the latest snapshot of the controller (OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17), but an older version of the designer (

I learnt from another forum thread that I should be using Once I started using preview, the error went away. A property named 'pollingInterval' was included in the xml.


Posted by vasanthv16 at Jul 09, 2013 04:16
Document generated by Confluence on Jun 05, 2016 09:41