Ewelink / Sonoff Binding - New binding without flashing

Tags: #<Tag:0x00007fc90e9f2c00> #<Tag:0x00007fc90e9f26d8> #<Tag:0x00007fc90e9f2340>

hey @delid4ve

hows it going
Any progress on the new one :blush:

Getting there…
Was hoping to be ready a few days ago but work/family stopped me having time.
Fingers crossed tonight/tomorrow.

2 Likes

Hi Dave! Thanks for all! Here is my log. (192.168.1.194 OpenHAB Ip Adress; 192.168.1.106 SonOff 1ch relay 5V Ip Address)

21:39:42.485 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Deactivate Background discovery
21:39:42.537 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:6:b054d6ec:10004e8b66' changed from OFFLINE (CONFIGURATION_ERROR): Device ID Doesnt Exist, please check your configuration to UNINITIALIZED
21:39:42.575 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Running dispose()
21:39:42.601 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:6:b054d6ec:10004e8b66' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
21:39:42.609 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:1:b054d6ec:1000371785' changed from OFFLINE (CONFIGURATION_ERROR): Device ID Doesnt Exist, please check your configuration to UNINITIALIZED
21:39:42.626 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Running dispose()
21:39:42.636 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:1:b054d6ec:1000371785' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
21:39:42.640 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:account:b054d6ec' changed from OFFLINE (CONFIGURATION_ERROR): api has thrown an error and is offline, binding will atempt to restart to UNINITIALIZED
21:39:42.650 [DEBUG] [onoff.internal.handler.AccountHandler] - Sonoff - Running dispose()
21:39:42.653 [DEBUG] [nding.sonoff.internal.connections.Lan] - Sonoff - Stopping LAN connection
21:39:42.673 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Deactivate Background discovery
21:39:42.688 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:account:b054d6ec' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)
21:39:51.092 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-yahooweather, openhab-action-mail, openhab-misc-restdocs'
21:40:51.775 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-yahooweather, openhab-action-mail, openhab-misc-restdocs'
21:41:53.256 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Activate Background Discovery
21:41:53.264 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Start Background Discovery
21:41:53.273 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
21:41:53.505 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:6:b054d6ec:10004e8b66' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
21:41:53.517 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:1:b054d6ec:1000371785' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
21:41:53.544 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:account:b054d6ec' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
21:41:53.566 [DEBUG] [onoff.internal.handler.AccountHandler] - Starting Api
21:41:53.598 [DEBUG] [onoff.internal.handler.AccountHandler] - Starting mDNS Client
21:41:53.624 [DEBUG] [onoff.internal.handler.AccountHandler] - Sonoff Connection Check Running
21:41:53.637 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"sB6ROekr","ts":1613853713634,"version":8,"country_code":"+34"}
21:41:54.700 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Region Response:{"requestid":"1613853713634-sB6ROekr","region":"eu","error":0}
21:41:54.715 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Login Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","ts":1613853714712,"version":8,"nonce":"rva2n1VP","email":"user_email@gmail.com","password":"password_user"}
21:41:55.289 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-yahooweather, openhab-action-mail, openhab-misc-restdocs'
21:41:56.961 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Login Response:{"at":"5b52ed8f34c1d0b602dd907495113f15e44fb657","rt":"81272c56fea9f8c700d2534920017d74b71ea5a3","user":{"clientInfo":{"model":"SM-G975F_exynos9820","os":"Android","imei":"aba41109604c927d","romVersion":"11","appVersion":"4.9.2"},"_id":"5b6e09ecefbd33864b129585","email":"email@gmail.com","password":"encripted_pass","appId":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","createdAt":"2018-08-10T21:55:56.469Z","apikey":"03b71376-e8c9-4400-99fa-11d3dbdd349c","__v":0,"lang":"en","online":false,"onlineTime":"2021-02-19T12:45:52.027Z","ip":"47.60.46.88","location":"","offlineTime":"2021-02-19T12:47:03.147Z","userStatus":"2","bindInfos":{"gaction":["ewelink-google-home-v1","ewelinkGoogleHome"],"miot":["ewelink-miot-v1"],"alexa":["26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"appInfos":[{"os":"android","appVersion":"4.9.2"}],"countryCode":"+34","currentFamilyId":"5edad45990b5320007b431b4","language":"es","extraPush":{"Uw83EKZFxdif7XFXEsrpduz5YyjP7nTl":{"type":"fcm","info":{"token":"fcKXkA50nH0:APA91bFEspIIChmQW-H1wAtwF0YYurpM9XnawvOidHjqiXU16yGcrnWGzfIvJ48aXTSdMikUtFWBt4nhwPJGlRqi5EQUcMI_hClCyJ1Y_FnT7hR9l0bM5ZapDSB6NMo_HMululnFJq_9"}}},"extra":{"ipCountry":"ES"}},"region":"eu"}
21:41:57.020 [DEBUG] [onoff.internal.handler.AccountHandler] - Performing Initial Discovery
21:41:57.029 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery Request:ChangeThatLimitURLeu-api.coolkit.cc:8080/api/user/device?lang=en&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&ts=1613853717029&version=8&getTags=1
21:41:57.035 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery Request:5b52ed8f34c1d0b602dd907495113f15e44fb657
21:41:57.515 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery response:{"error":0,"devicelist":[{"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1},"family":{"id":"5edad45990b5320007b431b4","index":0},"group":"","online":true,"shareUsersInfo":[],"groups":[],"devGroups":[],"_id":"5b6e0ad3efbd33864b12958c","name":"Lámpara Grande","type":"10","deviceid":"1000371785","apikey":"03b71376-e8c9-4400-99fa-11d3dbdd349c","extra":{"extra":{"description":"WWJG001258","brandId":"5611402280a0e2630f7b102d","apmac":"d0:27:00:6e:2c:5b","mac":"d0:27:00:6e:2c:5a","ui":"单通道插座","modelInfo":"56567f2493991b740423d34e","model":"PSA-B01-GL","manufacturer":"深圳创易智能系统有限公司","uiid":1,"staMac":"BC:DD:C2:80:33:1A","chipid":"0080331A"},"_id":"5a683926779c9e0a63ea563b"},"createdAt":"2018-08-10T21:59:47.355Z","__v":0,"onlineTime":"2021-02-17T12:04:07.712Z","ip":"88.12.5.30","location":"","params":{"pulseWidth":500,"pulse":"off","init":1,"sledOnline":"on","version":8,"bindInfos":{"miot":["03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelink-miot-v1"],"gaction":["03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelink-google-home-v1","03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelinkGoogleHome"],"alexa":["03b71376-e8c9-4400-99fa-11d3dbdd349c_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"timers":[],"rssi":-68,"staMac":"BC:DD:C2:80:33:1A","startup":"stay","fwVersion":"3.3.0","switch":"on","uiActive":60},"deviceStatus":"","offlineTime":"2021-02-17T12:01:27.095Z","tags":{"disable_timers":[{"enabled":1,"coolkit_timer_type":"repeat","at":"30 19 * * 1,2,3,4,5,6,0","type":"repeat","do":{"switch":"on"},"mId":"774761e5-aba6-c882-d28f-fb5090337240"},{"mId":"f56f314b-9992-a69b-608e-8c8c5ce3b366","do":{"switch":"off"},"type":"repeat","at":"30 22 * * 1,2,3,4,5,6,0","coolkit_timer_type":"repeat","enabled":1}],"m_349c_vict":"on"},"sharedTo":[],"devicekey":"21a44ae0-6537-4cce-999d-ca850e620333","deviceUrl":"","brandName":"Maker","showBrand":true,"brandLogoUrl":"","productModel":"S20","devConfig":{},"uiid":1},{"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1},"family":{"id":"5edad45990b5320007b431b4","index":1},"group":"","online":true,"shareUsersInfo":[],"groups":[],"devGroups":[],"_id":"5c2ea6ed295ac5f22d6b030a","name":"Puerta del garage","type":"10","deviceid":"10004e8b66","apikey":"03b71376-e8c9-4400-99fa-11d3dbdd349c","extra":{"extra":{"uiid":6,"description":"20180709001","brandId":"5735f5f906d9751d4f109629","apmac":"d0:27:00:9d:14:1d","mac":"d0:27:00:9d:14:1c","ui":"单通道开关","modelInfo":"589833ac2f979b623e2f503f","model":"PSF-B01-GL","manufacturer":"郑州市中原区汇诚电子材料经营部","staMac":"60:01:94:AE:4A:34","chipid":"00AE4A34"},"_id":"5b4748aa1844edfc4ec96354"},"createdAt":"2019-01-04T00:21:01.997Z","__v":0,"onlineTime":"2021-02-19T15:04:37.885Z","ip":"88.12.5.30","location":"","params":{"switch":"off","fwVersion":"3.5.0","startup":"stay","staMac":"60:01:94:AE:4A:34","rssi":-78,"bindInfos":{"gaction":["03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelink-google-home-v1","03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelinkGoogleHome"],"miot":["03b71376-e8c9-4400-99fa-11d3dbdd349c_ewelink-miot-v1"],"alexa":["03b71376-e8c9-4400-99fa-11d3dbdd349c_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"version":8,"sledOnline":"on","init":1,"pulse":"off","pulseWidth":1000,"only_device":{"ota":"success"},"ssid":"Wifi_User","bssid":"78:8a:20:54:29:6e","uiActive":60},"offlineTime":"2021-02-17T12:01:34.324Z","deviceStatus":"","tags":{"m_349c_vict":"on"},"sharedTo":[],"devicekey":"da60af12-8318-441e-bfe9-b15e4b92cb03","deviceUrl":"","brandName":"New Smart ","showBrand":true,"brandLogoUrl":"","productModel":"G1","devConfig":{},"uiid":6}]}
21:41:57.648 [DEBUG] [onoff.internal.handler.AccountHandler] - Initialising Local Connection
21:41:57.689 [DEBUG] [onoff.internal.handler.AccountHandler] - Local Mode Connected
21:41:57.699 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:account:b054d6ec' changed from INITIALIZING to ONLINE
21:41:57.740 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:1:b054d6ec:1000371785' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
21:41:57.751 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:6:b054d6ec:10004e8b66' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
21:41:57.797 [DEBUG] [sonoff.internal.handler.SwitchHandler] - initializeBridge ONLINE for thing sonoff:6:b054d6ec:10004e8b66
21:41:57.799 [DEBUG] [sonoff.internal.handler.SwitchHandler] - initializeBridge ONLINE for thing sonoff:1:b054d6ec:1000371785
21:41:57.815 [DEBUG] [onoff.internal.handler.AccountHandler] - Device Listener Added for deviceId: 10004e8b66
21:41:57.825 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:6:b054d6ec:10004e8b66' changed from INITIALIZING to ONLINE
21:41:57.834 [DEBUG] [onoff.internal.handler.AccountHandler] - Device Listener Added for deviceId: 1000371785
21:41:57.834 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'sonoff:1:b054d6ec:1000371785' has been updated.
21:41:57.847 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'sonoff:1:b054d6ec:1000371785' changed from INITIALIZING to ONLINE
21:41:58.150 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"RFxxZQhLjtpCu1BnDrifBiEB6cbQGcBjN6kRZcMhos/cxrBT1lnisc8eTplu9w71/S8WdmOeEiZGxJaLCs8TYEYafNuWbVWvcQDI37Z2FEPJRUtU1F0kNxKFuwpNx3ZlR0Pl3HeAbEOMdqKrTzpGuni8GVwY6ojV0VC2u4KF3ARk+vgQr6eLH/JJBjC5crpEW2Ookb2AjFf7NdkDwKNxgQ\u003d\u003d","seq":"71","iv":"NzcyMjMyNTc2NjM5NDYyOA\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"10004e8b66"}
21:41:58.171 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"off","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":1000,"rssi":-78,"ssid":"Wifi_User","bssid":"78:8a:20:54:29:6e"}
21:41:58.334 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"3CXzTPMpj0/X7OPwnLTS8NfJ9x9O+2blamufqU/9K7HeVDDepToI2PfSQ1PXz2E1HF5TnZo74QmTgu5l46Ho6Ht6FEqaHsL+I2nmZ+pB2O+pOALdX+EvbB0R1ITC9IO5","seq":"10","iv":"MTc3MTM4NzA2OTUyNTI1MQ\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"1000371785"}
21:41:58.349 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"on","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":500,"rssi":-68}
21:41:58.370 [INFO ] [smarthome.event.ItemStateChangedEvent] - LMparaGrande_Switch changed from NULL to ON
21:42:07.840 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Request:{"deviceid":"10004e8b66","version":8,"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","ts":1613853727836,"params":"{\"uiActive\":60}"}
21:42:07.842 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Request:{"deviceid":"1000371785","version":8,"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","ts":1613853727841,"params":"{\"uiActive\":60}"}
21:42:08.303 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Response :{"error":0,"deviceid":"1000371785"}
21:42:08.440 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Response :{"error":0,"deviceid":"10004e8b66"}
21:42:08.455 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"FAFFU8DO3KnFD6tghtTTMg9z3d3y2gZap/AdllCUQ6Tx1NJ1C7jfUWpKXHGMc1VUy8wy7N9LEZ8XwAMMfSolzMnADlnUO8V6Vpw/UJ2uLCp99qobRabgy0ai5Zz9b/7p","seq":"11","iv":"NTg3MzQzMDEzNjc0ODk2OA\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"1000371785"}
21:42:08.469 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"on","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":500,"rssi":-68}
21:42:08.486 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"V46OOpkPi6fOjfDTkoQEAFPpVX3P5oB6S2OCu873/lnhrGpRVHiXEgwJx7d3g5kEXdLHUzjMEGgmlt/VUtUd2JJ3VJoX4h7GbK2PTm1c1yNEbO84HuVDGeL9FUvf9l+fWbcII0TeU3kqZE65j6YIfXrcuIk+BF+5X4J39xXy/lVI6eACZcpNHMw9/BJc5VZLMXe5x5Wz3LH+ZQ6NHKmlNQ\u003d\u003d","seq":"72","iv":"MDQxNTkxNDg2ODEzMjk5Nw\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"10004e8b66"}
21:42:08.508 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"off","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":1000,"rssi":-78,"ssid":"Wifi_User","bssid":"78:8a:20:54:29:6e"}
21:42:53.294 [ERROR] [.core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-yahooweather, openhab-action-mail, openhab-misc-restdocs'
21:42:57.701 [DEBUG] [onoff.internal.handler.AccountHandler] - Sonoff Connection Check Running
21:43:08.308 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Request:{"deviceid":"1000371785","version":8,"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","ts":1613853788308,"params":"{\"uiActive\":60}"}
21:43:08.454 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Request:{"deviceid":"10004e8b66","version":8,"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","ts":1613853788454,"params":"{\"uiActive\":60}"}
21:43:08.483 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Response :{"error":0,"deviceid":"1000371785"}
21:43:08.566 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"q6wevuadPjfvjHWMBNnMPAVtgF1GKjKDCsFVk5dl9B3bKyib5IULEzVNEQYOVxp8yBuxaci9D3Qy8m72wjo/DxFDaHbIk/zbteC3q9x5gB/jQ09NTRKDAoS3xE0ZHwIA","seq":"12","iv":"NzkxNzEyNjU0MTIwMjQ2Mw\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"1000371785"}
21:43:08.577 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"on","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":500,"rssi":-68}
21:43:08.596 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Encrypted Message:{"data1":"OzWVINRfk1kInqcQf+ll0SSPFub0YXwuKIRM3THpQm2BNVZDgM8DNZvkUH5RWuaDNx1Jqd7mlzO8pm+KLBDKWCC6Dgi1yX+/9hRcrl9RR18VlLMZ2K0UgKCL6zL8w3SOXqL3OdkeeC9gtiG8hpL9Yd5tJyxVoz1g8Z+HKYH9ddMwvyBInmRQz4rEQoGOKls+zbEHkYbNXbNARwx+rQZg0A\u003d\u003d","seq":"73","iv":"MzU0MTAxNDczMTk4NTA1Ng\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","id":"10004e8b66"}
21:43:08.622 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Set Status Response :{"error":0,"deviceid":"10004e8b66"}
21:43:08.622 [DEBUG] [sonoff.internal.handler.SwitchHandler] - Sonoff - Lan Decrypted Message:{"switch":"off","startup":"stay","pulse":"off","sledOnline":"on","pulseWidth":1000,"rssi":-78,"ssid":"Wifi_User","bssid":"78:8a:20:54:29:6e"}
21:43:31.518 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
21:43:31.529 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery Request:ChangeThatLimitURLeu-api.coolkit.cc:8080/api/user/device?lang=en&appid=oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq&ts=1613853811529&version=8&getTags=1
21:43:31.542 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery Request:5b52ed8f34c1d0b602dd907495113f15e44fb657
21:43:31.849 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Discovery

