Can someone tell me what are the prons and cons for each solution? LAN mode seems easier but Im not sure about the limitations. For example, Are both methods responding at the same speed? Are changes in the HW switch reflected in HA inmediatelly with both solutions? etc…
If someone can give me more details based on their experience I would apreciate it!
Status is reflected in HA immediately with
My component. I can’t attest to speed differences in practice, but both work on the local LAN so I’d expect them to be similar speed.
With the mini, I’m not sure the reasons I was driven to do it are the same. The mini supports LAN mode officially (without an API key), but also I believe supports 3rd party firmware without soldering.
My suggestion would be to try my component and if it doesn’t work for you, then go the Tasmota route.
However I’d be happy to look at any issues you experience… I also have a mini coming in the post so I will definitely get it working even if it doesn’t now (pretty sure it does as others have used it i believe and it has same firmware as the Sonoff DIY which I did have untiil recently)
Thanks for taking the time to reply to the OP. I have a couple of Sonoff Basics I bought around this time last yer. I never really got around to setting up the hardware and software needed to flash them, so I sort of moved on to other things. It’s not that I lack the skills, it’s the effort to set it all up for a one-shot effort that I might never do again.
So, how would I know if my year-old Sonoff Basics have the “right” firmware installed? I assume there’s some way to update, but I’m back to how much effort I’d want to put in, loading apps and setting up accounts.
If you put the jumper on, you must provide a WiFi access point with a specific ssid and password that the mini connects to (see the diy documentation) Then with the diy tool you can change the access point or flash tasmota.
Ok. I managed to get the api_key
This is how I did it:
What is required: A router with DD-WRT on it.
Instructions step by step:
Connect to the router with ssh or telnet from your PC
Connect your mobile to the WRT router SSID
Execute this command in the WRT router: “tcpdump -s 0 -vvv -i eth1 -w outputfile”
Register the sonoff MINI in the eWeLink App
Stop the tcpdump (Ctrl-C)
Excute the command “grep apikey outputfile” in the router
You will get the apikey like this:
{“type”:1,“deviceid”:“1000acb173”,“apikey”:"1aadc123-ea47-4cb5-97ad-46acdfbb2411",“rptInfo”:{“code”:3100,“arg”:"{“rstReason”:0}"},“sequence”:“0845895318697”}^/G
I hope it helps!
Update: @mattsaxon, It works like a charm!!! Congratulations and Thank you for this great contribution.