Hi
Im trying to write a binding where i need the scheduler to run the execute command each 15 minutes.
As long as im in my development environment in eclipse this is working as intended.
However when i deploy the jar, openHAB registers the binding but it doesnt make a “Refresh service”.
Does anyone know what im missing?
public class LeafEVConnectBinding extends AbstractActiveBinding<LeafEVConnectBindingProvider> implements ManagedService{
(...)
/**
* the refresh interval which is used to poll values from the LeafEVConnect
* server (optional, defaults to 60000ms)
*/
private long refreshInterval = 60000L;
static int timeout = 20000;
/**
* @{inheritDoc}
*/
@Override
protected long getRefreshInterval() {
return refreshInterval;
}
/**
* @{inheritDoc}
*/
@Override
protected String getName() {
return "LeafEVConnect Refresh Service";
}
/**
* @{inheritDoc}
*/
@Override
protected void execute() {
// the frequently executed code (polling) goes here ...
logger.debug("execute() method is called !");
(...)
Manifest-Version: 1.0
Private-Package: org.openhab.binding.leafevconnect.internal
Ignore-Package: org.openhab.binding.leafevconnect.internal
Bundle-Name: openHAB LeafEVConnect Binding
Bundle-Vendor: openHAB.org
Bundle-Version: 1.8.3.qualifier
Bundle-Activator: org.openhab.binding.leafevconnect.internal.LeafEVConnectActivator
Bundle-ManifestVersion: 2
Bundle-License: http://www.eclipse.org/legal/epl-v10.html
Bundle-Description: This is the LeafEVConnect binding of the open Home Aut
omation Bus (openHAB)
Import-Package: org.apache.commons.codec.binary;version="1.3.0",
org.apache.commons.httpclient;version="3.1.0",
org.apache.commons.httpclient.methods;version="3.1.0",
org.apache.commons.httpclient.params;version="3.1.0",
org.apache.commons.io,
org.apache.commons.lang,
org.apache.http.client;version="4.1.3",
org.openhab.core.binding,
org.openhab.core.events,
org.openhab.core.items,
org.openhab.core.library.items,
org.openhab.core.library.types,
org.openhab.core.types,
org.openhab.io.net.http,
org.openhab.model.item.binding,
org.osgi.framework,
org.osgi.service.cm,
org.osgi.service.component,
org.osgi.service.event,
org.slf4j
Bundle-SymbolicName: org.openhab.binding.leafevconnect
Bundle-DocURL: http://www.openhab.org
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Service-Component: OSGI-INF/binding.xml, OSGI-INF/genericbindingprovider.xml
Bundle-ClassPath: .,
lib/json-20140107.jar