Ewelink / Sonoff Binding - New binding without flashing

Works like a charm, Thank you so much!
Do you have a tip jar? I wanna flick a few $ your way for your work!

Glad to hear it :+1:

Hi everybody
I got my 2 th16 integrated in openhab. I have now the following issue:

When I choose local, temp and humidity is displayed, but switch doesn’t work. When I change it to cloud only, switch works, but temperature and humidity not. When I switch it to both, nothing works.

Any idea?

Regards Alekos

Unistalled everything, cleared userdata, cleared cache, rebooted my raspberry, installed it again and now it works with “cloud only”. Thanks a lot! My turtles are happy now :slight_smile:

Would need to see debug/trace logs to see what’s going on, off top of my head th16 only supports local in (not out) so Switch won’t work from openhab - will check tomorrow as there’s too many devices to remember, I still need to update the docs as they’re very outdated now

Local mode will only work though if openhab is on the same subnet as the device and multicast is enabled in your router

I was planning on giving this a try. Do you think this thingy will work?

1 Like

Some one is already using it with the binding successfully :+1:
Somewhere in this thread if you wanna have a search upwards (quite a bit)

Sorry did try a bit. 'Tis a long thread.

Working great on 2.5.12 (using org.openhab.binding.sonoff-2.5.13-SNAPSHOT.jar)
Thank you for the binding.

1 Like

This is latest version btw for 2.5.x: openhab-sonoff-compiled/org.openhab.binding.sonoff-2.5.13-SNAPSHOT_2.4r5.jar at main · delid4ve/openhab-sonoff-compiled · GitHub

I tried this and it seems to work perfectly

1 Like

Hi all,

I tried to read this very long topic but it is becoming difficult to find the right information.
I have several Sonoff Mini’s R2, I managed to connect to the account and created things.
My account is set to LOCAL and the minis are blocked by my firewall.

I can contol the switch by the OH interface, however when switching the mini locally by switch, there are no updates, seems like the OH is not getting the information of the status back.
I tried setting the things via the paper UI and text files but no luck.
Can someone guide me what I need to do?

Thanks

Here is my config:

Bridge sonoff:account:SonoffAccount "Sonoff Account" 

