Ewelink / Sonoff Binding - New binding without flashing

Good to hear that :slight_smile:

Hope that @delid4ve will be able to come back soon (or at least update the git repo)

@delid4ve

Can I suggest that you publish your binding in the new Marketplace? It’s an easy way to self publish a new binding for testing, and people can download and install it from within openhab easily.

There is no review or anything of the code or binding, (of course there are a few rules to follow, this is openHAB we are talking about).

I developed a similar interface to ewelink a while back (in python), and I have a specific device I would like to add (3rd party, not Sonoff) to your binding. If you could update your github, i will attempt to add it in.

Thanks.

Hey, I just installed this binding and I’m having an issue. I set the binding for Cloud Only since the device I’m controlling is in a different location. It’s a Sonoff S31 and it was discovered as thing type POWR2 which looks right.

I made an Item for the switch channel. On startup, it correctly reads the state of the switch, and I can toggle it… but only once. If I tell it to turn on or off, it does execute that action, but the switch state soon reverts back in OH. I get this in the log:

2022-02-12 16:23:10.269  410413 INFO  nal.discovery.SonoffDiscoveryService - Discovered device XXX
2022-02-12 16:23:10.276  410413 INFO  g.discovery.internal.PersistentInbox - Added new thing 'sonoff:32:ewelink:XXX' to inbox.
2022-02-12 16:23:35.278  410413 ERROR l.connection.SonoffConnectionManager - Unable to add lan service for device XXX as the connection is offline
2022-02-12 16:24:15.074  410413 WARN  unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701054059, command was uiActive, retrying again. Retry count 2
2022-02-12 16:28:15.064  410413 WARN  unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701294063, command was uiActive, retrying again. Retry count 2
2022-02-12 16:28:16.166  410413 WARN  unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701294063, command was uiActive, retrying again. Retry count 3
2022-02-12 16:28:17.268  410413 WARN  unication.SonoffCommunicationManager - Unable to send transaction 1644701294063, command was uiActive, after 3 retry attempts
2022-02-12 16:30:15.066  410413 WARN  unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701414064, command was uiActive, retrying again. Retry count 2
2022-02-12 16:30:16.168  410413 WARN  unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701414064, command was uiActive, retrying again. Retry count 3
2022-02-12 16:30:17.270  410413 WARN  unication.SonoffCommunicationManager - Unable to send transaction 1644701414064, command was uiActive, after 3 retry attempts

and it just repeats like that. If I bundle:restart it then it will correctly read the new state, and allow one more toggle. So basically it works as long as I bundle:restart it after every toggle.

I see some other instances of this error in the thread but none of them seem relevant. Any suggestions?

Hello, I’m facing the same issue. … did you get is solved?

I just figure out that command for switch is not working with below error. However it works to receive ON/OFF when I do it via ewelink app.

`2022-02-22 22:01:36.750 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1645578095747, command was switch, retrying again. Retry count 2

2022-02-22 22:01:37.856 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1645578095747, command was switch, retrying again. Retry count 3

2022-02-22 22:01:38.963 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1645578095747, command was switch, after 3 retry atte`mpts

Hello everyone!

I’m another one, with the same problem… I couldn’t solve anything with the topics here.

I have openHAB running on Debian, on an OrangePi One, everything works great.

I tried to install this binding, with a ‘wget openhab-sonoff-compiled/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar at main · delid4ve/openhab-sonoff-compiled · GitHub’ in the folder " /usr/share/openhab/addons". As mentioned in the topics.

after that i created a file called “sonoff.things” in “/etc/openhab/things/” with the credentials

Bridge sonoff:account:Myname “Sonoff Account” @ “myLocation”
[ email=“My_ewelink_email”, password=“My_ewelink_password”,accessmode=“mixed”]
As our friend René helped me on the link, with a step by step, here

after that, accessing openhab via terminal “ssh -p 8101 openhab@localhost”,
I already tried to bundle: start org.openhab…;
I already tried to give bundle:install org.openhab…;
I already tried to check the log:tail;
And nothing appears.

Returns:

