Ewelink / Sonoff Binding - New binding without flashing

Hi Dave,

Here is the output of Scan. Nothing appears after scan. I m not able to find any file in userdata location.

2021-03-11 22:20:14.495 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan

2021-03-11 22:20:14.501 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery

2021-03-11 22:20:14.507 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"Removed","nonce":"jlPJXhM4","ts":1615481414506,"version":8}

2021-03-11 22:20:15.038 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Bedroom Switches","deviceid":"1001220145","apikey":"REmoved","extra":{"uiid":126,"description":"20201224004","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:43:ff:db","mac":"d0:27:02:43:ff:da","ui":"多功能双通道电量检测开关","modelInfo":"5f1e478208bb4f51db013bc5","model":"E32-2SW-P0","manufacturer":"深圳松诺技术有限公司","staMac":"7C9EBDCD9FAC"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR3","tags":{"m_31d5_amin":"on","ck_channel_name":{"0":"Light","1":"Fan"}},"devConfig":{"timerCount":"16/28"},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ee6563aa70695000834d101","index":0,"roomid":"5ee6563aa70695000834d0ff"},"shareTo":[],"devicekey":"Removed","online":true,"params":{"version":7,"workMode":1,"swMode_00":2,"swMode_01":2,"swReverse_00":0,"swReverse_01":0,"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1}],"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1}],"motorSwMode":0,"motorSwReverse":0,"outputReverse":0,"motorTurn":0,"calibState":0,"currLocation":0,"location":0,"sledBright":100,"staMac":"7C9EBDCD9FAC","rssi":-70,"overload_00":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"overload_01":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"oneKwhState_00":0,"startTime_00":"","endTime_00":"","oneKwhState_01":0,"startTime_01":"","endTime_01":"","oneKwhData_00":0,"oneKwhData_01":0,"current_00":0,"voltage_00":25721,"actPow_00":0,"reactPow_00":0,"apparentPow_00":0,"current_01":0,"voltage_01":25721,"actPow_01":0,"reactPow_01":0,"apparentPow_01":0,"fwVersion":"1.1.0","timeZone":5.5,"zyx_clear_timers":true,"getKwh_00":2,"getKwh_01":2,"uiActive":{"outlet":1,"time":60}}},"index":0}],"total":1}}

2021-03-11 22:20:24.495 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan

@tizen ive added some additional debug logging in to see whats going on. I have an idea so just want to see if its the case. do the same again with this SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_v2.1r5.jar at main · delid4ve/SonoffJars · GitHub

Same result nothing appears. No file in userdata location.

2021-03-11 22:29:23.006 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan

2021-03-11 22:29:23.012 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery

2021-03-11 22:29:23.019 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"Remvoed","nonce":"FZmRAJfO","ts":1615481963018,"version":8}

2021-03-11 22:29:23.693 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Bedroom Switches","deviceid":"1001220145","apikey":"Removed","extra":{"uiid":126,"description":"20201224004","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:43:ff:db","mac":"d0:27:02:43:ff:da","ui":"多功能双通道电量检测开关","modelInfo":"5f1e478208bb4f51db013bc5","model":"E32-2SW-P0","manufacturer":"深圳松诺技术有限公司","staMac":"7C9EBDCD9FAC"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR3","tags":{"m_31d5_amin":"on","ck_channel_name":{"0":"Light","1":"Fan"}},"devConfig":{"timerCount":"16/28"},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ee6563aa70695000834d101","index":0,"roomid":"5ee6563aa70695000834d0ff"},"shareTo":[],"devicekey":"21890842-566d-4198-8e0d-9457443a672a","online":true,"params":{"version":7,"workMode":1,"swMode_00":2,"swMode_01":2,"swReverse_00":0,"swReverse_01":0,"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1}],"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1}],"motorSwMode":0,"motorSwReverse":0,"outputReverse":0,"motorTurn":0,"calibState":0,"currLocation":0,"location":0,"sledBright":100,"staMac":"7C9EBDCD9FAC","rssi":-70,"overload_00":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"overload_01":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"oneKwhState_00":0,"startTime_00":"","endTime_00":"","oneKwhState_01":0,"startTime_01":"","endTime_01":"","oneKwhData_00":0,"oneKwhData_01":0,"current_00":0,"voltage_00":25721,"actPow_00":0,"reactPow_00":0,"apparentPow_00":0,"current_01":0,"voltage_01":25721,"actPow_01":0,"reactPow_01":0,"apparentPow_01":0,"fwVersion":"1.1.0","timeZone":5.5,"zyx_clear_timers":true,"getKwh_00":2,"getKwh_01":2,"uiActive":{"outlet":1,"time":60}}},"index":0}],"total":1}}

