Ewelink / Sonoff Binding - New binding without flashing

does no one support this binding anymore…?

it seems so i have problems with this addon too, but no sign of the maintainer. the github repo has no activity too. seems like an abandoned project for me. the last activity on github was in january this year, but nothing for this addon.

If someone can give me some support i can prepare a new repository.
I need also some information to understand how add new devices.

seems like Dave is not active here anymore… :frowning_face:

Is someone facing issues today with cloud being offline and not working local?

hing ‘sonoff:account:5e4dc18cb4’ changed from INITIALIZING to ONLINE (COMMUNICATION_ERROR): Cloud Offline

Hello have a sonoff TH16R2 and I am on Openhab 4.1.1.
I have used the latest fix and Access Mode: Cloud and Local shows online.

It will be happy to contribute towards maintaining this

Hi guys.
Sorry, I am still about but work commitments are just not giving me the time.

I’ll get the latest source files uploaded in the next couple of days (only the compiled versions are upto date at present) so if anyone wants to add the new devices / maintain it they can.

3 Likes

I would like to add TH, but I’m not sure how to help you on it.

1 Like

TH10, TH16 already there FYI

Hello All, I’ve one THR316D and it’s not possible on board to our binding. How can I help exporting details you need to have it work on binding?

I have the Sonoff THR316D that is the next generation of TH16. I managed to connect it through this great binding, however the temperature and humidity reading is not working. Could you please add this to a release?
I am using OH 4.2.X and binding version 4.1.
I can tell from the source code that when it parses the json, it does not find a uuid component to recognise it as item 15. The problem is that the json returns currentTemperature rather than temperature.
The following json I see in the logs:
“deviceid”:“10021f89ee”,
“txtvers”:“1”,
“data3”:“…”,
“data2”:“…”,
“apivers”:“1”,
“iv”:“…”,
“data1”:“…”,
“encrypt”:“true”,
“type”:“th_plug”,
“seq”:“16191”,
“localAddress”:“XXX.XXX.XXX.XXX”,
“params”:{
“switch”:“off”,
“startup”:“off”,
“pulseConfig”:{
“pulse”:“off”,
“switch”:“off”,
“pulseWidth”:500
},
“sledOnline”:“on”,
“tempUnit”:0,
“timeZone”:2,
“sensorType”:“AM2301”,
“currentTemperature”:“23.7”,
“currentHumidity”:“47.7”,
“tempCorrection”:0,
“humCorrection”:0,
“autoControlEnabled”:0,
“fwVersion”:“1.2.0”,
“rssi”:-54,
“staMac”:“…”,
“ssid”:“…”,
“bssid”:“…”
},
“ipaddress”:“XXX.XXX.XXX.XXX”

Managed to do it eventually. 2 changes to support the specific device Sonoff THR316D:

  • File switch-things.xml for things type 15. Rename temperature and humidity to currentTemperature and currentHumidity respectively
  • FIle SonoffDeviceState.java remove the if statement ( if (this.uiid.equals(15)) ) since uuid is not returned by the device. And I do not think it is needed for any device really.

For the above to work you have to decompile SonoffDeviceState.java and rebuild the jar with the 2 files included

1 Like

Hello any news about the current state of this Binding.
I’m new to openHab and I’d like to integrate my Sonoff MINIR4. I read that some month ago the original author said that he’s busy and cannot maintain the code. Are the updated sources available somewhere?
Thanks,
Paolo

Hello All,

I got the below email from eWelink. Did one get something similar? I disabled the binding, unfortunately:( in fear. Let me know your view, please.
I used my THR16 to rely on Local mode but it no longer works with the binding

Hi,

I am a technical staff of eWeLink platform, recently we found your eWeLink account: xyz@xyz.com uses illegal third-party tools/platforms/plug-ins, The tool/platform/plug-in overuses the CoolKit cloud platform interface services (involving GET @/v2/device/thing, GET @/v2/family, POST @/v2/user/login). If you have legitimate usage scenarios, Please download the official website client to use, or go to the developer platform to create exclusive applications, apply for free appid and use our services reasonably and legally according to the requirements of the documents. We require developers to establish websocket as far as possible to obtain real-time device status changes. As for device information, they only need to obtain it once when rendering UI. Because the data does not change, there is no need to obtain it repeatedly.

In order to ensure the security of your account, please handle this problem within 48 hours; otherwise, system risk control may be triggered, including but not limited to account login and IP blocking. Please pay attention to it and handle it in time!

Thanks!

Did someone upgrade openhab do latest version and keep using ewelink binding without any problem?

Hello,
I’m on OH.4.3.2, and the binding is working for me.
I only have one Sonoff TH16.

Hope this helps
Espresso

1 Like

Do you know if this smart water valve would work with the binding?
Regards

Is anyoned facing offline issue for openhab binding?