> openhab> bundle:start org.openhab.binding.sonoff-3.2.0
> Error executing command: No matching bundles
> 
> openhab> bundle:install https://github.com/delid4ve/openhab-sonoff-compiled/blob/main/3.x Archive/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5r3.jar
> Bundle IDs:
> Error executing command: Error installing bundles:
>         Unable to install bundle https://github.com/delid4ve/openhab-sonoff-compiled/blob/main/3.x: org.osgi.framework.BundleException: Error reading bundle content.
>         Unable to install bundle Archive/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5r3.jar: org.osgi.framework.BundleException: Error reading bundle content.
> 
> openhab> bundle:install /user/share/openhab/addons/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5r3.jar
> Bundle IDs:
> Error executing command: Error installing bundles:
>         Unable to install bundle /user/share/openhab/addons/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5r3.jar: org.osgi.framework.BundleException: Error reading bundle content.

If anyone knows how to help, a step by step would be welcome
Thanx for the attention.

regards,
Marlon

So you have a file org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar in /usr/share/openhab/addons right?

If so, you shouldn’t have to do anything, it will get automatically loaded. It might not work if it has dependencies though (they don’t get automatically loaded).

Can you post what you get if you log in to the karaf console and enter list? You should see the sonoff binding listed and it’s status. If it’s not Active it might mean that it’s waiting for some dependency to be loaded.

What is sitting in your inbox? can you add the sonoff bridge there?

1 Like

thanx for your feedback Nicholas!

So you have a file org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar in /usr/share/openhab/addons right?

this way, right?
Sem título0

Can you post what you get if you log in to the karaf console and enter list? You should see the sonoff binding listed and it’s status. If it’s not Active it might mean that it’s waiting for some dependency to be loaded.

I can’t find it :confused: see below

root@OrangePi:/usr/share/openhab/addons# ssh -p 8101 openhab@localhost
Password authentication
Password:

                       _   _     _     ____

___ ___ ___ ___ | | | | / \ | __ )
/ _ \ / _ \ / _ \ / _ \ | || | / _ \ | _
| (
) | () | __/| | | || _ | / ___ \ | |) )
___/| / _/|| |||| ||// _|__/
|
| 3.2.0 - Release Build

Use ‘’ for a list of available commands
and ‘[cmd] --help’ for help on a specific command.
To exit, use ‘’ or ‘logout’.

openhab> list
START LEVEL 100 , List Threshold: 50
ID │ State │ Lvl │ Version │ Name
────┼──────────┼─────┼───────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
29 │ Active │ 80 │ 2.12.5 │ Jackson-annotations
30 │ Active │ 80 │ 2.12.5 │ Jackson-core
31 │ Active │ 80 │ 2.12.5 │ jackson-databind
32 │ Active │ 80 │ 2.12.5 │ Jackson-dataformat-YAML
33 │ Active │ 80 │ 2.12.5 │ Jackson datatype: JSR310
34 │ Active │ 80 │ 6.2.6 │ Woodstox
35 │ Active │ 80 │ 2.8.6 │ Gson
36 │ Active │ 80 │ 27.1.0.jre │ Guava: Google Core Libraries for Java
37 │ Active │ 80 │ 30.1.0.jre │ Guava: Google Core Libraries for Java
38 │ Active │ 80 │ 1.0.1 │ Guava InternalFutureFailureAccess and InternalFutures
39 │ Active │ 80 │ 3.0.0.v201312141243 │ Google Guice (No AOP)
41 │ Active │ 80 │ 4.8.35.v20190528-1517 │ ClassGraph
42 │ Active │ 80 │ 2.1.9 │ swagger-annotations
43 │ Active │ 80 │ 2.1.9 │ swagger-core
44 │ Active │ 80 │ 2.1.9 │ swagger-integration
45 │ Active │ 80 │ 2.1.9 │ swagger-jaxrs2
46 │ Active │ 80 │ 2.1.9 │ swagger-models
47 │ Active │ 80 │ 2.0.2 │ Jakarta Bean Validation API
49 │ Active │ 80 │ 2.3.3 │ Jakarta XML Web Services API
52 │ Active │ 80 │ 3.5.7 │ JmDNS
53 │ Active │ 80 │ 2.1.3 │ Units of Measurement API
55 │ Active │ 80 │ 0.5.10 │ Jollyday
56 │ Active │ 80 │ 3.2.0.v201101311130 │ ANTLR Runtime
57 │ Active │ 80 │ 1.2.2 │ org.apache.aries.component-dsl.component-dsl
58 │ Active │ 80 │ 1.0.1 │ Apache Aries JAX-RS Specification API
59 │ Active │ 80 │ 2.0.0 │ Apache Aries JAX-RS Whiteboard
61 │ Active │ 80 │ 3.12.0 │ Apache Commons Lang
62 │ Active │ 80 │ 3.4.5 │ Apache CXF Core
63 │ Active │ 80 │ 3.4.5 │ Apache CXF Runtime JAX-RS Frontend
64 │ Active │ 80 │ 3.4.5 │ Apache CXF JAX-RS Client
65 │ Active │ 80 │ 3.4.5 │ Apache CXF JAX-RS Server-Side Events Support
66 │ Active │ 80 │ 3.4.5 │ Apache CXF Runtime Security functionality
67 │ Active │ 80 │ 3.4.5 │ Apache CXF Runtime HTTP Transport
76 │ Active │ 80 │ 4.3.4 │ Apache Karaf :: OSGi Services :: Event
87 │ Active │ 80 │ 1.0.0.2 │ Apache ServiceMix :: Bundles :: javax.inject
95 │ Active │ 80 │ 2.2.5 │ XmlSchema Core
96 │ Active │ 80 │ 4.20.0 │ Apache XBean :: OSGI Bundle Utilities
97 │ Active │ 80 │ 4.20.0 │ Apache XBean :: Classpath Resource Finder
98 │ Active │ 80 │ 0.7.7 │ jose4j
99 │ Active │ 80 │ 2.17.0.v20190920-0401 │ EMF Common
100 │ Active │ 80 │ 2.20.0.v20190920-0401 │ EMF Ecore
101 │ Active │ 80 │ 2.14.0.v20190528-0725 │ EMF Change Model
102 │ Active │ 80 │ 2.16.0.v20190528-0725 │ EMF XML/XMI Persistence
103 │ Active │ 80 │ 3.13.0.v20200828-1034 │ Common Eclipse Runtime
132 │ Active │ 80 │ 0.10.0.v20201105-1103 │ org.eclipse.lsp4j
133 │ Active │ 80 │ 0.10.0.v20201105-1103 │ org.eclipse.lsp4j.jsonrpc
134 │ Active │ 80 │ 2.25.0.v20210301-0821 │ Xtend Runtime Library
135 │ Active │ 80 │ 2.25.0.v20210301-0821 │ Xtend Macro Interfaces
136 │ Active │ 80 │ 2.25.0.v20210301-0843 │ Xtext
137 │ Active │ 80 │ 2.25.0.v20210301-0909 │ Xtext Common Types
138 │ Active │ 80 │ 2.25.0.v20210301-0843 │ Xtext IDE Core
139 │ Active │ 80 │ 2.25.0.v20210301-0843 │ Xtext Utility
140 │ Active │ 80 │ 2.25.0.v20210301-0909 │ Xbase Model
141 │ Active │ 80 │ 2.25.0.v20210301-0909 │ Xbase Generic IDE Services
142 │ Active │ 80 │ 2.25.0.v20210301-0821 │ Xbase Runtime Library
146 │ Active │ 80 │ 9.2.0 │ org.objectweb.asm
147 │ Active │ 80 │ 9.2.0 │ org.objectweb.asm.commons
148 │ Active │ 80 │ 9.2.0 │ org.objectweb.asm.tree
149 │ Active │ 80 │ 9.2.0 │ org.objectweb.asm.tree.analysis
150 │ Active │ 80 │ 9.2.0 │ org.objectweb.asm.util
151 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Core
152 │ Waiting │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Marketplace Add-on Services
153 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Community Marketplace Add-on Service :: Karaf
154 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Audio
155 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: JAAS Authentication
156 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: OAuth2Client
157 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Automation
158 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Automation Media Modules
159 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Automation Script Modules
160 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Automation Script RuleSupport
161 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Automation REST API
162 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Binding XML
163 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration Core
164 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration Discovery
165 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration mDNS Discovery
166 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration Dispatcher
167 │ Active │ 75 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration XML
168 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Ephemeris
169 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: ID
170 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Console
171 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
172 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: HTTP Interface
173 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: HTTP Interface Authentication
175 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Monitor
176 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Network I/O
177 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: REST Interface
178 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Audio REST Interface
179 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Authentication Support for the REST Interface
180 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: REST Interface :: Core
181 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: REST mDNS Announcer
182 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Sitemap REST Interface
183 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: SSE Interface
184 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: REST Interface :: Swagger 1
185 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: UI REST Interface
186 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Voice REST Interface
187 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: mDNS Service
188 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Karaf Integration
189 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Core
190 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Items
191 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Item IDE
192 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Items Runtime
193 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Language Server
194 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Persistence
195 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Persistence IDE
196 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Persistence Runtime
197 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Rules
198 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Rule IDE
199 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Rules Runtime
200 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Script
201 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Script IDE
202 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Script Runtime
203 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Sitemap
204 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Sitemap IDE
205 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Sitemap Runtime
206 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Thing
207 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Thing IDE
208 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Model Thing Runtime
209 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Persistence
210 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Semantics
211 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: JSON Storage
212 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Thing
213 │ Active │ 75 │ 3.2.0 │ openHAB Core :: Bundles :: Thing XML
214 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Transformation Service
215 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: UI
216 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: UI Icon Support
217 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Voice
218 │ Active │ 80 │ 3.2.0 │ openHAB UI :: Bundles :: Main UI
225 │ Active │ 80 │ 1.0.0.201802012106 │ org.osgi:org.osgi.service.jaxrs
226 │ Active │ 80 │ 1.5.0 │ ThreeTen-Extra
227 │ Active │ 80 │ 1.27.0 │ SnakeYAML
228 │ Active │ 80 │ 2.1 │ SI Units
229 │ Active │ 80 │ 2.1.0 │ SI Quantities
230 │ Active │ 80 │ 4.2.1 │ Stax2 API
231 │ Active │ 80 │ 2.1.2 │ Units of Measurement Reference Implementation
232 │ Active │ 80 │ 2.1.0 │ Units of Measurement Common Library for Java
233 │ Active │ 80 │ 1.4.18 │ XStream Core
280 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Telegram Binding
281 │ Active │ 80 │ 2.27 │ Dagger
282 │ Active │ 80 │ 1.2.2 │ hivemq-mqtt-client
283 │ Active │ 80 │ 4.1.68.Final │ Netty/Buffer
284 │ Active │ 80 │ 4.1.68.Final │ Netty/Codec
285 │ Active │ 80 │ 4.1.68.Final │ Netty/Codec/HTTP
286 │ Active │ 80 │ 4.1.68.Final │ Netty/Codec/Socks
287 │ Active │ 80 │ 4.1.68.Final │ Netty/Common
288 │ Active │ 80 │ 4.1.68.Final │ Netty/Handler
289 │ Active │ 80 │ 4.1.68.Final │ Netty/Handler/Proxy
290 │ Active │ 80 │ 4.1.68.Final │ Netty/Resolver
291 │ Active │ 80 │ 4.1.68.Final │ Netty/Transport
292 │ Active │ 80 │ 4.1.68.Final │ Netty/Transport/Native/Epoll
293 │ Active │ 80 │ 4.1.68.Final │ Netty/Transport/Native/Unix/Common
294 │ Active │ 80 │ 2.2.19 │ rxjava
295 │ Active │ 80 │ 5.2.1 │ nrjavaserial
296 │ Active │ 80 │ 3.7.2 │ Apache Commons Net
297 │ Active │ 80 │ 1.9.3 │ Apache OpenNLP Tools
298 │ Active │ 80 │ 2.1.2 │ Java Concurrency Tools Core Library
299 │ Active │ 80 │ 2.6.0 │ JUPnP Library
300 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Chromecast Binding
301 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Kodi Binding
302 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: LG HomBot Binding
303 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: LG TV Serial Binding
304 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: LG webOS Binding
305 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
306 │ Active │ 81 │ 3.2.0 │ openHAB Add-ons :: Bundles :: MQTT EspMilightHub
307 │ Active │ 81 │ 3.2.0 │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
308 │ Active │ 82 │ 3.2.0 │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
309 │ Active │ 82 │ 3.2.0 │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
310 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Nest Binding
311 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: TP-Link Smart Home Binding
312 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration UPnP Discovery
313 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery
314 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery for Linux using sysfs scanning
315 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration USB-Serial Discovery using ser2net mDNS scanning
316 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Configuration Serial
317 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: MQTT Transport
318 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Serial Transport
319 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Serial Transport for RXTX
320 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: Serial Transport for RFC2217
321 │ Active │ 80 │ 3.2.0 │ openHAB Core :: Bundles :: UPnP Transport
322 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Persistence Service :: RRD4j
323 │ Active │ 80 │ 3.2.0 │ openHAB UI :: Bundles :: Basic UI
324 │ Active │ 80 │ 3.2.0 │ openHAB UI :: Bundles :: HABot Interactive Bot
325 │ Active │ 80 │ 3.2.0 │ openHAB UI :: Bundles :: HABPanel UI
326 │ Active │ 80 │ 3.2.0 │ openHAB UI :: Bundles :: Icon Set :: Classic
327 │ Active │ 80 │ 1.0.3 │ reactive-streams
328 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Twitter Binding
329 │ Active │ 80 │ 5.9.0 │ jna
330 │ Resolved │ 80 │ 5.9.0 │ jna-platform
331 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Systeminfo Binding
332 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: Spotify Binding
333 │ Active │ 80 │ 1.0.1 │ IO.Socket Engine Client
334 │ Active │ 80 │ 1.0.1 │ IO.Socket Socket Client
335 │ Active │ 80 │ 20180813.0.0 │ JSON in Java
336 │ Active │ 80 │ 3.8.1.1 │ Apache ServiceMix :: Bundles :: okhttp
337 │ Active │ 80 │ 1.13.0.1 │ Apache ServiceMix :: Bundles :: okio
338 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector
339 │ Active │ 80 │ 3.2.0 │ openHAB Add-ons :: Bundles :: IO :: Metrics Service