I’ll have a look tomorrow as should have some time to push the latest version out. I did already implement a fix for this as I found it a couple of days ago so will work in the new version :+1:

Sorry for the delay guys, had a few bits going on so haven’t had much time to finish bug testing. Got a couple of hours left to do and will be ready, 12pm gmt tomorrow at the latest as got some spare time in the morning :+1:

1 Like

Please read the readme and below as there are a lot of breaking changes in this version.
Please report any bugs to me as i only have limited devices for testing.
If you have any issues please try clearing the cache if you are moving from an old version

New Version 2.0

  • Changed to v2 of Ewelink Api
  • Added message queue across connections with ‘no response’ warnings
  • Added further devices (UIIDs 24,27,29,30,31,81,82,83,84,107)
  • Various Bug fixes
  • Added local polling when in local only mode and device not in LAN Development mode
  • Changed consumption polling to device specific polling for POW/POWR2 devices
  • Added Zigbee Bridge and Motion Sensor, other sensors in progress

Breaking Changes
You now need to initialize your devices (create cache files) when adding the binding for the first time or when adding new devices to your ewelink account. This is to allow full offline access and to simplify the support of new devices as I just need the file created to add them.

  • deviceId (things) and id (sub things for bridges) changed to deviceid for all devices to simplify
  • cloudOnline channel added
  • localOnline channel added
  • OfflineTime channel removed as depreciated in api v2
  • OnlineTime channel removed as depreciated in apiv2
  • Added Network indicator switch channel
  • Added internal/external channels for RF remotes so user can tell from where it was activated
