As far as I know, itead changed the firmware of the sonoffs basic in a way that it’s no possible anymore to flash tasmota by OTA. The project was called SonOTA. But, it seems that the Itead MAY had changed their mind as state here. I got a few sonoffs that I was able to use SonOTA (long time ago) and a bunch that i dont.
Tuya is a different story (and maker!). So, it’s no possible to use Tuya-convert to flash sonoffs,only tuya compatible stuff.
edit: Itead didnt changed their mind… you may check if the firwmware accepts OTA here
I use a simple logic to determine when we’ve gone to bed.
We have 2x bedside lamps controlled with trådfri dimmers. If these are turned off between a certain time frame then it triggers the bed time routine.
You could do something similar. When the lights are switched off then an input Boolean is switched on or off. And while this is in this state the motion automation is disabled. Then have an automation reset the input Boolean in the morning.
BTW, the sonoff basic v3 and the sonoff mini don’t need soldering anymore. They are flashable OTA after placing a jumper and using software provided by Sonoff.
You dont need to. I usually do mine by just touch/holding the pins while flashing. It may require a few tries but it’s doable. Or as another user suggested, he use playdoh to hold the pins :-).
Yes, but it’s the easiest way to use it. Without hass.io it’s command line without a gui, you need to install it (ok one line, but…). For one, not familiar with cli, I’d suggest the hass.io route.
I don’t know if there is a guide but there are a couple of 'standard" ways to do it.
if you use ESPHome then write your ESPHome code and then compile it (in the dashboard under the three dot menu on the right side of the entry for your code). then after it’s compiled in that same box select “download binary” and save it somewhere convenient. see below…
If you use Tasmota then just download the latest pre-compiled sonoff.bin file from the tasmota site and save it somewhere convenient. see the next section…
Either way you go above (tasmota or ESPHome) download and run Nodemcu-pyflasher. Select the desired compiled firmware binary file from above. While holding down the tall button on the Sonoff plug in your FTD adapter to your PC and connect the other end to the appropriate pins on the Sonoff. Then in Nodemcu-pyflasher select the correct com port. Select DOUT for flash mode, 115200 for the baud rate & select yes to erase the flash memory.
Then select the “flash NodeMCU” button and hopefully you will see a progress bar and it will tell you when it’s done.
reboot your Sonoff.
If you used Tasmota you’ll have to do additional set up that can be found at the tasmota site.