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

Hi,

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

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

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(TCPSocketCommand.java:222)
at org.openremote.controller.model.sensor.Sensor.start(Sensor.java:387)
...

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.

Thanks,
Vasanth

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 (https://composer.openremote.org/demo/).

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

Vasanth

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