2 Likes

Thanks @delid4ve I’ll give this a shot tomorrow… been caught up with something today

is there a need for something more than just put jar file in the addon folder? because there are no any sonof bunding (i put it inside clean OH3.0.1).

PS i try reboot device with “sudo reboot”

You have the right version jar? (3.0 SNAPSHOT)?
You have read the Readme, specifically ‘Setup’?

Please goto things and click the + sign, do you see it there?

It seems a problem with the binding view, I read another thread in the dev section where a new binding is not showing in binding.

Edit: I have installed it and doesn’t see it either. @delid4ve

debug_sonoff_v2.txt (8.8 KB)

I’ve copied the 3.0 version on my 2.5.12 Openhab but the binding is not showing up.
is it compatible with 2.5?

No, you need the version for 2.5

Right, apologies I misunderstood the versioning.
Using 2.5.11 it appeared :+1:

1 Like

i do as usual, just put jar file to addon folder
and try to find new thing (blue +) and nothing find.

have you added an account thing? read the readme on the first post?

Guys seems to be an issue in the v3 version. Going to look at tomorrow, the old jar is still available under archived in GitHub. If any of you have the new version on v3 working would like to know so I can narrow it down.

1 Like

i can’t find “account” thing, yes read readme many times.

Yeah doesn’t work on v3. Logs:


