Thanks for your help. I have latest version from Github.
regarding your link i can’t see the post
If you are referencing to enter pairing mode on one of the sonoff devices I’ve tried that also yesterday but without any success. The device is blinking (after pressing the button for more then 7s) but no AP ITEAD-xxxxx is available under WIFI networks. Sorry if this isn’t the topic you have referring to…
Thank you @francisp I didn’t check the link from the post, my bad…
Ok, I need a router with DD-WRT on it which I don’t have so is there other possibility to sniff via tcpdump apikey?
On more thing - probably noob question. Do I need to obtain apikey for each sonoff device in my home?
Now this is working. But is there a way to make these available on google home (google assistant).
Normally I would go for gbridge (google assistant is not so easy to setup). However then I need MQTT…
Any advise?
I have a sonoff mini. i dont understand one thing. in the doc it is written if i want to use DIY mode with jumper on, then i dont need API key. but while in DIY mode how it will connect to my home network? i thought in DIY mode it only connects to specific ssid!
and then i tried without jumper, i deleted from app, and restarted mini to put it in pair mode (i think), but i couldnt find any ssid starting with ITEAD. but at this point i can pair this in the app. am i doing thing wrong?
i wanted to flash tasmota into this mini. but my DIY tool didnt find the mini, and i tried 3 windows PC. is it a possibility that the mini is somehow corrupted!
There are other ways to get the key, but with some devices there is no other way than to sniff.
There are lots of ways to sniff, the LAN, but none are trivial. It’s a whole topic in itself and without knowing your level of expertis, the operating system you are using and your network topology, I don’t think we should get into it here, but you can DM me if you want once you’ve had a google about!
If this is a problem with working in DIY mode, I suggest you ask it on the Itead repo I pointed to earlier.
If you are struggling to find the API key when in eWeLink mode, please refer to my link to encryption.md that I pointed to earlier. If you have an issue with that, please raise an issue on my repo.
Finally I have managed to get the API KEY from first Sonof Basic switch - FW:3.3.0.
I have used this method: https://community.hubitat.com/t/sonoff-ewelink-via-homebridge-node/3753
with my wifes IphoneX and my Macbook as laptop.
I have enter the pairing procedure and when my Sonoff paired (again) i could see in Charles my apikey:
Then i have put this in configuration.yaml and my switch is now available in Home assistant and I can control it from there.
Edit: after few minutes Sonoff device get unresponsive:
I have success to get Sonoff APIKEY which is not so complicated:
PC/ Laptop (both Win or MAC are just fine, even Linux machine - because main debugging proxy application that is used - Charles is available for all this OS.
Mobile phone (Android / iOS) with eWeLink application installed and configured (registered)
Configure Charles on PC/Mac/Linux as described here, steps 1- 6
If your mobile device is iOS then follow steps from above link from step 7 - step 19
If your mobile device is Android you only need to add manual proxy to WIFI network where your mobile phone is connected. Proxy host is the IP address of your computer where Charles is running and the port ist 8888. In my example, it was 192.168.0.35:8888
On your computer, again go to the Proxy menu, choose SSL Proxy Settings… and check to box to enable us-ota.coolkit.cc:8080 or eu-ota.coolkit.cc:8080 respective of your geographic location and the click OK
Set the Sonoff device to pairing mode (press manual switch on the device for more then 7sec) - the green LED will start to blink
On your mobile device in eWeLink go to + to add Device and choose Quick Pairing. Place mobile phone and Sonoff device as close to the router as possible
When pairing is done you will see on the left column (window) in Charles new device appears with some IP address that fits your network (in my case it was 192.168.0.16). Click on it to expand child cards beneath and find device card.
On the right side of Charles select Contents and you will se something like in this picture: