Ewelink / Sonoff Binding - New binding without flashing

Hi Dave, “Saturday night fever” is THE progress with your new Sonoff binding r7 .
I report : userdata contains sonoff file called 1038d41.txt which contains below info…
and SCAN in the UI does not show yet my device , Sonoff DW2 wifi door trap., while it seems it discovers it.
Thanks for your endless support. Moving on …
Dimitri

{"name":"DoorTrap1","deviceid":"1001038d41","apikey":"92cdd98d-13a3-4578-8e01-839a747dfc95","extra":{"uiid":102,"description":"20201022001","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:07:17:d3","mac":"d0:27:02:07:17:d2","ui":"WiFi门磁","modelInfo":"5e1541388ceaa2dd27be4af4","model":"OPL-DMA-GL","manufacturer":"深圳松诺技术有限公司"},"brandName":"SONOFF","brandLogo":"https://eu-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DW2-Wi-Fi","devConfig":{"lowVolAlarm":2.6},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1,"doorOnNotify":1,"doorOffNotify":1},"devGroups":[],"family":{"familyid":"603aa822a2965000071f8c52","index":0,"roomid":"603aa822a2965000071f8c4f"},"shareTo":[],"devicekey":"bb148e58-4ca6-43c1-82ae-730ee32fc75d","online":false,"params":{"rssi":-81,"fwVersion":"1000.2.924","battery":2.859,"type":4,"chipID":"d027020717d2","mac":"d027020717d2","switch":"on","lastUpdateTime":"2021-03-13T19:18:16.696Z","actionTime":"2021-03-13T07:38:52.800Z"},"denyFeatures":["sceneClick"]}

logs tail show 