2021-02-25 10:05:15.176 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Activate Background Discovery
2021-02-25 10:05:15.176 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Background Discovery
2021-02-25 10:05:15.176 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
2021-02-25 10:05:15.178 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Discovery threw an error:{}
java.nio.file.NoSuchFileException: null/sonoff
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) ~[?:?]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
	at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432) ~[?:?]
	at java.nio.file.Files.newDirectoryStream(Files.java:472) ~[?:?]
	at java.nio.file.Files.list(Files.java:3699) ~[?:?]
	at org.openhab.binding.sonoff.internal.Utils.getFiles(Utils.java:124) ~[bundleFile:?]
	at org.openhab.binding.sonoff.internal.MainDiscovery.discover(MainDiscovery.java:107) [bundleFile:?]
	at org.openhab.binding.sonoff.internal.MainDiscovery.startBackgroundDiscovery(MainDiscovery.java:74) [bundleFile:?]
	at org.openhab.core.config.discovery.AbstractDiscoveryService.activate(AbstractDiscoveryService.java:371) [bundleFile:?]
	at org.openhab.binding.sonoff.internal.MainDiscovery.activate(MainDiscovery.java:55) [bundleFile:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) [bundleFile:?]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [bundleFile:?]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) [bundleFile:?]
	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) [bundleFile:?]
	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317) [bundleFile:?]
	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:340) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:114) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:982) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:955) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:756) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:666) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:432) [bundleFile:?]
	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:665) [bundleFile:?]
	at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:338) [bundleFile:?]
	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:382) [bundleFile:?]
	at org.apache.felix.scr.impl.Activator.access$200(Activator.java:49) [bundleFile:?]
	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:264) [bundleFile:?]
	at org.apache.felix.scr.impl.AbstractExtender.createExtension(AbstractExtender.java:196) [bundleFile:?]
	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:169) [bundleFile:?]
	at org.apache.felix.scr.impl.AbstractExtender.modifiedBundle(AbstractExtender.java:49) [bundleFile:?]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482) [osgi.core-6.0.0.jar:?]
	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415) [osgi.core-6.0.0.jar:?]
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232) [osgi.core-6.0.0.jar:?]
	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444) [osgi.core-6.0.0.jar:?]
	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.container.Module.start(Module.java:467) [org.eclipse.osgi-3.12.100.jar:?]
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) [org.eclipse.osgi-3.12.100.jar:?]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]

1 Like

Hi Dave,

I’m having the same problem of not able to load the binding. I have to fall back to version 3.0.0.202102041157 and it works again.
FYI, I’m using OH3.1.0 snapshot.

Thanks.
Patrick

Could somebody try these please, both seem to be working here, couldn’t find anything wrong with why the binding wouldn’t load so can only assume there was an issue with the build system when i compiled them.

org.openhab.binding.sonoff-3.1.0-SNAPSHOT.jar.txt (149.0 KB)
org.openhab.binding.sonoff-3.0.0-SNAPSHOT.jar.txt (149.0 KB)

1 Like