Closed BadBambi closed 3 years ago
Yeah sorry haven't quite got round to updating the readme. just email and password now, everything else is now automatic. You should just be able to go to Settings -> Things-> add (bottom right plus symbol) -> sonoff -> scan, to discover the devices. This should create files under userdata/sonoff for each device. If these files are not present you need to run discovery as per the above. Let me know how it goes.
@delid4ve you are a genius! Winner on both accounts. I can't believe I missed the LARGE BLUE scan button here. PS: if you have multiple 'Homes' you actually have to switch between them on the APP (on your phone) to see them on the import. PS: all devices pulled in successfully. Much appreciated for your binding and help.
Just be aware ewelink dont let you use both together, so if you open the app it will disconnect the cloud connection in openhab, and restore it within a few minutes of closing it. In my experience you can have the app open for about 30 seconds before disconnect.
Hi @delid4ve,
firstly thank you for this binding as its almost impossible for me to get to these units to reflash them with Tasmota, so this makes perfect sense.
I've been trying to add my Things via the Account Binding however I can not select of enter in the required details.
System: OpenHabian version for openHAB 3.0.2 Addon: org.openhab.binding.sonoff-3.0.3-SNAPSHOT_2.5r6.jar
The Binding adds without issue and I can work my way through all of the selections, however as you can see from the OutPut below in the logs, I can not add the individual Things per device via the Bridge.
I've noticed your README states you enter these additional details: countryCode, ipaddress, accessmode & initialize - which I'm unable to as the selection only requests
email
&password
I have tried to run the Discovery or Initialise however without success.
Any ideas as to what I'm doing wrong? I've not even added the device
1000c049d2
and the errors start as per below. When I add device1000c049d2
it reports I should "This device has not been initilized, please run discovery"Log output:
2021-06-24 21:11:30.140 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state 2021-06-24 21:11:30.753 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state 2021-06-24 21:11:31.056 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state ==> /var/log/openhab/events.log <== 2021-06-24 21:21:27.091 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:1:e906500754:bfb0f03501' changed from UNINITIALIZED to INITIALIZING 2021-06-24 21:21:27.169 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:1:e906500754:bfb0f03501' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): This device has not been initilized, please run discovery ==> /var/log/openhab/openhab.log <== 2021-06-24 21:21:51.099 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state 2021-06-24 21:21:58.811 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state 2021-06-24 21:21:59.543 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state 2021-06-24 21:21:59.937 [ERROR] [unication.SonoffCommunicationManager] - The device 1000c049d2 doesnt exist, unable to set state ==> /var/log/openhab/events.log <== 2021-06-24 21:22:42.410 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:e906500754:f90caeb8da' changed from UNINITIALIZED to INITIALIZING 2021-06-24 21:22:42.488 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:e906500754:f90caeb8da' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): This device has not been initilized, please run discovery