[ email="xxxx", password="xx",countryCode="+32",accessmode="local",ipaddress="192.168.4.227",initialize="false"] {
1      sonoffMini201                               "Sonof Mini 201"        [ deviceid="100104cb59",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini202                               "Sonof Mini 202"        [ deviceid="1001051544",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini203                               "Sonof Mini 203"        [ deviceid="10010494bf",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini204                               "Sonof Mini 204"        [ deviceid="100103e019",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini205                               "Sonof Mini 205"        [ deviceid="100103dcb6",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini206                               "Sonof Mini 206"        [ deviceid="10010429eb",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini207                               "Sonof Mini 207"        [ deviceid="100104cb86",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini208                               "Sonof Mini 208"        [ deviceid="10010410c1",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini209                               "Sonof Mini 209"        [ deviceid="100104812e",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini210                               "Sonof Mini 210"        [ deviceid="100103e0ef",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini211                               "Sonof Mini 211"        [ deviceid="1001042f65",local=true,localPoll=10,consumption=false,consumptionPoll=10] 
1      sonoffMini222                               "Sonof Mini 212"        [ deviceid="1001047d5f",local=true,localPoll=10,consumption=false,consumptionPoll=10] 

}

my items

Group:Switch:OR(ON, OFF)           grpSonoff            "All Sonoffs"                           <light>           (grpLightBulbs)                            
Switch          sonoffMini201                       "sonoffMini201"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini201:switch"}
Switch          sonoffMini202                       "sonoffMini202"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini202:switch"}
Switch          sonoffMini203                       "sonoffMini203"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini203:switch"}
Switch          sonoffMini204                       "sonoffMini204"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini204:switch"}
Switch          sonoffMini205                       "sonoffMini205"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini205:switch"}
Switch          sonoffMini206                       "sonoffMini206"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini206:switch"}
Switch          sonoffMini207                       "sonoffMini207"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini207:switch"}
Switch          sonoffMini208                       "sonoffMini208"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini208:switch"}
Switch          sonoffMini209                       "sonoffMini209"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini209:switch"}
Switch          sonoffMini210                       "sonoffMini210"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini210:switch"}
Switch          sonoffMini211                       "sonoffMini211"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini211:switch"}
Switch          sonoffMini212                       "sonoffMini212"         <light>    (grpSonoff)      {channel="sonoff:1:SonoffAccount:sonoffMini212:switch"}

Can you provide full debug logs so I can see what’s going on

And you ran discovery to create the cache first yes?

Hi @delid4ve,

Thanks for reaching out
I cant see any cache file in /var/lib/openhab/cache.
What I did is:

  1. Set the flag to "true"on the sonoff account thing
  2. run the auto discovery from the paper UI (with and without the firewall blocking the things)
    I have set the log to trace (hope I did it the right way)
t286 │ Active │  80 │ 3.0.3.202105121010      │ openHAB Add-ons :: Bundles :: sonoff Binding
openhab> log:set DEBUG org.openhab.bundles.sonoff
openhab> log:set ALL org.openhab.bundles.sonoff
Error executing command: No enum constant org.apache.karaf.log.core.Level.ALL
openhab> log:set TRACE org.openhab.bundles.sonoff

The devices are discovered but there is some error in the log

2021-05-23 12:42:52.024 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100104cb59

2021-05-23 12:42:52.053 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100104cb59' to inbox.
2021-05-23 12:42:52.053 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100104cb59' has been added.
2021-05-23 12:42:52.054 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100105154
2021-05-23 12:42:52.081 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:1001051544' to inbox.
2021-05-23 12:42:52.081 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:1001051544' has been added.
2021-05-23 12:42:52.082 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 10010494bf
2021-05-23 12:42:52.106 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:10010494bf' to inbox.
2021-05-23 12:42:52.106 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:10010494bf' has been added.
2021-05-23 12:42:52.107 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100103e019
2021-05-23 12:42:52.141 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100103e019' to inbox.
2021-05-23 12:42:52.141 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100103e019' has been added.
2021-05-23 12:42:52.142 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100103dcb6
2021-05-23 12:42:52.166 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100103dcb6' to inbox.
2021-05-23 12:42:52.166 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100103dcb6' has been added.
2021-05-23 12:42:52.167 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 10010429eb
2021-05-23 12:42:52.196 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:10010429eb' to inbox.
2021-05-23 12:42:52.196 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:10010429eb' has been added.
2021-05-23 12:42:52.198 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100104cb86
2021-05-23 12:42:52.219 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100104cb86' to inbox.
2021-05-23 12:42:52.219 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 10010410c1
2021-05-23 12:42:52.220 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100104cb86' has been added.
2021-05-23 12:42:52.251 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:10010410c1' to inbox.
2021-05-23 12:42:52.251 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100104812e
2021-05-23 12:42:52.252 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:10010410c1' has been added.
2021-05-23 12:42:52.272 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100104812e' to inbox.
2021-05-23 12:42:52.273 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 100103e0ef
2021-05-23 12:42:52.274 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100104812e' has been added.
2021-05-23 12:42:52.293 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:100103e0ef' to inbox.
2021-05-23 12:42:52.293 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 1001042f65
2021-05-23 12:42:52.294 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:100103e0ef' has been added.

2021-05-23 12:42:52.315 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:1001042f65' to inbox.
2021-05-23 12:42:52.316 [INFO ] [nal.discovery.SonoffDiscoveryService] - Discovered device 1001047d5f
2021-05-23 12:42:52.317 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:1001042f65' has been added.
2021-05-23 12:42:52.346 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'sonoff:1:SonoffAccount:1001047d5f' to inbox.
2021-05-23 12:42:52.347 [INFO ] [openhab.event.InboxAddedEvent       ] - Discovery Result with UID 'sonoff:1:SonoffAccount:1001047d5f' has been added.
2021-05-23 12:42:57.744 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1621766567959, command was switch, retrying again. Retry count 2
2021-05-23 12:42:58.847 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1621766567959, command was switch, retrying again. Retry count 3
2021-05-23 12:42:59.950 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1621766567959, command was switch, after 3 retry attempts

What jar version are you running from my Sonoff-compiled repo?

The initialise field is depreciated now - haven’t updated docs. Should just have email and password now. Are you using ui or text files?

I am using text files, but I run scan from the UI to make the cache file.
The version I use is 3.0.3.202105121010 (at least that is what the openhabian-cli is showing, file name org.openhab.binding.sonoff-3.0.3-SNAPSHOT_2.5r5.jar).
I have downloaded it via the link from the post #1 above

Ok that’s cool. Still don’t have debug logs though, just info/warn. As it’s local that is the issue change to trace as more logging for the multicast.

Just noticed was wrong - not ‘bundle’ but ‘binding’:

log:set trace org.openhab.binding.sonoff

Change switch for one device from both ends and pm me the file as will be quite big.

Prob left the config in (forgot to delete) so will look at this when I get a chance but won’t affect binding operation - just email/password/accessmode required now anything else won’t make a difference

Could you also try corrupting your file - just put a slash in or something and save, then remove the slash and save so it reloads it. Binding should log what access mode it’s set to - if you had different previously then there’s a bug in the core with text files and configuration not updating

Hi @delid4ve,

I changed the log level and I get more lines now.
I disabled all but one device, corrupted the thing file and generated log from 2 times manual switch (On & OFF).
The firewall is blocking the Sonoff to internet now

Here is the log (starting from the moment I corrupted the things file till 2nd flip of the switch):

2021-05-24 15:11:48.221 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:1:SonoffAccount:sonoffMini201' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

2021-05-24 15:11:48.223 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:account:SonoffAccount' changed from ONLINE to UNINITIALIZED

2021-05-24 15:11:48.232 [DEBUG] [nternal.handler.SonoffAccountHandler] - Sonoff - Running dispose()

2021-05-24 15:11:48.232 [DEBUG] [ernal.connection.SonoffLanConnection] - Sonoff - Stopping LAN connection

2021-05-24 15:11:50.234 [DEBUG] [ernal.connection.SonoffLanConnection] - mDNS service has been stopped (JmDNS-/127.0.0.1)

2021-05-24 15:11:52.244 [DEBUG] [ernal.connection.SonoffLanConnection] - mDNS service has been stopped (JmDNS-/192.168.4.227)

2021-05-24 15:11:52.248 [DEBUG] [connection.SonoffWebSocketConnection] - Stopping websocket client

2021-05-24 15:11:52.261 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:account:SonoffAccount' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_MISSING_ERROR)

2021-05-24 15:11:52.277 [DEBUG] [connection.SonoffWebSocketConnection] - Websocket Sucessfully closed

2021-05-24 15:11:52.279 [DEBUG] [l.connection.SonoffConnectionManager] - Websocket disconnected

2021-05-24 15:11:52.279 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SonoffAccountHandler tried updating the thing status although the handler was already disposed.

2021-05-24 15:12:05.873 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'sonoff.things'

2021-05-24 15:12:05.902 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:account:SonoffAccount' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)

2021-05-24 15:12:05.905 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:1:SonoffAccount:sonoffMini201' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)

2021-05-24 15:12:21.651 [TRACE] [unication.SonoffCommunicationManager] - Lan event received from 192.168.4.201 with payload [ServiceInfoImpl@32997403 name: 'eWeLink_100104cb59._%%D5CF0E3F-FA56-4059-8F98-018CFC005844._sub._ewelink._tcp.local.' address: '/192.168.4.201:8081 ' status: 'NO DNS state: probing 1 task: null' is persistent, has data

2021-05-24 15:12:21.653 [TRACE] [unication.SonoffCommunicationManager] - Decrypting LAN message for 100104cb59

2021-05-24 15:12:21.655 [TRACE] [unication.SonoffCommunicationManager] - LAN message for 100104cb59 is {"data1":"zFqLkDbjAG91HYK2AvmI2laA0ZYwnNj0N2oiZKoYAIEzn78WunwyybT+0m6HGcfmafH4cLNRmM4FHsWP8GuTKtIbv8jlmAdsK0khGVeZ5uU\u003d","seq":"7","iv":"OTc2MTMwODQ2ODI3ODQzOQ\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"on","startup":"off","pulse":"off","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:12:21.657 [DEBUG] [unication.SonoffCommunicationManager] - Updated state for 100104cb59, with data {"data1":"zFqLkDbjAG91HYK2AvmI2laA0ZYwnNj0N2oiZKoYAIEzn78WunwyybT+0m6HGcfmafH4cLNRmM4FHsWP8GuTKtIbv8jlmAdsK0khGVeZ5uU\u003d","seq":"7","iv":"OTc2MTMwODQ2ODI3ODQzOQ\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"on","startup":"off","pulse":"off","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:12:21.659 [DEBUG] [unication.SonoffCommunicationManager] - Unable to forward state for 100104cb59 as no listener present

2021-05-24 15:12:21.660 [DEBUG] [nternal.handler.SonoffAccountHandler] - Added IP Address 100104cb59 for device 192.168.4.201

2021-05-24 15:13:01.450 [TRACE] [unication.SonoffCommunicationManager] - Lan event received from 192.168.4.201 with payload [ServiceInfoImpl@18617919 name: 'eWeLink_100104cb59._%%D5CF0E3F-FA56-4059-8F98-018CFC005844._sub._ewelink._tcp.local.' address: '/192.168.4.201:8081 ' status: 'NO DNS state: probing 1 task: null' is persistent, has data

2021-05-24 15:13:01.453 [TRACE] [unication.SonoffCommunicationManager] - Decrypting LAN message for 100104cb59

2021-05-24 15:13:01.454 [TRACE] [unication.SonoffCommunicationManager] - LAN message for 100104cb59 is {"data1":"zS9dyyLElnQzRGGC0zX1ja6nv7jrIbTqcOi5V6WXtdLxyrYhZ0UgkeqmrQA5rBa4t+49Ynu96YeTOBAuJ5K9TKk1b2Y0nGRsI9s7vYvfCXoerh+hnrlmz5djy7jqqpt1ogWpTaIm6oR4yTV0S/NVAQhfEwMvbWYIf+ZyY/nix5I\u003d","seq":"8","iv":"MjQ0MTE2NjYwMDI1MDE3MA\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"off","startup":"off","pulse":"off","sledOnline":"on","fwVersion":"3.6.0","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:13:01.455 [DEBUG] [unication.SonoffCommunicationManager] - Updated state for 100104cb59, with data {"data1":"zS9dyyLElnQzRGGC0zX1ja6nv7jrIbTqcOi5V6WXtdLxyrYhZ0UgkeqmrQA5rBa4t+49Ynu96YeTOBAuJ5K9TKk1b2Y0nGRsI9s7vYvfCXoerh+hnrlmz5djy7jqqpt1ogWpTaIm6oR4yTV0S/NVAQhfEwMvbWYIf+ZyY/nix5I\u003d","seq":"8","iv":"MjQ0MTE2NjYwMDI1MDE3MA\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"off","startup":"off","pulse":"off","sledOnline":"on","fwVersion":"3.6.0","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:13:01.458 [DEBUG] [unication.SonoffCommunicationManager] - Unable to forward state for 100104cb59 as no listener present

2021-05-24 15:13:01.460 [DEBUG] [nternal.handler.SonoffAccountHandler] - Added IP Address 100104cb59 for device 192.168.4.201

2021-05-24 15:13:13.620 [TRACE] [unication.SonoffCommunicationManager] - Lan event received from 192.168.4.201 with payload [ServiceInfoImpl@2405394 name: 'eWeLink_100104cb59._%%D5CF0E3F-FA56-4059-8F98-018CFC005844._sub._ewelink._tcp.local.' address: '/192.168.4.201:8081 ' status: 'NO DNS state: probing 1 task: null' is persistent, has data

2021-05-24 15:13:13.621 [TRACE] [unication.SonoffCommunicationManager] - Decrypting LAN message for 100104cb59

2021-05-24 15:13:13.623 [TRACE] [unication.SonoffCommunicationManager] - LAN message for 100104cb59 is {"data1":"xR+KjDr8/8TX7nBkDLWefDo51Q5dCIG5DArXHRW/IUsif46EDdPiYg0WK3QhvK+qjQdlXWlLkvAfcqef9J6YfU7KGiosD0T4hMm+vnHX2Gq1X6zNkRdxa7esNJ17bdxS0ppuwiPGOPtlDuy3Gb4diw\u003d\u003d","seq":"9","iv":"MjcxMjEzNTg3OTk4NzU3OQ\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"on","startup":"off","pulse":"off","sledOnline":"on","fwVersion":"3.6.0","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:13:13.625 [DEBUG] [unication.SonoffCommunicationManager] - Updated state for 100104cb59, with data {"data1":"xR+KjDr8/8TX7nBkDLWefDo51Q5dCIG5DArXHRW/IUsif46EDdPiYg0WK3QhvK+qjQdlXWlLkvAfcqef9J6YfU7KGiosD0T4hMm+vnHX2Gq1X6zNkRdxa7esNJ17bdxS0ppuwiPGOPtlDuy3Gb4diw\u003d\u003d","seq":"9","iv":"MjcxMjEzNTg3OTk4NzU3OQ\u003d\u003d","apivers":"1","type":"plug","txtvers":"1","encrypt":"true","deviceid":"100104cb59","localAddress":"192.168.4.201","params":{"switch":"on","startup":"off","pulse":"off","sledOnline":"on","fwVersion":"3.6.0","pulseWidth":500,"rssi":-80},"ipaddress":"192.168.4.201"}

2021-05-24 15:13:13.626 [DEBUG] [unication.SonoffCommunicationManager] - Unable to forward state for 100104cb59 as no listener present

2021-05-24 15:13:13.627 [DEBUG] [nternal.handler.SonoffAccountHandler] - Added IP Address 100104cb59 for device 192.168.4.201

Did you update from an old version? Could you try clearing the cache as the last few versions there were some changes to the listeners which I think may be causing the issue. Everything seems fine, just not finding the device handler to forward the new state to.

Trying this binding in OH3 without config files (is it possible?)

Created account thing, says ONLINE even though I can see in the trace it fails to login (probably because country is +1 instead of +33). How can I set the country in the UI (no field) ?