2021-03-11 22:29:27.689 [DEBUG] [onoff.internal.connections.Websocket] - Websocket Sending Message:ping

2021-03-11 22:29:27.690 [DEBUG] [noff.internal.handler.HandlerAccount] - Sonoff Connection Check Running

2021-03-11 22:29:27.753 [DEBUG] [onoff.internal.connections.Websocket] - Pong Response received

2021-03-11 22:29:32.707 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"Removed","nonce":"5sbkNN49","ts":1615481972707,"version":8}

2021-03-11 22:29:33.005 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan

2021-03-11 22:29:33.699 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Bedroom Switches","deviceid":"1001220145","apikey":"Removed","extra":{"uiid":126,"description":"20201224004","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:43:ff:db","mac":"d0:27:02:43:ff:da","ui":"多功能双通道电量检测开关","modelInfo":"5f1e478208bb4f51db013bc5","model":"E32-2SW-P0","manufacturer":"深圳松诺技术有限公司","staMac":"7C9EBDCD9FAC"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR3","tags":{"m_31d5_amin":"on","ck_channel_name":{"0":"Light","1":"Fan"}},"devConfig":{"timerCount":"16/28"},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ee6563aa70695000834d101","index":0,"roomid":"5ee6563aa70695000834d0ff"},"shareTo":[],"devicekey":"Removed","online":true,"params":{"version":7,"workMode":1,"swMode_00":2,"swMode_01":2,"swReverse_00":0,"swReverse_01":0,"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1}],"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1}],"motorSwMode":0,"motorSwReverse":0,"outputReverse":0,"motorTurn":0,"calibState":0,"currLocation":0,"location":0,"sledBright":100,"staMac":"7C9EBDCD9FAC","rssi":-70,"overload_00":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"overload_01":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"oneKwhState_00":0,"startTime_00":"","endTime_00":"","oneKwhState_01":0,"startTime_01":"","endTime_01":"","oneKwhData_00":0,"oneKwhData_01":0,"current_00":0,"voltage_00":25721,"actPow_00":0,"reactPow_00":0,"apparentPow_00":0,"current_01":0,"voltage_01":25721,"actPow_01":0,"reactPow_01":0,"apparentPow_01":0,"fwVersion":"1.1.0","timeZone":5.5,"zyx_clear_timers":true,"getKwh_00":2,"getKwh_01":2,"uiActive":{"outlet":1,"time":60}}},"index":0}],"total":1}}

By the way what is inside of 1001220145.txt file.

and again with this please: SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_v2.1r6.jar at main · delid4ve/SonoffJars · GitHub

Same result . I can see same log entries.

you sure… post for my sake.

Log file

2021-03-11 22:39:32.118 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan

2021-03-11 22:39:32.122 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery

2021-03-11 22:39:32.126 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"Removed","nonce":"H3gkoVIc","ts":1615482572125,"version":8}

2021-03-11 22:39:32.595 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Bedroom Switches","deviceid":"1001220145","apikey":"Removed","extra":{"uiid":126,"description":"20201224004","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:43:ff:db","mac":"d0:27:02:43:ff:da","ui":"多功能双通道电量检测开关","modelInfo":"5f1e478208bb4f51db013bc5","model":"E32-2SW-P0","manufacturer":"深圳松诺技术有限公司","staMac":"7C9EBDCD9FAC"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR3","tags":{"m_31d5_amin":"on","ck_channel_name":{"0":"Light","1":"Fan"}},"devConfig":{"timerCount":"16/28"},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ee6563aa70695000834d101","index":0,"roomid":"5ee6563aa70695000834d0ff"},"shareTo":[],"devicekey":"Removed","online":true,"params":{"version":7,"workMode":1,"swMode_00":2,"swMode_01":2,"swReverse_00":0,"swReverse_01":0,"switches":[{"switch":"on","outlet":0},{"switch":"on","outlet":1}],"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1}],"motorSwMode":0,"motorSwReverse":0,"outputReverse":0,"motorTurn":0,"calibState":0,"currLocation":0,"location":0,"sledBright":100,"staMac":"7C9EBDCD9FAC","rssi":-70,"overload_00":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"overload_01":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"oneKwhState_00":0,"startTime_00":"","endTime_00":"","oneKwhState_01":0,"startTime_01":"","endTime_01":"","oneKwhData_00":0,"oneKwhData_01":0,"current_00":0,"voltage_00":25721,"actPow_00":0,"reactPow_00":0,"apparentPow_00":0,"current_01":0,"voltage_01":25721,"actPow_01":0,"reactPow_01":0,"apparentPow_01":0,"fwVersion":"1.1.0","timeZone":5.5,"zyx_clear_timers":true,"getKwh_00":2,"getKwh_01":2,"uiActive":{"outlet":1,"time":60}}},"index":0}],"total":1}}

