Hello, i have the hue_emulation 2.5.0M1 and if i change something in the knx.items file some of the well known lights in the Alexa App are marked as unreachable, if i search for new devices i find the „unreachable devices“ once again - now i have the devices as dublicate devices (one reachable and one unreachable)
If i restart the openhab2 Service all my devices are unreachable - i can only search and re-add them and have to delete the old devices.
but if i put the jar file in the /usr/share/openhab2/addons folder, i get this error
2019-04-09 20:47:44.779 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.io.hueemulation-2.5.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.hueemulation [218]
Unresolved requirement: Import-Package: io.swagger.annotations; version="[1.5.0,2.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.openhab.core.automation
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]
it looks like the org.openhab.core.automation is missing - but can you tell me, how to install this package
It looks like you will need to upgrade to a snapshot build due to the packages being moved after the ESH reintegration. It would be an interesting test to remove the new rule engine bfore upgrading to see if it installs automatically when resolving dependencies.
OK, i updated to the Version 2.5.0-M1-1 than i uninstalled all packages.
after this i update to the version from the testing repo (Version: 2.5.0-SNAPSHOT (#1566))
than i put the org.openhab.io.hueemulation-2.5.0-SNAPSHOT.jar in the /usr/share/openhab2/addons and chown openhab:openhab ./org.openhab.io.hueemulation-2.5.0-SNAPSHOT.jar
but still the same issue ?
2019-04-09 22:14:08.487 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.io.hueemulation-2.5.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.io.hueemulation [201]
Unresolved requirement: Import-Package: io.swagger.annotations; version="[1.5.0,2.0.0)"; resolution:="optional"
Unresolved requirement: Import-Package: org.openhab.core.automation
at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]
after i installed the Rule Engine (Experimental) manual - i got this
2019-04-09 22:19:26.185 [INFO ] [io.hueemulation.internal.ConfigStore] - No unique ID assigned yet. Assigning acba7963-4a77-4a0e-bc28-eed2588344a4 and restarting...
2019-04-09 22:19:26.286 [INFO ] [hueemulation.internal.PairingTimeout] - Hue Emulation pairing disabled. Service available under /api
2019-04-09 22:19:26.354 [INFO ] [hueemulation.internal.PairingTimeout] - Hue Emulation pairing disabled. Service available under /api
2019-04-09 22:19:31.101 [WARN ] [ish.jersey.server.ApplicationHandler] - Component of class class org.openhab.io.hueemulation.internal.HueEmulationService$StatusResource cannot be instantiated and will be ignored.
2019-04-09 22:19:31.820 [INFO ] [ulation.internal.HueEmulationService] - Hue Emulation service started
2019-04-09 22:19:32.558 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
2019-04-09 22:19:32.657 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
Now i looks a little bit better … but my devices are missing
Interesting… the dependencies didn’t install the rule engine…
I just realized the PR that I linked to is not merged yet, so the fix is not yet in the snapshot build of the binding. IIRC, when the fix is in there, yoiu will need to delete and rediscover your Alexa devices. So, I think you’re just a little early, but should be all set when it’s out.