Giter Club home page Giter Club logo

wifirebooter's Introduction

Smart WiFi Restarting Unit

Verified with Tasmota Version: 13.2.0.3(tasmota-4M)

This guide will walk you through creating a Smart WiFi Restarting Unit using a Tasmota-supported smart plug, specifically the Sonoff S31. This project is based on the Tasmota firmware and involves some hardware modifications using a soldering iron. Ensure you have the necessary physical resources listed below before starting.

Physical Resources Required:

  1. Tasmota-supported smart plug (e.g., Sonoff S31)
  2. Soldering iron
  3. USB-to-UART converter with 3.3V (e.g., USB-to-UART Converter)

Software Resources:

Installation Steps:

  1. Flash Tasmota Firmware:

    • Follow the official Tasmota firmware flashing instructions provided here.
    • Connect the USB-to-UART converter to the Sonoff S31 for firmware flashing.
  2. Hardware Modifications:

    • Open the Sonoff S31 casing. instructions
    • Identify and solder necessary connections according to the instructions in the Tasmota documentation.
    • Exercise caution when soldering to avoid damage.
  3. Configuration:

    • Once flashed, power up the Sonoff S31.
    • Connect to the default Tasmota WiFi network using the provided documentation.
    • Access the Tasmota WebUI (default IP: 192.168.4.1) to configure WiFi credentials.
  4. Modifications:

    • upload the autoexec.bat file to the GUI via Consoles -> Manage File System
    • go to terminal via Consoles -> Console and add execute line-by-line:
    • Check out the formatted_rules_with_explanation.bat file for pre-configured rules and explanations.
    • Rule1 ON Power1#Boot Do Time 1672531201 ENDON
      Rule2 ON Power1#Boot do backlog Var1 1; Var2 0; Var3 0; Var4 10; Var5 10; ENDON ON Time#Minute|%Var5% DO backlog LedState 0; Var; Delay 100; Ping4 8.8.8.8; ENDON ON Ping#8.8.8.8#Success==0 DO backlog Var5 %Var4%; Power1 0; Delay 40; Power1 1; Add2 1; Var3 %timestamp%; ENDON ON Ping#8.8.8.8#Success>0 DO backlog LedState 1; Var5 %Var1%; ENDON
    • Hard reboot via power-on / power-off device

Frequently Asked Questions (FAQ):

1. How to Change WiFi Credentials:

1.1 Using WebUI:

  • If still connected to the current network, access the Tasmota WebUI by entering the Sonoff S31 IP address in a web browser.
  • Navigate to the "Configuration" tab and update the WiFi credentials.

1.2 Using Sonoff Button:

  • To force Tasmota into hostapd mode, press and hold the Sonoff button for >40 seconds.
  • Once in hostapd mode, connect any device to the unprotected SSID "tasmota-*."
  • Access the Tasmota configuration interface through the connected device to change WiFi credentials.

2. Why not using the recommended rule in the docs?

2.1 Missing unix time

  • after reboot of a modem/router no NTP is possible
  • The rules are dependent on Rule1, which sets the initial Unix time. Ensure that Rule1 is executed before other rules to establish the correct time reference.

2.2 reset config disable

  • with latest tasmato release, regular reboots within <10sec can lead to disable rules. Fixed in autoexec.bat

2.3 Missing ramp-up time reboots modem/router too early

  • A ramp-up time of, for example, 10 minutes is missing in the rules. Adding a delay or ramp-up time is essential to allow the modem/router to fully restart before subsequent commands are executed. Adjust the timing in the rules to accommodate the restart time of your specific modem/router.

2.4. Variable init

  • Without an active Wifi ( which is not available upon restart) the triggers needs to be Power1#Boot instead of system#boot
  • see discussion

3. Additional Information:

  • For more detailed information, troubleshooting, and advanced configurations, refer to the Tasmota Documentation.

Note: This guide assumes a basic understanding of soldering and familiarity with the Tasmota firmware. Always follow safety precautions and guidelines provided by the hardware and firmware documentation.

wifirebooter's People

Contributors

iec61131 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.