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