Shelly Binding

Please use the link above to install the latest snapshot. The 2.4 stable branch is no longer supported, I’m working hard to finish implementation for 2.5 and complete the review. Shelly will get part of the upcoming OH 2.5 release.

ooh i thought 2,5 is only working with openhab 2.5
can you link me the newest snapshot jar file which work on openhab 2.4

thank you very much!

No, it’s build on 2.5, but should provide full functionality on 2.4 (I’m on 2.5 for Dev and 2.4 for Prod)

I need some experience/help with my own installation:

I ran a openhab-cli clean-cache on my prod and now PaperUI is not starting anymore. It’s shown in bundle:list as Resolved, but when I try to start it I get a fragmention, which means PaperUI doesn’t start anymore :frowning: That’s the second time I’m experiencing this issue.

Could anybody help? It’s Prod so…:fearful:

where can i find the newest compiled jar file for 2.5?

I issued the command you gave some posts ago…but I don’t know if he can survive a clean-cache because I forgot I needed it …

so first I removed all things, then clean-cache, then copied the new jar and when I saw nothing was happening I remembered that maybe I was missing some bundle.

Yes I did:

immagine
immagine

I’ve just noticed also a change in the behavior of the Roller Control …before it would be updated after a stop to be any value from 0 to 100 in order to show the actual position (useful with the icon)…now it’s just 0 or 100 even if I stop in the middle of the run. Is it a regression or it’s a desired choice? For me would be better to go back to the previous behavior.

maybe it’s random, but after copying your last snapshot file in addons, clean cache, and made a restart, i don’t see paperui not anymore :frowning:
hmmm

i made a reboot and clean cache and now it comes up again (after deleting snapshot 2.5 shelly addon)

after copieng again the shelly 2.5 addon i see a error in the logfile
2019-11-30 17:38:00.250 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.shelly-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.shelly [245]

Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"

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]

i see i have 2.7 gson (bundle:list)
do i need to install 2.8.2? how i do that and do i don’t get any problems with openhab 2.4…?
thank you!

ok, this sounds like a bug, need to change that even I’m not aware that I changed something there

Are you running on 2.4 or 2.5?

that was excactly my problem. After clean-cache paperui is broken, so we share that paint. I would almost say, that the problem was the clean-cache and not the binding.

yes, that’s what I mentioned - after a clean-cache gson from bundle:install is gone
please install gson 2.8.5, that’s the version which comes with OH 2.5

i think i dit that:
openhab> bundle:list -s | grep gson
21 x Active x 80 x 2.7.0.v20170129-0911 x com.google.gson
247 x Active x 80 x 2.8.5 x com.google.gson

but after putting the addon shelly 2.5 in the addon folder i get this error in the logfile:
2019-11-30 18:27:00.381 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.shelly-2.5.0-SNAPSHOT.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.shelly [250]

Unresolved requirement: Import-Package: com.google.gson.annotations; version=“[2.8.0,3.0.0)”

what do i miss here…hmmm

I’m running OH 2.4

could you please provide a TRACE log - maybe as PM

Maybe OH 2.4 doesn’t support this unit type. I removed it, please check the new private build.

I also added monitoring of the overtemperature and overload flags. This will also be checked every 10min and post an event in case of a alarm.

markus, do you have a idea for my gson problem? i think both are active, but nothing installs after reboot

after 2 reboots and cleaning cash i could install the plugin
and now ON OFF works with the dimmer (2.5 binding)
but whenn i want to dimm i get now a error (Before that part worked normal)

2019-11-30 19:45:07.593 [ome.event.ItemCommandEvent] - Item ‘NicoDeckenlichtDimmer’ received command 80

2019-11-30 19:45:07.607 [nt.ItemStatePredictedEvent] - NicoDeckenlichtDimmer predicted to become 80

2019-11-30 19:45:07.632 [vent.ItemStateChangedEvent] - NicoDeckenlichtDimmer changed from 100 to 80

==> /var/log/openhab2/openhab.log <==

2019-11-30 19:45:07.658 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.handleCommand()’ on ‘org.openhab.binding.shelly.internal.handler.ShellyRelayHandler@3378d’: null

java.lang.NullPointerException: null

at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.handleCommand(ShellyBaseHandler.java:315) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at com.sun.proxy.$Proxy181.handleCommand(Unknown Source) [246:org.openhab.binding.shelly:2.5.0.201911301438]

at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]

at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

I need some more texture, please include 20 lines before

2019-11-30 19:57:46.523 [ome.event.ItemCommandEvent] - Item ‘NicoDeckenlichtDimmer’ received command OFF

2019-11-30 19:57:46.536 [nt.ItemStatePredictedEvent] - NicoDeckenlichtDimmer predicted to become OFF

2019-11-30 19:57:46.558 [vent.ItemStateChangedEvent] - NicoDeckenlichtDimmer changed from 50 to 0

2019-11-30 19:57:49.356 [ome.event.ItemCommandEvent] - Item ‘NicoDeckenlichtDimmer’ received command ON

2019-11-30 19:57:49.377 [nt.ItemStatePredictedEvent] - NicoDeckenlichtDimmer predicted to become ON

2019-11-30 19:57:49.389 [vent.ItemStateChangedEvent] - NicoDeckenlichtDimmer changed from 0 to 100

2019-11-30 19:57:55.102 [ome.event.ItemCommandEvent] - Item ‘NicoDeckenlichtDimmer’ received command 79

2019-11-30 19:57:55.111 [nt.ItemStatePredictedEvent] - NicoDeckenlichtDimmer predicted to become 79

2019-11-30 19:57:55.130 [vent.ItemStateChangedEvent] - NicoDeckenlichtDimmer changed from 100 to 79

==> /var/log/openhab2/openhab.log <==

2019-11-30 19:57:55.149 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method ‘ThingHandler.handleCommand()’ on ‘org.openhab.binding.shelly.internal.handler.ShellyRelayHandler@3378d’: null

java.lang.NullPointerException: null

at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.handleCommand(ShellyBaseHandler.java:315) ~[?:?]

at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at com.sun.proxy.$Proxy181.handleCommand(Unknown Source) [246:org.openhab.binding.shelly:2.5.0.201911301438]

at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:75) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]

at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]

at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]

at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

at java.lang.Thread.run(Thread.java:748) [?:?]

I need a good chunk of openhab.log before the problem, you could also send me a PM

I can confirm this too, after a clean-cache and restart the bundle is gone :confused: