Control of sonoff and other brands using the ewelink platform.
Local and cloud control is available.
Device discovery included.
2.5.x and 3.x available
The binding currently has limited device support listed below, however if you send me the debug log under ‘Discovery Response’ or the file created under userdata/sonoff after adding your account I will get them added.
Please refer to the readme below. Pre-compiled Jar files are available for each branch (2.5.x and 3.x)
@LeeC77@candiesdoodle - glad to hear . Can you monitor updates coming in after 6 hours of run time. I haven’t had it up for that long without removal/adding where I’ve been testing so hopefully it logs back in again. I may have to play about with the login interval if not.
Although you can use devices offline (local mode), the binding has to send a login message every six hours to the api in order for the device to keep pushing out updates on the LAN. If you do want to entirely disable this, you can put supported devices into developer mode (untested but should work) and block the devices internet connection.
If you don’t want to put them into developer mode, you can still block the internet access and switches will function, however you wont receive updates for channels such as power,energy,current if you have the likes of a POWR2. You should however still get switch updates should it be changed from elsewhere.
also, forgot to say…
If you have been helping me test, you’ll need to remove your things and re-add as alot has changed overnight in the binding. (@Schnuecks@LeeC77 this more than likely applies to you)
So while cleaning up the code looks like I broke the switching for anything with more than 1 channel. I’ll look and update tomorrow @LeeC77 I believe the last jar I pm’d you yesterday works for the meantime
I try add the binding using the .jar file, then in OH3 UI, add “bridge” thing using “+”, but then I got " “HANDLER_INITIALIZING_ERROR”, what seems to be my problem? any idea?
Thanks.
I’ll add this in. I will at some point remove the region as a config parameter too as I can get this detected auto magically
I’ve just added a text file things example to the top post if anyone wants to set up manually. Once you have discovered and have the uuid and deviceId for each device.
There’s people using on 3.x and working, not myself as I’m still in the dark ages on 2.5.11. Have a look in the logs, should tell you whether it detects the jar and any issues.
Also… until you add an account thing discovery won’t work. The binding won’t show up under bindings (limited 3.x use but from others it seems custom jars do not show here like on 2.5.x) , but if you go to ‘things’ and click + then you’ll be able to select sonoff there
Hi, nothing seen in logs.
Binding is not shown under “thing” -> “+”.
Binding is not listed in karaf console (bundle:list)
Other manual installed addons (like broadlink) are shown in UI and console.
Can I add some debug information on console or something similar?
I’ll have a look in about an hour. Just woke up but will be going out to my machine soon, I’ll spin up a quick 3.x docker.
I’ve not tested the 3.x jar myself but other report it’s working.
Not sure regarding the console, don’t use it that often other than to change logging levels of individual bindings, but if it’s not showing up you probably can’t change the logging level