Shelly Binding

You could find a new buld in the snapshot branch
https://github.com/markus7017/org.openhab.binding.shelly/blob/snapshot/target/org.openhab.binding.shelly-2.4.0-SNAPSHOT.jar

2.4.2-SNAPSHOT release notes

  • Support for Shelly Flood
  • Support for Shelly EM (primarily)
  • Create special device (shelly-protected) when device is password protected
  • channel name meter.totalWatts changed to meter.totalKWH (returns kw/h, not Watts)

HT got a new firmware: 1.52
Shelly 2.5 even newer: 1.53

Please verify Shelly Flood and provide a TRACE log

@Hunor_Madaras @WeRo
Please verify the updated snapshot release, I removed one dependency - may fix install on 2.4
I also fixed schedule handling for Sensors (e.g. HT). This could explain “hanging updates”

Tried to install Flood. Adding it manually PaperUI reports a „Error 500 - internal server error“.
I had to define the Thing ID by myself. After this step I could fill in the IP adress. In log everything looks fine but PaperUI doesn’t show any channels and reports the Error 500 after every refresh.

2019-08-25 15:29:07.570 [DEBUG] [helly.internal.handler.ShellyHandler] - shellyflood-6946e0: Updating sensor
2019-08-25 15:29:16.963 [DEBUG] [elly.internal.api.ShellyEventServlet] - CallbackServlet: HTTP/1.1 Request from xxxxxxxx:45523/shelly/event/shellyflood-6946e0/sensordata?{temp=[29.12],flood=[0],batV=[2.89]}
2019-08-25 15:29:16.965 [DEBUG] [helly.internal.handler.ShellyHandler] - Event received for device shellyflood-6946e0: class=sensordata, index=, parameters={temp=[29.12],flood=[0],batV=[2.89]}
2019-08-25 15:29:16.967 [DEBUG] [helly.internal.handler.ShellyHandler] - Trigger sensordata event, channel sensors#event, payload={"device":"shellyflood-6946e0", "class":"sensordata", "index":"","parameters":[{"temp":"29.12"}, {"flood":"0"}, {"batV":"2.89"}]}
2019-08-25 15:29:16.972 [DEBUG] [helly.internal.handler.ShellyHandler] - Request a refresh of the settings for device shellyflood-6946e0
2019-08-25 15:29:16.976 [vent.ChannelTriggeredEvent] - shelly:shellyflood:6946E0:sensors#event triggered {"device":"shellyflood-6946e0", "class":"sensordata", "index":"","parameters":[{"temp":"29.12"}, {"flood":"0"}, {"batV":"2.89"}]}
2019-08-25 15:29:18.295 [INFO ] [helly.internal.handler.ShellyHandler] - Thing config for device shellyflood-6946e0 updated.
2019-08-25 15:29:19.657 [DEBUG] [helly.internal.handler.ShellyHandler] - Refresh settings for device shellyflood-6946e0

HT is still in status Initalizing

You shouldn’t add it manually. The discovery has to bring it up.
Make sure you enabled TRACE Log: “log:set TRACE org.openhab.binding.shelly”
go to PaperUI:Inbox run the scan, maybe multiple times
check the log, maybe there is an Exception or logical constraint

Nevertheless, I see that the things gets initialized, url gets set and a callback to OH is processed.

That’s strange. Please send the log as PM, maybe I could see something.

Is that a fresh OH install?

It‘s OH 2.4.0-1
I tried discovery multiple times but it doesn’t work.
But I found this in the log:

2019-08-25 16:24:20.426 [WARN ] [re.thing.internal.ThingFactoryHelper] - Could not create channels for channel group 'sensors' for thing type 'shelly:shellyflood:6946E0', because channel group type 'shelly:floodSensor' could not be found.

Maybe it helps.

good catch, thx

Please find an updated version here:
https://github.com/markus7017/org.openhab.binding.shelly/blob/snapshot/target/org.openhab.binding.shelly-2.4.0-SNAPSHOT.jar

This version fixes the xml definition for the Flood, but also the HT sensor.

Just for validation: I ran a build also in a 2.5 build environment.
Please verify if the latest 2.4 can be installed. If not please also check the 2.5 build.
Please provide result for both version (make sure only one of them sits i the addons folder)

Yes I test both version 2.4 snd 2.5 and I still get this error…after I added to the addons folder I added to the /var/lib/openhab2/etc/org.openhab.addons.cfg binding = shelly… that is correct? and still

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-shelly' I dont know what is wrong…

ii openhab2 2.5.0~M1-1 all openhab2
ii openhab2-addons 2.5.0~M1-1 all openhab2-addons
rc openhab2-offline 2.0.0~b5 all openHAB Offline Distribution

This is my openhab version.

When You add a Binding to addons Folder, there is no need to add it into addons.cfg, this will lead to your posted error, as karaf cannot find the Binding in any repository.

ok. thannks. I just added the snapshot to the addons folder… and how will be installed?

openHAB has several folder observers and automatically installs Bindings put into the addons folder.

