stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
126 stars 40 forks source link

Temporary disable deep sleep for maintenance #33

Closed gheesung closed 6 years ago

gheesung commented 6 years ago

Hi

Thanks for the good extension to the fine Tasmota firmware.

Occasionally, I may need to temporary disable the deep sleep to reconfigure some parameters. Is there a way disable it like in ESP-EASY firmware SleepMode via a jumper setting?

Thanks Ghee Sung

stefanbode commented 6 years ago

Hi Ghee, interesting idea. Currently, I use MQTT and retain the message "deepsleep 0". Mostly this helps after a reboot that the device keeps awake. Make a suggestion for the switch how it should work. Interested to implement.

gheesung commented 6 years ago

Hi @stefanbode thanks for your suggestion, using MQTT retain message can do too.

For the ESP Easy firmware, as suggested in their wiki, I make a small 3 pin slide switch to enable/disable deep sleep on my battery powered wemos d1 mini.

stefanbode commented 6 years ago

Hi Ghee, please see my latest commit. You can now define a GPIO as "Deepsleep Switch". If open or not connected the device will operate normally. If connected to ground deepsleep will be disabled. I checked it only with D7 gpio on a wemos. Seems to work

stefanbode commented 6 years ago

The GPIO16 switch with RST and GROUND works too. nice. Like !! Just read the description of ESPeasy :-) after implemented...

gheesung commented 6 years ago

Thank you. This will make it more convenient and alternative option for maintenance mode.

stefanbode commented 6 years ago

10-04-2018 13-35-27