What is sitting in your inbox? can you add the sonoff bridge there?

neither here !


Thanx for your attention!
regards,
Marlon

I recently re-installed openhab and had problems with the .jar file. I downloaded the org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar
with wget on the raspberry but then it would not work although the file was existing in /usr/share/openhab/addons.

Later I downloaded the file on windows from here: openhab-sonoff-compiled/org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar at main · delid4ve/openhab-sonoff-compiled · GitHub (using the download button).

Then I transferred the file to the raspberry with WinSCP and it worked immediately.

Since yesterday the cloud connection doesn’t work anymore:
COMMUNICATION_ERROR
Cloud Offline

Is anybody else experiencing the same?

EDIT: it just solved by itself, probably was an issue with ewelink servers

For me, it just works perfectly! :slight_smile:

Thank you so much.

Binding installed, no issues, found my single basic switch, again no issues, however the device remains offline.

2022-05-18 09:41:36.947 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
2022-05-18 09:41:40.724 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2022-05-18 09:41:40.735 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from INITIALIZING to OFFLINE ```

I dont appear to be able to change the logging level
openhab> log:set TRACE  org.openhab.binding.sonoff
Error executing command: Unable to set level for logger

Any tips please?

Initializing handler for thing ‘sonoff:account:49006d9d86’ takes more than 5000ms.

Version: 3.2.0 (Build)
org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar

very high CPU usage of whole openhab java instance


2022-05-31 13:56:40.615 [INFO ] [nternal.handler.SonoffAccountHandler] - Sonoff Access Mode set to: mixed
2022-05-31 13:56:45.629 [WARN ] [core.thing.internal.ThingManagerImpl] - Initializing handler for thing 'sonoff:account:49006d9d86' takes more than 5000ms.
2022-05-31 13:57:28.890 [ERROR] [connection.SonoffWebSocketConnection] - Websocket Closed, Status Code: 1006, Reason:Disconnected
2022-05-31 13:58:31.214 [ERROR] [connection.SonoffWebSocketConnection] - Websocket Closed, Status Code: 1006, Reason:Disconnected
2022-05-31 13:59:33.814 [ERROR] [connection.SonoffWebSocketConnection] - Websocket Closed, Status Code: 1006, Reason:Disconnected

any ideas?

Hi.

Thank you for this binding. It works great with openhab 3.2.
Can it be released for openhab 3.3 too ?

Regards.

Hi,I see issues with logging in, because cannot get where to change the country code, and default “+1” is used. Could you please assist? Installed binding as a jar into /addons folder.

{“error”:407,“msg”:“appid is unauthorized! oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq”,“data”:null}

Want to use it with my wifi pump for balcony plants (FW Name in Sonos app: PDF-B04-GL)

Is there a plan to sometime release this as an official binding?
Recently it stopped responding and does not work for me anymore. I did no change in the account and devices connected. The eWelink app responds normally to the devices. Only OH3.2 jar stopped responding.

I experience the same issue since yesterday. The openhab “Sonoff account thing” gets stuck in “INITIALIZING” state. checked with OH 3.2, 3.3

Same problem here. Didn’t change anything, Ewelink app working without any problem, but the OH3 binding stopped functioning.

Same connection problem here:

2022-07-07 19:59:43.115 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 1000fe4aaa
2022-07-07 19:59:44.124 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1657216783115, command was uiActive, retrying again. Retry count 2
2022-07-07 19:59:44.229 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 1000fe4aaa
2022-07-07 19:59:45.231 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1657216783115, command was uiActive, retrying again. Retry count 3
2022-07-07 19:59:45.334 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 1000fe4aaa
2022-07-07 19:59:46.336 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1657216783115, command was uiActive, after 3 retry attempts
2022-07-07 19:59:46.438 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 100107e752
2022-07-07 19:59:47.440 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1657216783115, command was uiActive, after 3 retry attempts

Same here… Debug log:

2022-07-08 12:38:50.365 [DEBUG] [nternal.handler.SonoffAccountHandler] - Running Activation task
2022-07-08 12:38:50.366 [DEBUG] [unication.SonoffCommunicationManager] - Added a message to the queue
2022-07-08 12:38:50.366 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 100149xxxx
2022-07-08 12:38:51.372 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1657258730366, command was uiActive, retrying again. Retry count 2
2022-07-08 12:38:51.473 [DEBUG] [unication.SonoffCommunicationManager] - Message queue is running
2022-07-08 12:38:51.473 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 100149xxxx
2022-07-08 12:38:51.795 [DEBUG] [nternal.handler.SonoffAccountHandler] - Running connection check task
2022-07-08 12:38:51.795 [DEBUG] [l.connection.SonoffConnectionManager] - Connection Check Running for mixed mode 
2022-07-08 12:38:51.795 [DEBUG] [ernal.connection.SonoffApiConnection] - Api Login Request:{"email":"xxx@xxx.com","password":"xxxxxxxx","countryCode":"+1"}
2022-07-08 12:38:52.474 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1657258730366, command was uiActive, retrying again. Retry count 3
2022-07-08 12:38:52.579 [DEBUG] [unication.SonoffCommunicationManager] - Message queue is running
2022-07-08 12:38:52.579 [ERROR] [unication.SonoffCommunicationManager] - Cannot send command uiActive, all connections are offline for deviceid 100149xxxx
2022-07-08 12:38:52.787 [DEBUG] [ernal.connection.SonoffApiConnection] - Api Login Response:{"error":407,"msg":"appid is unauthorized! oeVkj2lYFGnJu5XXXXXXXXXXXXXXXXX","data":{}}
2022-07-08 12:38:52.788 [DEBUG] [l.connection.SonoffConnectionManager] - Api disconnected
2022-07-08 12:38:52.789 [DEBUG] [connection.SonoffWebSocketConnection] - Stopping websocket client
2022-07-08 12:38:53.587 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1657258730366, command was uiActive, after 3 retry attempts
2022-07-08 12:38:53.688 [DEBUG] [unication.SonoffCommunicationManager] - Message queue is running

Looks like the problem occurs on other sonoff-implementations too:

@delid4ve Would you have time to have a quick look please?

1 Like