UNINITIALIZED to INITIALIZING
21:36:59.147 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from UNINITIALIZED to INITIALIZING
21:36:59.190 [DEBUG] [onoff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:ba5c65cd1e
21:36:59.195 [INFO ] [onoff.internal.handler.HandlerAccount] - Account mode set to local
21:36:59.207 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘mqtt:topic:0788c1433c:986884791f’ changed from INITIALIZING to ONLINE
21:36:59.216 [DEBUG] [onoff.internal.handler.HandlerAccount] - Local Mode connected
21:36:59.220 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘mqtt:topic:0788c1433c:86141a6542’ changed from UNINITIALIZED to INITIALIZING
21:36:59.224 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from INITIALIZING to ONLINE
21:40:43.960 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from ONLINE to REMOVING
21:40:43.968 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from REMOVING to REMOVED
21:40:43.994 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from REMOVED to UNINITIALIZED
21:40:44.015 [DEBUG] [onoff.internal.handler.HandlerAccount] - Sonoff - Running dispose()
21:40:44.019 [ERROR] [sonoff.internal.helpers.MessageSystem] - Error Running queue:null
21:40:44.019 [DEBUG] [nding.sonoff.internal.connections.Lan] - Sonoff - Stopping LAN connection
21:40:44.022 [DEBUG] [nding.sonoff.internal.connections.Lan] - Unregistered all LAN services
21:40:46.028 [DEBUG] [sonoff.internal.connections.Websocket] - Stopping websocket client
21:40:46.053 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:ba5c65cd1e’ changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
21:43:36.916 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:3b6e0ddc10’ changed from UNINITIALIZED to INITIALIZING
21:43:36.936 [DEBUG] [onoff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:3b6e0ddc10
21:43:36.939 [INFO ] [onoff.internal.handler.HandlerAccount] - Account mode set to local
21:43:36.953 [DEBUG] [onoff.internal.handler.HandlerAccount] - Local Mode connected
21:43:36.960 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing ‘sonoff:account:3b6e0ddc10’ changed from INITIALIZING to ONLINE
21:45:31.601 [WARN ] [hab.binding.mqtt.generic.ChannelState] - Incoming payload ‘{“Time”:“2021-03-13T21:45:30”,“Uptime”:“15T12:11:53”,“UptimeSec”:1339913,“Heap”:31,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“MqttCount”:15,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“SP123”,“BSSId”:“98:DA:C4:60:2C:58”,“Channel”:11,“RSSI”:62,“Signal”:-69,“LinkCount”:1,“Downtime”:“0T00:00:06”}}’ not supported by type ‘NumberValue’
21:45:31.648 [WARN ] [rofiles.JSonPathTransformationProfile] - Could not transform state ‘0’ with function ‘JSONPATH:$.ENERGY.Voltage’ and format ‘%s’
21:45:33.902 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Stop Scan
21:45:33.912 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Start Scan
21:45:33.923 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
21:45:33.932 [DEBUG] [nding.sonoff.internal.connections.Api] - Api CountryCode changed to:+30
21:45:33.949 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Request:{“appid”:“oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq”,“nonce”:“BZpXx2oq”,“ts”:1615664733946,“version”:8,“countryCode”:"+30"}
21:45:40.210 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Response:{“requestid”:“1615664733946-BZpXx2oq”,“region”:“eu”,“error”:0}
21:45:40.229 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region changed to:eu
21:45:40.236 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Login Request:{“email":"draitsidis@yahoo.com”,“password”:“xxxxxxxxx”,“countryCode”:"+30"}
21:45:41.781 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Login Respone:{“error”:0,“msg”:"",“data”:{“user”:{“countryCode":"+30",“email”:"draitsidis@yahoo.com”,“apikey”:“92cdd98d-13a3-4578-8e01-839a747dfc95”,“accountLevel”:10,“accountConsult”:false,“denyRecharge”:false,“ipCountry”:“GR”},“at”:“ea3e6429ca88adb7ece288103fd9dc00b360c6b2”,“rt”:“c1ea20c3dcfa12ecf5c77ee195d1110579ec0c10”,“region”:“eu”}}
21:45:41.791 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Access Token changed to:ea3e6429ca88adb7ece288103fd9dc00b360c6b2
21:45:41.796 [DEBUG] [nding.sonoff.internal.connections.Api] - Api ApiKey changed to:92cdd98d-13a3-4578-8e01-839a747dfc95
21:45:41.808 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache Request:{“appid”:“oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq”,“nonce”:“SbqSjFM5”,“ts”:1615664741807,“version”:8}
21:45:42.032 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache response:{“error”:0,“msg”:"",“data”:{“thingList”:[{“itemType”:1,“itemData”:{“name”:“DoorTrap1”,“deviceid”:“1001038d41”,“apikey”:“92cdd98d-13a3-4578-8e01-839a747dfc95”,“extra”:{“uiid”:102,“description”:“20201022001”,“brandId”:“5c4c1aee3a7d24c7100be054”,“apmac”:“d0:27:02:07:17:d3”,“mac”:“d0:27:02:07:17:d2”,“ui”:“WiFi门磁”,“modelInfo”:“5e1541388ceaa2dd27be4af4”,“model”:“OPL-DMA-GL”,“manufacturer”:“深圳松诺技术有限公司”},“brandName”:“SONOFF”,“brandLogo”:“https://eu-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png",“showBrand”:true,“productModel”:“DW2-Wi-Fi”,“devConfig”:{“lowVolAlarm”:2.6},“settings”:{“opsNotify”:0,“opsHistory”:1,“alarmNotify”:1,“wxAlarmNotify”:0,“wxOpsNotify”:0,“wxDoorbellNotify”:0,“appDoorbellNotify”:1,“doorOnNotify”:1,“doorOffNotify”:1},“devGroups”:[],“family”:{“familyid”:“603aa822a2965000071f8c52”,“index”:0,“roomid”:“603aa822a2965000071f8c4f”},“shareTo”:[],“devicekey”:“bb148e58-4ca6-43c1-82ae-730ee32fc75d”,“online”:false,“params”:{“rssi”:-81,“fwVersion”:“1000.2.924”,“battery”:2.859,“type”:4,“chipID”:“d027020717d2”,“mac”:“d027020717d2”,“switch”:“on”,“lastUpdateTime”:“2021-03-13T19:18:16.696Z”,“actionTime”:“2021-03-13T07:38:52.800Z”},“denyFeatures”:[“sceneClick”]},“index”:0}],"total”:1}}
21:45:42.043 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache Received
21:45:42.060 [DEBUG] [nding.sonoff.internal.connections.Api] - Creating the device cache files
21:45:42.067 [DEBUG] [nding.sonoff.internal.connections.Api] - Creating the device cache file for device 1001038d41
21:45:42.076 [DEBUG] [ng.sonoff.internal.helpers.FileHelper] - Device 1001038d41: writing to file /var/lib/openhab/sonoff/1001038d41.txt
21:45:42.088 [DEBUG] [nding.sonoff.internal.connections.Api] - File created for device 1001038d41
21:45:43.912 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Stop Scan

Prob won’t get a chance to work on it till mon. Mother’s Day tomorrow so attention gotta be focused elsewhere.

I’ve fixed a fair bit tho but haven’t quite finished.

No rush …its only a hobby for me. First things first. I am only sending you feedback about binding r7. Everybody ave a nice weeekend . Dimitri.

Ditto.
And I have all my devices working :wink:

It’ll get there, just a bit of patience.

2.5.x: SonoffJars/org.openhab.binding.sonoff-2.5.13-SNAPSHOT_2.1r9.jar at main · delid4ve/SonoffJars · GitHub
3.x: SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_2.1r9.jar at main · delid4ve/SonoffJars · GitHub

2 Likes

Hi, thanks for the new file. Testing on a new docker instance, I can’t find scanning results, some debug logs. Could it be due to Smartthings bindings in ewelink? I’ll try removing it as well.

openhab> log:tail org.openhab.binding.sonoff
10:57:15.274 [DEBUG] [onoff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:53a9161c7a
10:57:15.277 [DEBUG] [.sonoff.internal.states.CacheProvider] - Creating directory /openhab/userdata/sonoff
10:57:15.285 [DEBUG] [onoff.internal.handler.HandlerAccount] - Local Mode connected
10:57:15.286 [DEBUG] [nding.sonoff.internal.connections.Api] - Api CountryCode changed to:+971
10:57:15.289 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"mvj16kGN","ts":1615964235288,"version":8,"countryCode":"+971"}
10:57:15.521 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.123
10:57:15.523 [ERROR] [ff.internal.messaging.MessageProvider] - The device 1000ba43e9 doesnt exist, unable to set state
10:57:15.525 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.118
10:57:15.526 [ERROR] [ff.internal.messaging.MessageProvider] - The device 1000c18c71 doesnt exist, unable to set state
10:57:15.528 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.199
10:57:15.529 [ERROR] [ff.internal.messaging.MessageProvider] - The device 1000c19f18 doesnt exist, unable to set state
10:57:15.742 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.106
10:57:15.744 [ERROR] [ff.internal.messaging.MessageProvider] - The device 1000aed035 doesnt exist, unable to set state
10:57:15.746 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.103
10:57:15.747 [ERROR] [ff.internal.messaging.MessageProvider] - The device 1000bfd602 doesnt exist, unable to set state
10:57:16.203 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Response:{"requestid":"1615964235288-mvj16kGN","region":"as","error":0}
10:57:16.206 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region changed to:as

Then I many discovery requests but I did not see any error messages, though nothing is found on the GUI.

10:59:29.655 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Start Scan
10:59:29.658 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
10:59:29.660 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"o0Kpp8X7","ts":1615964369660,"version":8}
10:59:30.128 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":3,"itemData":{"id":"5fc6884b3847590007bf8934","name":"Garden Speakers","mainDeviceId":"1000c18c71","family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-6},"params":{"switch":"off"}},"index":-6},{"itemType":1,"itemData":{"name":"Garden Speaker 2","deviceid":"1000c18c71","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":1,"description":"20191111029","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:83:16:33","mac":"d0:27:01:83:16:32","ui":"单通道插座","modelInfo":"5c700f76cc248c47441fd234","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"004C1A67","staMac":"C8:2B:96:4C:1A:67"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"BASICR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[{"groupId":"5fc6884b3847590007bf8934","type":1}],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-5,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"3542f0c9-08a3-4e04-8dd2-2e51d7697c08","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-84,"staMac":"C8:2B:96:4C:1A:67","startup":"off","init":1,"pulse":"off","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"EV","bssid":"e0:63:da:34:47:f0"},"denyFeatures":["extSwitchMode"]},"index":-5},{"itemType":1,"itemData":{"name":"Garden Speaker 1","deviceid":"1000c19f18","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":1,"description":"20191111029","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:83:3b:81","mac":"d0:27:01:83:3b:80","ui":"单通道插座","modelInfo":"5c700f76cc248c47441fd234","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00E80C29","staMac":"D8:F1:5B:E8:0C:29"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"BASICR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[{"groupId":"5fc6884b3847590007bf8934","type":1}],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-4,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"1492d3c2-3ad4-4b49-b1a0-0b83ebe54b28","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-76,"staMac":"D8:F1:5B:E8:0C:29","startup":"off","init":1,"pulse":"off","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"EV","bssid":"e0:63:da:34:47:f0"},"denyFeatures":["extSwitchMode"]},"index":-4},{"itemType":1,"itemData":{"name":"Garden Lights","deviceid":"1000ba43e9","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":2,"description":"20191022028","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:74:85:23","mac":"d0:27:01:74:85:22","ui":"双通道插座","modelInfo":"5c700f7bcc248c47441fd235","model":"PSF-B04-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00B3ED52","staMac":"D8:F1:5B:B3:ED:52"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-3,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"540b1511-ba17-4a77-8c63-e265d62536ca","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","fwVersion":"3.4.1","staMac":"D8:F1:5B:B3:ED:52","rssi":-72,"init":1,"lock":0,"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1},{"startup":"off","outlet":2},{"startup":"off","outlet":3}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1},{"pulse":"off","width":1000,"outlet":2},{"pulse":"off","width":1000,"outlet":3}],"switches":[{"switch":"off","outlet":0},{"switch":"off","outlet":1},{"switch":"off","outlet":2},{"switch":"off","outlet":3}]}},"index":-3},{"itemType":1,"itemData":{"name":"Patio Light","deviceid":"1000bfd602","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":6,"description":"20191111039","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:7f:a9:55","mac":"d0:27:01:7f:a9:54","ui":"单通道开关","modelInfo":"5c700f9ecc248c47441fd23e","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00E7815A","staMac":"D8:F1:5B:E7:81:5A"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TX1C","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-2,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"e8c8c7c6-114b-4545-b98e-df664940a9c0","online":true,"params":{"bssid":"00:00:00:00:00:00","ssid":"EV","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"off","init":1,"startup":"off","staMac":"D8:F1:5B:E7:81:5A","rssi":-87,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8,"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]}}},"index":-2},{"itemType":1,"itemData":{"name":"Kids Room Temp Sensor","deviceid":"1000aed035","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":15,"description":"20191008003","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:5d:9d:bb","mac":"d0:27:01:5d:9d:ba","ui":"恒温恒湿改装件","modelInfo":"5c700feecc248c47441fd24f","model":"PSA-BHA-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00689F4D","staMac":"CC:50:E3:68:9F:4D"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TH16R2","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-1,"roomid":"5ea0a76f4e4fc50007e5dc95"},"shareTo":[],"devicekey":"98ad2293-c831-4d11-b62f-e8b14bd69763","online":true,"params":{"timers":[],"mainSwitch":"off","deviceType":"normal","currentTemperature":"26.8","currentHumidity":"51","sensorType":"AM2301","pulseWidth":500,"pulse":"off","startup":"off","staMac":"CC:50:E3:68:9F:4D","rssi":-91,"fwVersion":"3.4.1","switch":"off","init":1,"sledOnline":"off","version":8,"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"targets":[{"targetHigh":"26.5","reaction":{"switch":"on"}},{"targetLow":"25.5","reaction":{"switch":"off"}}]},"denyFeatures":["switchWifi"]},"index":-1}],"total":6}}
11:00:18.330 [DEBUG] [sonoff.internal.connections.Websocket] - Websocket Sending Message:ping
11:00:18.331 [DEBUG] [onoff.internal.handler.HandlerAccount] - Sonoff Connection Check Running

@Emre7 have any files been created?

There’s a folder called “sonoff” in openhab_userdata folder, but inside it’s empty. Where else shall I look?

Yeah that’s where it should be. I’ve tested heavily on 2.5.x AND 3.x this time.

What’s your docker config?
Has openhab got write permissions for new sub folders?

My 2.5 is native / 3.x is docker

I’ve removed pre set classes and gone with a straight up json implementation this time around as there’s too many variables/differences for each system which was causing issues.

@Emre7 Ah… hold on. Think I see it.
Your garden speakers, can you explain how this is set up? Is it a shared device? Is it somewhat linked to other devices?

Give me 5 just recompiling

Hey @delid4ve i was trying out the latest version and i think there might be an issue with local polling with POW R2.

i used to get the below polling logs in an older version - i think a week or 10 days earlier. these are missing in the latest version. Local only mode and local polling are both enabled

2021-03-17 13:52:16.265 [DEBUG] [ff.internal.helpers.MessageConverter] - Message Type added: 1615969336265 - switch
2021-03-17 13:52:16.265 [DEBUG] [noff.internal.handler.AccountHandler] - Sending message via LAN
2021-03-17 13:52:16.266 [DEBUG] [ding.sonoff.internal.connections.Lan] - Send LAN Update to http://192.168.1.9:8081/zeroconf/switch with unencrypted payload:{}
2021-03-17 13:52:16.390 [DEBUG] [ding.sonoff.internal.connections.Lan] - Lan response received: {"seq":81,"sequence":"1615969336265","error":0}
2021-03-17 13:52:16.401 [TRACE] [noff.internal.listeners.MDNSListener] - Sonoff - LAN Service resolved:[ServiceInfoImpl@2011087929 name: 'eWeLink_XXXXXX._ewelink._tcp.local.' address: '/192.168.1.9:8081 ' status: 'NO DNS state: probing 1 task: null' is persistent, has data

@Emre7 SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_2.1r10.jar at main · delid4ve/SonoffJars · GitHub

@candiesdoodle ill have a look now.

Thanks. Now all sonoff are discovered! Great work! They did not go online though after adding, only one did. I stopped the docker container and re-started, now all went online except the Kids Room Sensor (TH16). It is online in ewelink, but offline in Openhab. What kind of debug would you need if it sticks to offline?

For others, I see one of the devices stating " * SOCKET_2 - Please let me know the model". According to thing properties, this is a “DUALR2”. It has two outputs which you can control independently. They control two wired lamps in my garden.

Garden Speaker 1 and 2 are powered speakers, each having a sonoff with single port. Then they are grouped in ewelink to create a outlet group, to turn both on and off. That group is called “Garden Speakers”.

After looking i gathered this was a group. I havent implemented groups yet but i will do, for the time being you can just create a group in openhab.

Thanks ill update this.

Yes I’ve got a few bits still to do. At the moment, if the devices are added before the files are created they don’t reinitialize, this is next on my list.

can you stop/start the binding and send me any debug logs for this device. also try in cloud mode as i noticed you were in local originally. hopefully something shows up in the logs. Could you also check the status of all the channels to see if any data is present (once you add the channel it should get populated from NULL somewhere between 0-20 seconds depending on speed of system).

@candiesdoodle found the problem, just compiling so few mins

2.5.x: SonoffJars/org.openhab.binding.sonoff-2.5.13-SNAPSHOT_v2.1r11.jar at main · delid4ve/SonoffJars · GitHub
3.x: SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_2.1r11.jar at main · delid4ve/SonoffJars · GitHub

Here’s what I got when I stopped Docker, restarted it, changed config to Cloud, stopped Account Thing and re-started. At this stage, in the GUI, all sonoff are stating " COMMUNICATION_ERROR Device is not connected to the internet", except the Kids Room Sensor which says: "“OFFLINE” as it was saying before.

13:03:24.850 [DEBUG] [nding.sonoff.internal.connections.Api] - Attempt to get websocket server
13:03:24.852 [DEBUG] [nding.sonoff.internal.connections.Api] - Websocket URL Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"MCWTQ46z","ts":1615971804852,"version":8,"accept":"ws"}
13:03:24.941 [DEBUG] [nding.sonoff.internal.connections.Api] - Websocket URL Response:{"port":8080,"IP":"18.136.178.106","reason":"ok","domain":"as-pconnect2.coolkit.cc","error":0}
13:03:24.952 [DEBUG] [noff.internal.handler.HandlerBaseDual] - Initialising device: sonoff:2:573a1a77a5:1000ba43e9
13:03:24.956 [ERROR] [nding.sonoff.internal.connections.Lan] - Unable to add service for 1000ba43e9 to lan connection
13:03:24.961 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Processing update for 1000ba43e9
13:03:24.963 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Updating connection Status for 1000ba43e9
13:03:24.964 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Completed update for 1000ba43e9
13:03:24.970 [DEBUG] [noff.internal.handler.HandlerBaseDual] - Initialising device: sonoff:1:573a1a77a5:1000c19f18
13:03:24.971 [DEBUG] [noff.internal.handler.HandlerBaseDual] - Initialising device: sonoff:6:573a1a77a5:1000bfd602
13:03:24.976 [ERROR] [nding.sonoff.internal.connections.Lan] - Unable to add service for 1000c19f18 to lan connection
13:03:24.976 [DEBUG] [off.internal.handler.HandlerBaseCloud] - Initialising device: sonoff:15:573a1a77a5:1000aed035
13:03:24.976 [DEBUG] [noff.internal.handler.HandlerBaseDual] - Initialising device: sonoff:1:573a1a77a5:1000c18c71
13:03:24.977 [ERROR] [nding.sonoff.internal.connections.Lan] - Unable to add service for 1000bfd602 to lan connection
13:03:24.983 [ERROR] [nding.sonoff.internal.connections.Lan] - Unable to add service for 1000c18c71 to lan connection                                       
13:03:25.701 [DEBUG] [sonoff.internal.connections.Websocket] - WebSocket Socket successfully connected to as-pconnect2.coolkit.cc/18.136.178.106
13:03:25.703 [DEBUG] [onoff.internal.handler.HandlerAccount] - Logging in to websocket
13:03:25.706 [DEBUG] [ff.internal.messaging.MessageProvider] - Message Type added: 1615971805703 - login
13:03:25.708 [DEBUG] [sonoff.internal.connections.Websocket] - Websocket Sending Message:{"action":"userOnline","at":"579ebc72fe70d1b7944dd664f9e19bb10dc6392c","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"2Ouoem3V","ts":1615971805,"userAgent":"app","sequence":1615971805703,"version":8}
13:03:25.800 [DEBUG] [ff.internal.messaging.MessageProvider] - Websocket received message: {"error":0,"apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","config":{"hb":1,"hbInterval":145},"sequence":"1615971805703"}
13:03:25.802 [DEBUG] [onoff.internal.handler.HandlerAccount] - Remote Mode connected
13:03:25.803 [DEBUG] [noff.internal.handler.HandlerBaseDual] - bridgeStatusChanged ONLINE for thing sonoff:1:573a1a77a5:1000c19f18
13:03:25.805 [DEBUG] [off.internal.handler.HandlerBaseCloud] - bridgeStatusChanged ONLINE for thing sonoff:15:573a1a77a5:1000aed035
13:03:25.806 [DEBUG] [noff.internal.handler.HandlerBaseDual] - bridgeStatusChanged ONLINE for thing sonoff:2:573a1a77a5:1000ba43e9
13:03:25.807 [DEBUG] [noff.internal.handler.HandlerBaseDual] - bridgeStatusChanged ONLINE for thing sonoff:6:573a1a77a5:1000bfd602
13:03:25.807 [DEBUG] [noff.internal.handler.HandlerBaseDual] - bridgeStatusChanged ONLINE for thing sonoff:1:573a1a77a5:1000c18c71
13:03:29.946 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"ouNEQr1M","ts":1615971809945,"version":8}
13:03:30.256 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":3,"itemData":{"id":"5fc6884b3847590007bf8934","name":"Garden Speakers","mainDeviceId":"1000c18c71","family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-6},"params":{"switch":"off"}},"index":-6},{"itemType":1,"itemData":{"name":"Garden Speaker 2","deviceid":"1000c18c71","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":1,"description":"20191111029","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:83:16:33","mac":"d0:27:01:83:16:32","ui":"单通道插座","modelInfo":"5c700f76cc248c47441fd234","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"004C1A67","staMac":"C8:2B:96:4C:1A:67"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"BASICR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[{"groupId":"5fc6884b3847590007bf8934","type":1}],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-5,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"3542f0c9-08a3-4e04-8dd2-2e51d7697c08","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-84,"staMac":"C8:2B:96:4C:1A:67","startup":"off","init":1,"pulse":"off","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"EV","bssid":"e0:63:da:34:47:f0"},"denyFeatures":["extSwitchMode"]},"index":-5},{"itemType":1,"itemData":{"name":"Garden Speaker 1","deviceid":"1000c19f18","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":1,"description":"20191111029","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:83:3b:81","mac":"d0:27:01:83:3b:80","ui":"单通道插座","modelInfo":"5c700f76cc248c47441fd234","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00E80C29","staMac":"D8:F1:5B:E8:0C:29"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"BASICR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[{"groupId":"5fc6884b3847590007bf8934","type":1}],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-4,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"1492d3c2-3ad4-4b49-b1a0-0b83ebe54b28","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-76,"staMac":"D8:F1:5B:E8:0C:29","startup":"off","init":1,"pulse":"off","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"EV","bssid":"e0:63:da:34:47:f0"},"denyFeatures":["extSwitchMode"]},"index":-4},{"itemType":1,"itemData":{"name":"Garden Lights","deviceid":"1000ba43e9","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":2,"description":"20191022028","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:74:85:23","mac":"d0:27:01:74:85:22","ui":"双通道插座","modelInfo":"5c700f7bcc248c47441fd235","model":"PSF-B04-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00B3ED52","staMac":"D8:F1:5B:B3:ED:52"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR2","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-3,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"540b1511-ba17-4a77-8c63-e265d62536ca","online":true,"params":{"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"version":8,"sledOnline":"on","fwVersion":"3.4.1","staMac":"D8:F1:5B:B3:ED:52","rssi":-72,"init":1,"lock":0,"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1},{"startup":"off","outlet":2},{"startup":"off","outlet":3}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1},{"pulse":"off","width":1000,"outlet":2},{"pulse":"off","width":1000,"outlet":3}],"switches":[{"switch":"off","outlet":0},{"switch":"off","outlet":1},{"switch":"off","outlet":2},{"switch":"off","outlet":3}]}},"index":-3},{"itemType":1,"itemData":{"name":"Patio Light","deviceid":"1000bfd602","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":6,"description":"20191111039","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:7f:a9:55","mac":"d0:27:01:7f:a9:54","ui":"单通道开关","modelInfo":"5c700f9ecc248c47441fd23e","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00E7815A","staMac":"D8:F1:5B:E7:81:5A"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TX1C","tags":{"m_c4e4_eren":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-2,"roomid":"5f920093ff33b50008b33324"},"shareTo":[],"devicekey":"e8c8c7c6-114b-4545-b98e-df664940a9c0","online":true,"params":{"bssid":"00:00:00:00:00:00","ssid":"EV","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"off","init":1,"startup":"off","staMac":"D8:F1:5B:E7:81:5A","rssi":-87,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8,"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]}}},"index":-2},{"itemType":1,"itemData":{"name":"Kids Room Temp Sensor","deviceid":"1000aed035","apikey":"ac1d2c64-7e8f-41d6-b857-d51133d1c4e4","extra":{"uiid":15,"description":"20191008003","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:5d:9d:bb","mac":"d0:27:01:5d:9d:ba","ui":"恒温恒湿改装件","modelInfo":"5c700feecc248c47441fd24f","model":"PSA-BHA-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00689F4D","staMac":"CC:50:E3:68:9F:4D"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"TH16R2","devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ea0a76f4e4fc50007e5dc96","index":-1,"roomid":"5ea0a76f4e4fc50007e5dc95"},"shareTo":[],"devicekey":"98ad2293-c831-4d11-b62f-e8b14bd69763","online":true,"params":{"timers":[],"mainSwitch":"off","deviceType":"normal","currentTemperature":"28.4","currentHumidity":"35","sensorType":"AM2301","pulseWidth":500,"pulse":"off","startup":"off","staMac":"CC:50:E3:68:9F:4D","rssi":-91,"fwVersion":"3.4.1","switch":"off","init":1,"sledOnline":"off","version":8,"bindInfos":{"gaction":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelinkGoogleHome"],"smartThings":["ac1d2c64-7e8f-41d6-b857-d51133d1c4e4_ewelink-smartthings-smart-home"]},"targets":[{"targetHigh":"26.5","reaction":{"switch":"on"}},{"targetLow":"25.5","reaction":{"switch":"off"}}]},"denyFeatures":["switchWifi"]},"index":-1}],"total":6}}

Then if I switch to “Local” in account thing and stop/start the account, here’s what I get in logs. All become online except the Kids Room Sensor:

13:06:00.612 [DEBUG] [onoff.internal.handler.HandlerAccount] - Sonoff - Running dispose()
13:06:00.616 [DEBUG] [nding.sonoff.internal.connections.Lan] - Sonoff - Stopping LAN connection
13:06:00.616 [ERROR] [ff.internal.messaging.MessageProvider] - Error Running queue:null
13:06:00.617 [DEBUG] [sonoff.internal.connections.Websocket] - Stopping websocket client
13:06:00.620 [DEBUG] [onoff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:573a1a77a5
13:06:00.622 [DEBUG] [.sonoff.internal.states.StateProvider] - Added new state for device 1000c18c71
13:06:00.623 [DEBUG] [.sonoff.internal.states.StateProvider] - Added new state for device 1000c19f18
13:06:00.625 [DEBUG] [.sonoff.internal.states.StateProvider] - Added new state for device 1000aed035
13:06:00.626 [DEBUG] [.sonoff.internal.states.StateProvider] - Added new state for device 1000bfd602
13:06:00.627 [DEBUG] [.sonoff.internal.states.StateProvider] - Added new state for device 1000ba43e9
13:06:00.629 [DEBUG] [onoff.internal.handler.HandlerAccount] - Local Mode connected
13:06:00.705 [DEBUG] [sonoff.internal.connections.Websocket] - Stopping websocket client
13:06:00.706 [ERROR] [sonoff.internal.connections.Websocket] - Websocket Closed, Status Code: 1000, Reason:null
13:06:01.015 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.199
13:06:01.019 [DEBUG] [ff.internal.messaging.MessageProvider] - Forwarding state to 1000c19f18
13:06:01.022 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.118
13:06:01.023 [DEBUG] [ff.internal.messaging.MessageProvider] - Forwarding state to 1000c18c71
13:06:01.026 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.123
13:06:01.029 [DEBUG] [ff.internal.messaging.MessageProvider] - Forwarding state to 1000ba43e9
13:06:01.030 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Processing update for 1000ba43e9
13:06:01.031 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Updating connection Status for 1000ba43e9
13:06:01.032 [DEBUG] [ding.sonoff.internal.handler.Handler2] - Completed update for 1000ba43e9
13:06:01.165 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.103
13:06:01.167 [DEBUG] [ff.internal.messaging.MessageProvider] - Forwarding state to 1000bfd602
13:06:01.173 [DEBUG] [ff.internal.messaging.MessageProvider] - Lan event received from 192.168.1.106
13:06:01.174 [DEBUG] [ff.internal.messaging.MessageProvider] - Forwarding state to 1000aed035

@Emre7 do the devices have access to the internet or blocked/on isolated vlan?

@Emre7 ive moved the TH16 over to lan supported as it seems it does support lan mode now.
Can you test.
The fact that nothing came online when you went into cloud mode says to me none of the devices have internet access (try restarting the docker container with the mode already set to cloud just in case theres a bug if they can access the internet) - if you have text file config then theres a known bug in openhab when updating config parameters, you would need to remove or corrupt the things file and re-add.

2.5.x: SonoffJars/org.openhab.binding.sonoff-2.5.13-SNAPSHOT_v2.1r12.jar at main · delid4ve/SonoffJars · GitHub
3.x: SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_v2.1r12.jar at main · delid4ve/SonoffJars · GitHub

Al devices are connected to internet, ewelink app can control them properly along with google assistant. I’ll try your last file and try to debug more.

Perfect …r12 works well with POW R2
Thanks!!

1 Like

Hi Dave,

Tested with Sonoff Dual R3, works perfect. Right now in cloud and local mode. Scan also worked fine. No restart or anything needed.

Will keep testing different modes.

@delid4ve does account thing needs always connected to ewelink account?

Thank you !

1 Like