2021-03-11 22:39:32.598 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Received

2021-03-11 22:39:42.117 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan

see… it added a new line. now i know where the issue is :slight_smile:

will try and fix in the next 10 mins or so. but might be a couple of hours as got visitors on route.

Good eye! No problem. I m also going to have dinner and my kid is bugging me bit now :slightly_smiling_face:

Thanks for your help!

@delid4ve Yes, the debug log is turned on. Now sonoff dir exists in userdata but no files. Also nothing can be discovered in INBOX (same as before). Also no apparent error logs . Following is the snippet

2021-03-11 23:11:17.048 [DEBUG] [noff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:251d6cce
2021-03-11 23:11:17.052 [INFO ] [noff.internal.handler.HandlerAccount] - Account mode set to mixed
2021-03-11 23:11:17.060 [DEBUG] [g.sonoff.internal.helpers.FileHelper] - Creating directory /var/lib/openhab2/sonoff
2021-03-11 23:11:17.075 [DEBUG] [noff.internal.handler.HandlerAccount] - Local Mode connected
2021-03-11 23:11:17.084 [DEBUG] [ding.sonoff.internal.connections.Api] - Api CountryCode changed to:+91
2021-03-11 23:11:17.096 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Region Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"f9iYYuzD","ts":1615484477092,"version":8,"countryCode":"+91"}
2021-03-11 23:11:17.373 [ERROR] [onoff.internal.helpers.MessageSystem] - The device 1000e96b5e doesnt exist, unable to decrypt incoming lan message
2021-03-11 23:11:17.389 [ERROR] [onoff.internal.helpers.MessageSystem] - The device 1000e97753 doesnt exist, unable to decrypt incoming lan message
2021-03-11 23:11:19.425 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Region Response:{"requestid":"1615484477092-f9iYYuzD","region":"as","error":0}
2021-03-11 23:11:19.441 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Region changed to:as
2021-03-11 23:11:19.447 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Login Request:{"email”:”xxxx”,”password”:”yyyyyyyyk","countryCode":"+91"}
2021-03-11 23:11:24.797 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Login Respone:{"error":0,"msg":"","data":{"user":{"countryCode":"+91","email”:”xxxxxxxxxx”,”apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","accountLevel":10,"accountConsult":false,"denyRecharge":false,"ipCountry":"IN"},"at":"8042577f0053d40e47557a256d66cc220d500c47","rt":"71e6048489a682e2852ebb48f1e1df536b43884f","region":"as"}}
2021-03-11 23:11:24.800 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Access Token changed to:8042577f0053d40e47557a256d66cc220d500c47
2021-03-11 23:11:24.802 [DEBUG] [ding.sonoff.internal.connections.Api] - Api ApiKey changed to:77ee647e-d76f-4787-b7aa-bb034febd319
2021-03-11 23:11:24.804 [DEBUG] [ding.sonoff.internal.connections.Api] - Attempt to get websocket server
2021-03-11 23:11:24.817 [DEBUG] [ding.sonoff.internal.connections.Api] - Websocket URL Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"j2gHIgOP","ts":1615484484808,"version":8,"accept":"ws"}
2021-03-11 23:11:26.393 [DEBUG] [ding.sonoff.internal.connections.Api] - Websocket URL Response:{"port":8080,"IP":"52.220.5.109","reason":"ok","domain":"as-pconnect3.coolkit.cc","error":0}
2021-03-11 23:11:29.575 [DEBUG] [onoff.internal.connections.Websocket] - WebSocket Socket successfully connected to as-pconnect3.coolkit.cc/52.220.5.109
2021-03-11 23:11:29.588 [DEBUG] [noff.internal.handler.HandlerAccount] - Logging in to websocket
2021-03-11 23:11:29.609 [DEBUG] [onoff.internal.helpers.MessageSystem] - Message Type added: 1615484489583 - login
2021-03-11 23:11:29.611 [DEBUG] [onoff.internal.connections.Websocket] - Websocket Sending Message:{"action":"userOnline","at":"8042577f0053d40e47557a256d66cc220d500c47","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"oWrnTs7O","ts":1615484489,"userAgent":"app","sequence":1615484489583,"version":8}
2021-03-11 23:11:29.811 [DEBUG] [onoff.internal.helpers.MessageSystem] - Websocket received message: {"error":0,"apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","config":{"hb":1,"hbInterval":145},"sequence":"1615484489583"}
2021-03-11 23:11:29.962 [DEBUG] [noff.internal.handler.HandlerAccount] - Remote Mode connected
2021-03-11 23:11:31.418 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"iNyXH3a1","ts":1615484491418,"version":8}
2021-03-11 23:11:31.818 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Ventilator","deviceid":"1000e96b5e","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:d4:0d","mac":"d0:27:01:d2:d4:0c","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00D5A9E7","staMac":"C8:2B:96:D5:A9:E7"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-2},"shareTo":[],"devicekey":"21f87fa3-5f79-4c04-9e1f-71ff97ce766a","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-63,"staMac":"C8:2B:96:D5:A9:E7","startup":"off","init":1,"pulse":"on","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"HomeM","bssid":"b6:be:76:ff:88:ef"},"denyFeatures":["extSwitchMode"]},"index":-2},{"itemType":1,"itemData":{"name":"Gate Sensor","deviceid":"1000e944b9","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":102,"description":"20200706013","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:86:c3","mac":"d0:27:01:d2:86:c2","ui":"WiFi门磁","modelInfo":"5e1541388ceaa2dd27be4af4","model":"OPL-DMA-GL","manufacturer":"深圳松诺技术有限公司"},"brandName":"SONOFF","brandLogo":"https://as-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},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-1},"shareTo":[],"devicekey":"644e6c7b-5b24-468f-9d8a-45dc4afcc6db","online":false,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"switch":"off","battery":2.869,"fwVersion":"1000.2.924","type":4,"chipID":"d02701d286c2","mac":"d02701d286c2","rssi":-92,"lastUpdateTime":"2021-02-08T12:11:40.330Z","actionTime":"2021-02-08T05:55:27.778Z"},"denyFeatures":["sceneClick"]},"index":-1},{"itemType":1,"itemData":{"name":"big gate","deviceid":"1000e97753","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:eb:f7","mac":"d0:27:01:d2:eb:f6","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00686D31","staMac":"C8:2B:96:68:6D:31"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":0},"shareTo":[],"devicekey":"ef2bbe55-d2a1-413d-84b3-a2a598b6b87e","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"bssid":"b6:be:76:ff:88:ef","ssid":"HomeM","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"on","init":1,"startup":"off","staMac":"C8:2B:96:68:6D:31","rssi":-77,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8},"denyFeatures":["extSwitchMode"]},"index":0}],"total":3}}
2021-03-11 23:12:20.919 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-11 23:12:20.925 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan
2021-03-11 23:12:20.930 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
2021-03-11 23:12:20.932 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"bQf34juk","ts":1615484540932,"version":8}
2021-03-11 23:12:21.838 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Ventilator","deviceid":"1000e96b5e","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:d4:0d","mac":"d0:27:01:d2:d4:0c","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00D5A9E7","staMac":"C8:2B:96:D5:A9:E7"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-2},"shareTo":[],"devicekey":"21f87fa3-5f79-4c04-9e1f-71ff97ce766a","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-63,"staMac":"C8:2B:96:D5:A9:E7","startup":"off","init":1,"pulse":"on","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"HomeM","bssid":"b6:be:76:ff:88:ef"},"denyFeatures":["extSwitchMode"]},"index":-2},{"itemType":1,"itemData":{"name":"Gate Sensor","deviceid":"1000e944b9","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":102,"description":"20200706013","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:86:c3","mac":"d0:27:01:d2:86:c2","ui":"WiFi门磁","modelInfo":"5e1541388ceaa2dd27be4af4","model":"OPL-DMA-GL","manufacturer":"深圳松诺技术有限公司"},"brandName":"SONOFF","brandLogo":"https://as-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},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-1},"shareTo":[],"devicekey":"644e6c7b-5b24-468f-9d8a-45dc4afcc6db","online":false,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"switch":"off","battery":2.869,"fwVersion":"1000.2.924","type":4,"chipID":"d02701d286c2","mac":"d02701d286c2","rssi":-92,"lastUpdateTime":"2021-02-08T12:11:40.330Z","actionTime":"2021-02-08T05:55:27.778Z"},"denyFeatures":["sceneClick"]},"index":-1},{"itemType":1,"itemData":{"name":"big gate","deviceid":"1000e97753","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:eb:f7","mac":"d0:27:01:d2:eb:f6","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00686D31","staMac":"C8:2B:96:68:6D:31"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":0},"shareTo":[],"devicekey":"ef2bbe55-d2a1-413d-84b3-a2a598b6b87e","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"bssid":"b6:be:76:ff:88:ef","ssid":"HomeM","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"on","init":1,"startup":"off","staMac":"C8:2B:96:68:6D:31","rssi":-77,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8},"denyFeatures":["extSwitchMode"]},"index":0}],"total":3}}
2021-03-11 23:12:26.410 [DEBUG] [onoff.internal.connections.Websocket] - Websocket Sending Message:ping
2021-03-11 23:12:26.415 [DEBUG] [noff.internal.handler.HandlerAccount] - Sonoff Connection Check Running
2021-03-11 23:12:26.598 [DEBUG] [onoff.internal.connections.Websocket] - Pong Response received
2021-03-11 23:12:30.925 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-11 23:12:31.428 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"cIfcTMp5","ts":1615484551427,"version":8}
2021-03-11 23:12:31.645 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Ventilator","deviceid":"1000e96b5e","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:d4:0d","mac":"d0:27:01:d2:d4:0c","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00D5A9E7","staMac":"C8:2B:96:D5:A9:E7"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-2},"shareTo":[],"devicekey":"21f87fa3-5f79-4c04-9e1f-71ff97ce766a","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-63,"staMac":"C8:2B:96:D5:A9:E7","startup":"off","init":1,"pulse":"on","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"HomeM","bssid":"b6:be:76:ff:88:ef"},"denyFeatures":["extSwitchMode"]},"index":-2},{"itemType":1,"itemData":{"name":"Gate Sensor","deviceid":"1000e944b9","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":102,"description":"20200706013","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:86:c3","mac":"d0:27:01:d2:86:c2","ui":"WiFi门磁","modelInfo":"5e1541388ceaa2dd27be4af4","model":"OPL-DMA-GL","manufacturer":"深圳松诺技术有限公司"},"brandName":"SONOFF","brandLogo":"https://as-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},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-1},"shareTo":[],"devicekey":"644e6c7b-5b24-468f-9d8a-45dc4afcc6db","online":false,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"switch":"off","battery":2.869,"fwVersion":"1000.2.924","type":4,"chipID":"d02701d286c2","mac":"d02701d286c2","rssi":-92,"lastUpdateTime":"2021-02-08T12:11:40.330Z","actionTime":"2021-02-08T05:55:27.778Z"},"denyFeatures":["sceneClick"]},"index":-1},{"itemType":1,"itemData":{"name":"big gate","deviceid":"1000e97753","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:eb:f7","mac":"d0:27:01:d2:eb:f6","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00686D31","staMac":"C8:2B:96:68:6D:31"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":0},"shareTo":[],"devicekey":"ef2bbe55-d2a1-413d-84b3-a2a598b6b87e","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"bssid":"b6:be:76:ff:88:ef","ssid":"HomeM","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"on","init":1,"startup":"off","staMac":"C8:2B:96:68:6D:31","rssi":-77,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8},"denyFeatures":["extSwitchMode"]},"index":0}],"total":3}}
2021-03-11 23:13:26.417 [DEBUG] [onoff.internal.connections.Websocket] - Websocket Sending Message:ping
2021-03-11 23:13:26.417 [DEBUG] [noff.internal.handler.HandlerAccount] - Sonoff Connection Check Running
2021-03-11 23:13:26.614 [DEBUG] [onoff.internal.connections.Websocket] - Pong Response received
2021-03-11 23:13:31.436 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Discovery Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"sTllUxGl","ts":1615484611435,"version":8}
2021-03-11 23:13:32.908 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Devices response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Ventilator","deviceid":"1000e96b5e","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:d4:0d","mac":"d0:27:01:d2:d4:0c","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00D5A9E7","staMac":"C8:2B:96:D5:A9:E7"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-2},"shareTo":[],"devicekey":"21f87fa3-5f79-4c04-9e1f-71ff97ce766a","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"version":8,"sledOnline":"on","switch":"off","fwVersion":"3.5.0","rssi":-63,"staMac":"C8:2B:96:D5:A9:E7","startup":"off","init":1,"pulse":"on","pulseWidth":500,"only_device":{"ota":"success"},"ssid":"HomeM","bssid":"b6:be:76:ff:88:ef"},"denyFeatures":["extSwitchMode"]},"index":-2},{"itemType":1,"itemData":{"name":"Gate Sensor","deviceid":"1000e944b9","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":102,"description":"20200706013","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:86:c3","mac":"d0:27:01:d2:86:c2","ui":"WiFi门磁","modelInfo":"5e1541388ceaa2dd27be4af4","model":"OPL-DMA-GL","manufacturer":"深圳松诺技术有限公司"},"brandName":"SONOFF","brandLogo":"https://as-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},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":-1},"shareTo":[],"devicekey":"644e6c7b-5b24-468f-9d8a-45dc4afcc6db","online":false,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"switch":"off","battery":2.869,"fwVersion":"1000.2.924","type":4,"chipID":"d02701d286c2","mac":"d02701d286c2","rssi":-92,"lastUpdateTime":"2021-02-08T12:11:40.330Z","actionTime":"2021-02-08T05:55:27.778Z"},"denyFeatures":["sceneClick"]},"index":-1},{"itemType":1,"itemData":{"name":"big gate","deviceid":"1000e97753","apikey":"77ee647e-d76f-4787-b7aa-bb034febd319","extra":{"uiid":1,"description":"20200706015","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:01:d2:eb:f7","mac":"d0:27:01:d2:eb:f6","ui":"单通道插座","modelInfo":"5dbd4482781fbdbb2594b8fe","model":"PSF-B01-GL","manufacturer":"深圳松诺技术有限公司","chipid":"00686D31","staMac":"C8:2B:96:68:6D:31"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"RE5V1C","tags":{"m_d319_chau":"on"},"devConfig":{},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5fc5b3d5896bbb0007277d20","index":0},"shareTo":[],"devicekey":"ef2bbe55-d2a1-413d-84b3-a2a598b6b87e","online":true,"params":{"bindInfos":{"alexa":["77ee647e-d76f-4787-b7aa-bb034febd319_26ca1996a20e8bd63617ab272d4eeede1d2d8e32"]},"bssid":"b6:be:76:ff:88:ef","ssid":"HomeM","only_device":{"ota":"success"},"pulseWidth":500,"pulse":"on","init":1,"startup":"off","staMac":"C8:2B:96:68:6D:31","rssi":-77,"fwVersion":"3.5.0","switch":"off","sledOnline":"on","version":8},"denyFeatures":["extSwitchMode"]},"index":0}],"total":3}}

Thanks Jon …I hope this better display …I am learning …

[DEBUG] [noff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:0dce9f8eac
2021-03-10 22:35:35.490 [INFO ] [noff.internal.handler.HandlerAccount] - Account mode set to local
2021-03-10 22:35:35.500 [ERROR] [noff.internal.handler.HandlerAccount] - Unable to create our device list: /var/lib/openhab/sonoff
2021-03-10 22:35:35.510 [DEBUG] [noff.internal.handler.HandlerAccount] - Local Mode connected
2021-03-10 22:38:57.509 [WARN ]


[DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-10 22:50:56.625 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan
2021-03-10 22:50:56.631 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
2021-03-10 22:50:56.640 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"TA2D3Ocq","ts":1615409456638,"version":8}
2021-03-10 22:51:06.625 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-10 22:53:33.312 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-10 22:53:33.316 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan
2021-03-10 22:53:33.320 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
2021-03-10 22:53:33.332 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"3SVwTYUI","ts":1615409613331,"version":8}
2021-03-10 22:53:43.316 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan
2021-03-10 22:53:57.514 
"

[DEBUG] [noff.internal.handler.HandlerAccount] - Sonoff - Running dispose()
2021-03-11 15:27:09.613 [DEBUG] [ding.sonoff.internal.connections.Lan] - Sonoff - Stopping LAN connection
2021-03-11 15:27:09.613 [ERROR] [onoff.internal.helpers.MessageSystem] - Error Running queue:null
2021-03-11 15:27:09.615 [DEBUG] [ding.sonoff.internal.connections.Lan] - Unregistered all LAN services
2021-03-11 15:27:11.621 [DEBUG] [onoff.internal.connections.Websocket] - Stopping websocket client
2021-03-11 15:27:13.077 [DEBUG] [noff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:0dce9f8eac
2021-03-11 15:27:13.079 [INFO ] [noff.internal.handler.HandlerAccount] - Account mode set to local
2021-03-11 15:27:13.088 [ERROR] [noff.internal.handler.HandlerAccount] - Unable to create our device list: /var/lib/openhab/sonoff
2021-03-11 15:27:13.106 [DEBUG] [noff.internal.handler.HandlerAccount] - Local Mode connected
2021-03-11 15:27:32.649 [DEBUG] [noff.internal.handler.HandlerAccount] - Sonoff - Running dispose()
2021-03-11 15:27:32.652 [DEBUG] [ding.sonoff.internal.connections.Lan] - Sonoff - Stopping LAN connection
2021-03-11 15:27:32.652 [ERROR] [onoff.internal.helpers.MessageSystem] - Error Running queue:null
2021-03-11 15:27:32.654 [DEBUG] [ding.sonoff.internal.connections.Lan] - Unregistered all LAN services
2021-03-11 15:27:34.662 [DEBUG] [onoff.internal.connections.Websocket] - Stopping websocket client
2021-03-11 15:27:45.712 [DEBUG] [noff.internal.handler.HandlerAccount] - Initialising Sonoff Account: sonoff:account:0dce9f8eac
2021-03-11 15:27:45.714 [INFO ] [noff.internal.handler.HandlerAccount] - Account mode set to local
2021-03-11 15:27:45.722 [ERROR] [noff.internal.handler.HandlerAccount] - Unable to create our device list: /var/lib/openhab/sonoff
2021-03-11 15:27:45.742 [DEBUG] [noff.internal.handler.HandlerAccount] - Local Mode connected
2021-03-11 15:28:58.476 


_____________________________________
Direct debug from console

17:26:56.842 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Stop Scan
17:26:56.850 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Start Scan
17:26:56.856 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery
17:26:56.863 [DEBUG] [nding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq","nonce":"bDKCW86v","ts":1615476416863,"version":8}
17:27:06.848 [DEBUG] [binding.sonoff.internal.MainDiscovery] - Stop Scan

I’ve found the root problem for you guys and am working on a fix (actually it’s done but got to test and have visitors round atm).

Basically the json is so big and if I haven’t integrated one element into my code then it fails without even returning an error.

This is one of yours @entropy

And @tizen theres stuff in dualr3 such as service led brightness I also haven’t added as it’s not present on any other devices.

Hopefully in a few hours but maybe tomorrow, depends how motivated I am after a few rum and cokes :joy:

2 Likes

No worries! Will continue tomorrow. And thanks for your help!

I have no clue what extSwitchMode does. Please note that the switches are set on inching of 0.5 sec as evident from the "pulse" and "pulseWidth" parameters.

3.x users try this. still got a couple of bits to sort out but want to see we sorted the initial error out SonoffJars/org.openhab.binding.sonoff-3.1.0-SNAPSHOT_v2.1r7.jar at main · delid4ve/SonoffJars · GitHub

Here is the log. looks like file is now created

2021-03-13 16:32:40.117 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Start Scan

2021-03-13 16:32:40.122 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Sonoff - Start Discovery

2021-03-13 16:32:40.132 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Request:{"appid":"Removed","nonce":"pHR87wfE","ts":1615633360131,"version":8}

2021-03-13 16:32:40.629 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache response:{"error":0,"msg":"","data":{"thingList":[{"itemType":1,"itemData":{"name":"Bedroom Switches","deviceid":"1001220145","apikey":"Remvoed","extra":{"uiid":126,"description":"20201224004","brandId":"5c4c1aee3a7d24c7100be054","apmac":"d0:27:02:43:ff:db","mac":"d0:27:02:43:ff:da","ui":"多功能双通道电量检测开关","modelInfo":"5f1e478208bb4f51db013bc5","model":"E32-2SW-P0","manufacturer":"深圳松诺技术有限公司","staMac":"7C9EBDCD9FAC"},"brandName":"SONOFF","brandLogo":"https://as-ota.coolkit.cc/logo/q62PevoglDNmwUJ9oPE7kRrpt1nL1CoA.png","showBrand":true,"productModel":"DUALR3","tags":{"m_31d5_amin":"on","ck_channel_name":{"0":"Light","1":"Fan"}},"devConfig":{"timerCount":"16/28"},"settings":{"opsNotify":0,"opsHistory":1,"alarmNotify":1,"wxAlarmNotify":0,"wxOpsNotify":0,"wxDoorbellNotify":0,"appDoorbellNotify":1},"devGroups":[],"family":{"familyid":"5ee6563aa70695000834d101","index":0,"roomid":"5ee6563aa70695000834d0ff"},"shareTo":[],"devicekey":"Removed","online":true,"params":{"version":7,"workMode":1,"swMode_00":2,"swMode_01":2,"swReverse_00":0,"swReverse_01":0,"switches":[{"switch":"off","outlet":0},{"switch":"off","outlet":1}],"configure":[{"startup":"off","outlet":0},{"startup":"off","outlet":1}],"pulses":[{"pulse":"off","width":1000,"outlet":0},{"pulse":"off","width":1000,"outlet":1}],"motorSwMode":0,"motorSwReverse":0,"outputReverse":0,"motorTurn":0,"calibState":0,"currLocation":0,"location":0,"sledBright":100,"staMac":"7C9EBDCD9FAC","rssi":-72,"overload_00":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"overload_01":{"minActPow":{"enabled":0,"value":10},"maxVoltage":{"enabled":0,"value":24000},"minVoltage":{"enabled":0,"value":10},"maxCurrent":{"enabled":0,"value":1500},"maxActPow":{"enabled":0,"value":360000}},"oneKwhState_00":0,"startTime_00":"","endTime_00":"","oneKwhState_01":0,"startTime_01":"","endTime_01":"","oneKwhData_00":0,"oneKwhData_01":0,"current_00":0,"voltage_00":25025,"actPow_00":0,"reactPow_00":0,"apparentPow_00":0,"current_01":16,"voltage_01":25025,"actPow_01":1811,"reactPow_01":3748,"apparentPow_01":4163,"fwVersion":"1.1.0","timeZone":5.5,"zyx_clear_timers":true,"getKwh_00":2,"getKwh_01":2,"uiActive":{"outlet":1,"time":60}}},"index":0}],"total":1}}

2021-03-13 16:32:40.639 [DEBUG] [ding.sonoff.internal.connections.Api] - Api Cache Received

2021-03-13 16:32:40.644 [DEBUG] [ding.sonoff.internal.connections.Api] - Creating the device cache files

2021-03-13 16:32:40.647 [DEBUG] [ding.sonoff.internal.connections.Api] - Creating the device cache file for device 1001220145

2021-03-13 16:32:40.652 [DEBUG] [g.sonoff.internal.helpers.FileHelper] - Device 1001220145: writing to file /var/lib/openhab/sonoff/1001220145.txt

2021-03-13 16:32:40.658 [DEBUG] [ding.sonoff.internal.connections.Api] - File created for device 1001220145

2021-03-13 16:32:50.116 [DEBUG] [inding.sonoff.internal.MainDiscovery] - Stop Scan

Nothing showed up after scan. What will happen after scan completes? Am i going to see a device.

And if I add the device manually still seeing this config error

@tizen can you send me the file please
If you reload the binding it will initialise (that’s what I’m working on at mo) - the device didn’t show up in the inbox as you’ve already manually added it

Sent you private message. I did not manually added it first time i run scan.

Delete both Account and Device thing. And restarted openhab. Getting this error when creating account thing

Can you send me the full log section for that.
And was with nothing added??

Log

30.786 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.sonoff.internal.handler.HandlerAccount@d4f86': java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:888) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:853) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:802) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:774) ~[bundleFile:?]

	at org.openhab.binding.sonoff.internal.handler.HandlerAccount.createStates(HandlerAccount.java:238) ~[?:?]

	at org.openhab.binding.sonoff.internal.handler.HandlerAccount.initialize(HandlerAccount.java:168) ~[?:?]

	at jdk.internal.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

	at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1197) ~[bundleFile:?]

	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:225) ~[bundleFile:?]

	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:217) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[bundleFile:?]

	... 17 more

2021-03-13 20:11:30.810 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'sonoff:account:aada52bb26': java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:888) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:853) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:802) ~[bundleFile:?]

	at com.google.gson.Gson.fromJson(Gson.java:774) ~[bundleFile:?]

	at org.openhab.binding.sonoff.internal.handler.HandlerAccount.createStates(HandlerAccount.java:238) ~[?:?]

	at org.openhab.binding.sonoff.internal.handler.HandlerAccount.initialize(HandlerAccount.java:168) ~[?:?]

	at jdk.internal.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) ~[?:?]

	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:154) [bundleFile:?]

	at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

	at java.lang.Thread.run(Thread.java:834) [?:?]

Caused by: java.lang.IllegalStateException: Expected an int but was BEGIN_OBJECT at line 1 column 2279 path $.params.uiActive

	at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1197) ~[bundleFile:?]

	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:225) ~[bundleFile:?]

	at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:217) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:129) ~[bundleFile:?]

	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[bundleFile:?]

	... 17 more

2021-03-13 20:11:35.148 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'hue:bridge:0017886d3fe4' to inbox.