here is my log… something is wrong here? - https://www.dropbox.com/s/2nnhbx6f0gr1eon/Screenshot%202019-08-26%2010.18.22.png?dl=0 I dont realy see any shelly installing long…

This is the problem:

I saw that in my debugger, but thought that’s specific to my environment.
I need

  • log:set TRACE org.openhab.binding.shelly
  • bundle:list output
  • the complete log (as text file) with the 2.5 build

after restart I get this on bundle:list output

Just

bundle:list

Output means that we need the result of this command

here it is:

Sorry, please post it as text in code fences, not as a picture. This is really difficult to read.

20 │ Active │ 80 │ 5.3.1.201602281253 │ OSGi JAX-RS Connector
21 │ Active │ 80 │ 2.7.0.v20170129-0911 │ Gson: Google Json Library for Java
22 │ Active │ 80 │ 18.0.0 │ Guava: Google Core Libraries for Java
23 │ Active │ 80 │ 3.0.0.v201312141243 │ Google Guice (No AOP)
26 │ Active │ 80 │ 3.5.5 │ JmDNS
28 │ Active │ 80 │ 1.0.0 │ Units of Measurement API
30 │ Active │ 80 │ 1.1.0.Final │ Bean Validation API
31 │ Active │ 80 │ 2.0.1 │ javax.ws.rs-api
32 │ Active │ 80 │ 3.2.0.v201101311130 │ ANTLR Runtime
35 │ Active │ 80 │ 3.2.1 │ Commons Collections
36 │ Active │ 80 │ 1.1 │ Commons Exec
37 │ Active │ 80 │ 2.2.0 │ Commons IO
38 │ Active │ 80 │ 2.6 │ Commons Lang
47 │ Active │ 80 │ 4.2.2 │ Apache Karaf :: OSGi Services :: Event
63 │ Active │ 80 │ 4.6.0 │ Apache XBean OSGI Bundle Utilities
64 │ Active │ 80 │ 4.6.0 │ Apache XBean :: Classpath Resource Finder
65 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Common
66 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Ecore
67 │ Active │ 80 │ 2.11.0.v20160420-0247 │ EMF Change Model
68 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF XML/XMI Persistence
69 │ Active │ 80 │ 3.8.0.v20160509-1230 │ Common Eclipse Runtime
70 │ Active │ 80 │ 3.6.100.v20160223-2218 │ Extension Registry Support
80 │ Active │ 80 │ 9.4.12.v20180830 │ Jetty :: Proxy
94 │ Active │ 80 │ 0.4.1.v20180515-1321 │ org.eclipse.lsp4j
95 │ Active │ 80 │ 0.4.1.v20180515-1321 │ org.eclipse.lsp4j.jsonrpc
96 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome OAuth2Client
97 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Config Core
98 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Configuration Discovery
99 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Configuration mDNS Discovery
100 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Config Dispatcher
101 │ Active │ 75 │ 0.11.0.oh250M1 │ Eclipse SmartHome Config XML
102 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core
103 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Audio
104 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Binding XML
105 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core ID
106 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Persistence
107 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Scheduler Service
108 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Semantics
109 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Thing
110 │ Active │ 75 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Thing XML
111 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Transformation Service
112 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core Voice
113 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Console
114 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Console for OSGi runtime Karaf
115 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome HTTP Interface Bundle
116 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome JavaSound I/O, Fragments: 183
117 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Monitor
118 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Net I/O Bundle
119 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome REST Interface Bundle
120 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Core REST API
121 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome REST mDNS Announcer
122 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome REST Interface JAX-RS optimization Bundle
123 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Sitemap REST API
124 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome SSE REST API
125 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Voice REST API
126 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
127 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Web Audio Support
128 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Model Core
129 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Item Model
130 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Item Model IDE
131 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Item Model Runtime
132 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Language Server
133 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Persistence Model
134 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Persistence Model IDE
135 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Persistence Runtime
136 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Rule Model
137 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Rule Model IDE
138 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Rule Runtime
139 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Script
140 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Script Model IDE
141 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Script Runtime
142 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Sitemap Model
143 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Sitemap Model IDE
144 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Sitemap Runtime
145 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Thing Model
146 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Thing Model IDE
147 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Thing Model Runtime
148 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Json Storage Service
149 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome UI
150 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome UI Icons
151 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Classic IconSet
152 │ Active │ 80 │ 2.14.0.v20180522-1629 │ Xtend Runtime Library
153 │ Active │ 80 │ 2.14.0.v20180522-1629 │ Xtend Macro Interfaces
154 │ Active │ 80 │ 2.14.0.v20180522-1821 │ Xtext
155 │ Active │ 80 │ 2.14.0.v20180522-1833 │ Xtext Common Types
156 │ Active │ 80 │ 2.14.0.v20180522-1821 │ Xtext IDE Core
157 │ Active │ 80 │ 2.14.0.v20180522-1821 │ Xtext Utility
158 │ Active │ 80 │ 2.14.0.v20180522-1833 │ Xbase Model
159 │ Active │ 80 │ 2.14.0.v20180522-1833 │ Xbase Generic IDE Services
160 │ Active │ 80 │ 2.14.0.v20180522-1629 │ Xbase Runtime Library
175 │ Active │ 80 │ 1.9.6 │ MIME streaming extension
177 │ Active │ 80 │ 6.2.0 │ org.objectweb.asm
178 │ Active │ 80 │ 6.2.0 │ org.objectweb.asm.commons
179 │ Active │ 80 │ 6.2.0 │ org.objectweb.asm.tree
180 │ Active │ 90 │ 2.5.0.M1 │ openHAB Core
181 │ Active │ 80 │ 2.5.0.M1 │ openHAB Karaf Integration
183 │ Resolved │ 80 │ 2.5.0.M1 │ openHAB Sound Support, Hosts: 116
184 │ Active │ 80 │ 2.5.0.M1 │ openHAB Dashboard UI
189 │ Active │ 80 │ 1.0.2 │ Units of Measurement Common Library
190 │ Active │ 80 │ 1.0.8 │ Units of Measurement Implementation for Java SE
191 │ Active │ 80 │ 4.0.45 │ Repackaged Caucho Quercus PHP5 runtime
192 │ Active │ 80 │ 1.1.1.201605111122 │ Swagger Provider
193 │ Active │ 80 │ 2.4.5 │ Jackson-annotations
194 │ Active │ 80 │ 2.4.5 │ Jackson-core
195 │ Active │ 80 │ 2.4.5 │ jackson-databind
196 │ Active │ 80 │ 2.4.5 │ Jackson-dataformat-XML
197 │ Active │ 80 │ 2.4.5 │ Jackson-dataformat-YAML
198 │ Active │ 80 │ 2.4.5 │ Jackson-module-JAXB-annotations
199 │ Active │ 80 │ 1.5.8 │ swagger-annotations
200 │ Active │ 80 │ 1.5.8 │ swagger-core
201 │ Active │ 80 │ 1.5.8 │ swagger-jaxrs
202 │ Active │ 80 │ 1.5.8 │ swagger-models
203 │ Active │ 80 │ 3.19.0.GA │ Javassist
204 │ Active │ 80 │ 1.6.0 │ Commons Codec
205 │ Active │ 80 │ 3.2.1 │ Apache Commons Lang
206 │ Active │ 80 │ 3.3.0 │ Commons Net
207 │ Active │ 80 │ 4.2.3 │ Apache HttpClient OSGi bundle
208 │ Active │ 80 │ 4.2.3 │ Apache HttpCore OSGi bundle
209 │ Active │ 80 │ 3.1.0.7 │ Apache ServiceMix :: Bundles :: commons-httpclient
210 │ Active │ 75 │ 0.11.0.oh250M1 │ Eclipse SmartHome Map Transformation Service
211 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Basic UI, Fragments: 219
212 │ Active │ 80 │ 0.11.0.oh250M1 │ Eclipse SmartHome Paper UI, Fragments: 226
213 │ Active │ 80 │ 1.14.0.M1 │ openHAB Mqtt Action
214 │ Active │ 80 │ 2.5.0.M1 │ openHAB 1.x Compatibility Layer
215 │ Active │ 80 │ 2.5.0.M1 │ openHAB REST Documentation
216 │ Active │ 80 │ 1.14.0.M1 │ openHAB MQTT Transport Bundle
217 │ Active │ 80 │ 1.14.0.M1 │ openHAB MQTT Persistence Bundle
218 │ Active │ 80 │ 1.14.0.M1 │ openHAB RRD4j Persistence Bundle
219 │ Resolved │ 75 │ 2.5.0.M1 │ openHAB Basic UI Fragment, Hosts: 211
220 │ Active │ 80 │ 2.5.0.M1 │ CometVisu backend
221 │ Active │ 80 │ 2.5.0.M1 │ PHP support for the CometVisu backend
222 │ Active │ 80 │ 2.5.0.M1 │ HABmin User Interface
223 │ Active │ 80 │ 2.5.0.M1 │ HABot Interactive Bot
224 │ Active │ 80 │ 2.5.0.M1 │ HABPanel User Interface
225 │ Active │ 80 │ 2.5.0.M1 │ HomeBuilder User Interface
226 │ Resolved │ 75 │ 2.5.0.M1 │ openHAB Paper UI Theme Fragment, Hosts: 212
227 │ Active │ 80 │ 0.9.10.v20160429-1435 │ reflections (wrap)
228 │ Active │ 80 │ 3.1.4 │ Stax2 API
229 │ Active │ 80 │ 1.5.8.v20160511-1038 │ swagger-jersey2-jaxrs (wrap)

looks good from this side, nothing obvious missing.

Does it make sense to upgrade to 2.5M2? M2 is based on the new build system with a lot of changes. M1 is more 2.4-like so running the binding’s 2.5 build on this version is not really a proper proof.

Please copy the log with the binding’s 2.5 build (use code fence, last icon in the icon bar when composing a message here, before the settings icon)