sensor will not trigger with http result


ive made a command which sends parameters(from rules) to my thermostat, it will send back a json string, ive attached a sensor to it to read it.

it has worked before but now my sensors.log says that there is no polling interval given (which is also not needed) any known issued or is it because of an designer update?

error logfile:

ERROR 2016-08-04 09:32:45,060 : There was an implementation error in the event listener associated with sensor ‘3M50_Online_check’. 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.http.HttpGetCommand.setSensor(

at org.openremote.controller.model.sensor.Sensor.start(

at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(


at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(

at org.openremote.controller.service.Deployer.startup(

at org.openremote.controller.service.Deployer.startController(

at org.openremote.controller.spring.SpringContext.initializeController(

at org.openremote.controller.service.ServiceContext.init(

at org.openremote.controller.bootstrap.Startup.loadServiceContext(

at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(

at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(

at org.apache.catalina.core.StandardContext.listenerStart(

at org.apache.catalina.core.StandardContext.start(

at org.apache.catalina.core.ContainerBase.addChildInternal(

at org.apache.catalina.core.ContainerBase.addChild(

at org.apache.catalina.core.StandardHost.addChild(

at org.apache.catalina.startup.HostConfig.deployDirectory(

at org.apache.catalina.startup.HostConfig.deployDirectories(

at org.apache.catalina.startup.HostConfig.deployApps(

at org.apache.catalina.startup.HostConfig.start(

at org.apache.catalina.startup.HostConfig.lifecycleEvent(

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardHost.start(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardEngine.start(

at org.apache.catalina.core.StandardService.start(

at org.apache.catalina.core.StandardServer.start(

at org.apache.catalina.startup.Catalina.start(

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(

at org.apache.catalina.startup.Bootstrap.start(

at org.apache.catalina.startup.Bootstrap.main(

ive always used the staging designer

username: robke



it is strange that it used to work at all, as the command which you call from rule with param is a different instance that the command linked to sensor. What you did was actually non documented feature. What I do to get such bidirectional communication is to use 2 commands, one for calling from the rule, where I can pass param, and another one to read the response. For the first command, when I want to call some HTTP service I use shell execution protocol where I call curl with output redirection to a file. Then I read this file with HTTP protocol and pooling http://localhost:8688/controller/your_file_name.json

This was the way I’ve implemented Smappee devices

Kind regards,


Yes that did the trick, a shell command with parameters from rules, the shell command will create a json files like:
curl -H “Content-Type: application/x-www-form-urlencoded” -X POST -d “$1 $2” > /openremote/webapps/controller/scripts/saswell_read_data.json

and an http command with a polling interval which parses the json