Edimax Binding issue


(Rajeev) #1

Hi

I am trying to connect smart EdiPlug with OpenHab2. Whenever I run a EdiPlug sitemap through browser it takes me to default sitemap. It seems there is some issue with EdiMax binding. I have placed org.openhab.binding.edimax_1.9.0.201607291201.jar file in my /etc/openhab2/addons folder. ( not sure if this is right jar file or do I need any other supporting binding adons file.) Please find the entries from Openhab log file. please help.

Note : I am also attaching relevant entries from addons.cfg , EdiPlug.items, EdiPlug.sitemap

Openhab.log

2018-10-02 20:10:14.215 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-edimax’: Error restarting bundles:
Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.

addons.cfg

Include legacy 1.x bindings. If set to true, it also allows the installation $

already a 2.x version available (requires remote repo access, see above). (de$

legacy = true

A comma-separated list of bindings to install (e.g. "binding = sonos,knx,zwav$

#binding =
binding = mqtt1,edimax,http1,ntp

EdiPlug.item
Switch EdimaxSimple {edimax=“74DA384AD6F7:1234”}
Number EdimaxCurrent “Current [%.1f]”{edimax=“74DA384AD6F7:1234:CURRENT”}
Number EdimaxPower “Power [%.1f]” {edimax=“74DA384AD6F7:1234:POWER”}

EdiPlug.sitemap

sitemap default label=“EDI Plug”
{

    Frame {

            Switch item=Switch_Humidifier  label="Office Room Humidifier"
            Switch item=Switch_Lamp  label="Office Room Lamp"
            Switch item = EdimaxSimple label="EDIMAX"
            Text item = EdimaxCurrent icon="battery-50"


       }

}


(Rajeev) #2

Hi

Just thought of providing additional input to get a resolution to my problem. List of package installed on OpenHAB console. Also providing updated log file entries. Appreciate your help.

Command : openhab> bundle:list |grep openHAB
‘’’

185 | Active | 90 | 2.2.0 | openHAB Core
186 | Active | 80 | 2.2.0 | openHAB Karaf Integration
188 | Resolved | 80 | 2.2.0 | openHAB Sound Support, Hosts: 1
189 | Active | 80 | 2.2.0 | openHAB Dashboard UI
198 | Resolved | 75 | 2.2.0 | openHAB Basic UI Fragment, Host
201 | Resolved | 75 | 2.2.0 | openHAB Paper UI Theme Fragment
207 | Active | 80 | 2.2.0 | openHAB 1.x Compatibility Layer
208 | Active | 80 | 1.11.0 | openHAB MQTT Transport Bundle
209 | Active | 80 | 1.11.0 | openHAB Mqtt Action
212 | Active | 80 | 1.11.0 | openHAB MQTT Binding
213 | Active | 80 | 1.9.0.201607291201 | openHAB Edimax Binding
‘’’

here is the updated entried in the log files

2018-10-03 09:50:16.102 [ERROR] [org.eclipse.smarthome.io.rest.sse ] - FrameworkEvent ERROR - org.eclipse.smarthome.io.rest.sse
org.osgi.framework.BundleException: Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729) [?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309) ~[?:?]
at org.eclipse.osgi.container.Module.doStart(Module.java:581) ~[?:?]
at org.eclipse.osgi.container.Module.start(Module.java:449) ~[?:?]
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.start(ModuleContainer.java:750) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:741) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:511) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:457) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer.refresh(ModuleContainer.java:1001) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1382) ~[?:?]
at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.dispatchEvent(ModuleContainer.java:1) ~[?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]
Caused by: java.lang.LinkageError: ClassCastException: attempting to castbundleresource://31.fwk26525369/javax/ws/rs/ext/RuntimeDelegate.class to bundleresource://31.fwk26525369/javax/ws/rs/ext/RuntimeDelegate.class
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146) ~[?:?]
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120) ~[?:?]
at javax.ws.rs.core.MediaType.valueOf(MediaType.java:179) ~[?:?]
at org.glassfish.jersey.media.sse.SseFeature.(SseFeature.java:62) ~[?:?]
at org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start(SseActivator.java:49) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772) ~[?:?]
… 15 more
2018-10-03 09:50:16.698 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-03 09:50:16.885 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-10-03 09:50:16.974 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2018-10-03 09:50:16.997 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing ‘openhab-binding-edimax’: Error restarting bundles:
Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.


(Udo Hartmann) #3

Please use code fences whenever posting code, configurations or logs.