All Projects → tIsGoud → Tasmota-on-WEMOS

tIsGoud / Tasmota-on-WEMOS

Licence: MIT license
Install Tasmota software on a WeMos D1 mini (pro) with PlatformIO

Projects that are alternatives of or similar to Tasmota-on-WEMOS

ioBroker.sonoff
Control Sonoff-Tasmota devices via ioBroker
Stars: ✭ 34 (+41.67%)
Mutual labels:  sonoff, tasmota
node-red-contrib-tasmota
Tasmota devices for NodeRed
Stars: ✭ 16 (-33.33%)
Mutual labels:  sonoff, tasmota
EspBuddy
Wrapper to easily upload (OTA or Serial), backup, batch query, monitor ESP8266 boards using Esptool.py, Espota.py and Platformio
Stars: ✭ 47 (+95.83%)
Mutual labels:  sonoff, tasmota
Tasmota
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
Stars: ✭ 16,624 (+69166.67%)
Mutual labels:  sonoff, tasmota
TasmoManager
A beginner friendly desktop UI for Tasmota flashed devices.
Stars: ✭ 53 (+120.83%)
Mutual labels:  sonoff, tasmota
ESPHome-Devices
A collection of ESPHome custom components, configuration files, and custom code for my various ESP8266/ESP32 devices that integrate with Home Assistant.
Stars: ✭ 83 (+245.83%)
Mutual labels:  wemos-d1-mini
sonoff-basic-openhab
A Sonoff Basic firmware to work with openHAB
Stars: ✭ 21 (-12.5%)
Mutual labels:  sonoff
Sonoff-HomeKit
Эта прошивка делает Sonoff Basic совместимым с Apple Homekit
Stars: ✭ 24 (+0%)
Mutual labels:  sonoff
MicroPython-ESP8266-Nokia-5110-Conways-Game-of-Life
Conway's Game of Life on a Nokia 5110 with WeMos D1 mini running MicroPython ESP8266
Stars: ✭ 27 (+12.5%)
Mutual labels:  wemos-d1-mini
weather-station
Everything you need to run and monitor your own open source weather station. ⛅
Stars: ✭ 38 (+58.33%)
Mutual labels:  wemos-d1-mini
Tasmota-specials
Tasmota unofficial firmware builds. Install via Tasmota WebInstaller
Stars: ✭ 54 (+125%)
Mutual labels:  tasmota
sonoff-homie
Homie based software for Sonoff module
Stars: ✭ 25 (+4.17%)
Mutual labels:  sonoff
Neon.HomeControl
Home Automation System, similar to HomeAssistant but made with .net core and ❤️
Stars: ✭ 46 (+91.67%)
Mutual labels:  sonoff
Doorbell-via-Wemos-and-optocoupler
Digital version of my "analog" doorbell project to determine if the doorbell was pressed.
Stars: ✭ 55 (+129.17%)
Mutual labels:  wemos-d1-mini
mqtt2prometheus
MQTT to Prometheus gateway
Stars: ✭ 231 (+862.5%)
Mutual labels:  tasmota
HomeApp
A little smart home app for Philips Hue and other devices
Stars: ✭ 54 (+125%)
Mutual labels:  tasmota
Fritzing-Part-WeMos-D1-mini-Shields
Fritzing Part: WeMos D1 Mini Shields
Stars: ✭ 32 (+33.33%)
Mutual labels:  wemos-d1-mini
LWClock
Multifunctional clock based on ESP8266 and MAX79xxx for Home Automation (IoT)
Stars: ✭ 40 (+66.67%)
Mutual labels:  wemos-d1-mini
Fritzing-Part-WeMos-D1-Mini
Fritzing Part: WeMos D1 Mini
Stars: ✭ 75 (+212.5%)
Mutual labels:  wemos-d1-mini
esphome-devices
ESPHome Device Configurations Repository - A database of user submitted configurations for a variety of devices which can be flashed to run ESPHome.io firmware.
Stars: ✭ 71 (+195.83%)
Mutual labels:  sonoff

Tasmota on WEMOS

Install Tasmota software on a WEMOS D1 mini (pro) with PlatformIO.

I assume you are familiar with the Sonoff-Tasmota software by Theo Arends. To get started do read the Sonoff-Tasmota wiki pages. This page is merely to help those who are trying to get the Sonoff-Tasmota software running on a WeMos D1 mini or WeMos D1 mini pro board.

Requirements:

Software Versions

  • Sonoff-Tasmota v5.1.3
  • PlatformIO IDE v2.0.0-beta3 | Core 3.4.0b3

WeMos Hardware used

  • WeMos D1 mini v2.1.0
  • WeMos D1 mini Pro v1.0.0
  • WeMos DHT11 Shield
  • WeMos Relay Shield
  • WeMos 1-Button Shield v2.0.0

I tested the Tasmota software with the DHT11-, Relay- and Button-shield but these are optional.

PlatformIO

Load the Sonoff-Tasmota base folder, including platformio.ini in PlatformIO.

Changes via the PlatformIO Home page:

  • Platforms: Install the platform "Espressif 8266".

Changes in the file platformio:ini

In platformio.ini we are going to add a new environment section and set the default environment to the newly created section.

First we create the new environment section.

  • Copy the first environment section named "sonoff".
  • Paste the section at the bottom of the file.
  • Name the new section "wemos-d1-mini".
  • Change the board type from esp01_1m to d1_mini.

The section should look like the following:

; WeMos (ESP8266 based)
[env:wemos-d1-mini]
platform = espressif8266
framework = arduino
board = d1_mini
board_flash_mode = qio
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

The next step is to set the default environment to our newly created environment. In the [platformio] add the following line:

env_default = wemos-d1-mini

Your platformio.ini should look like this:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter, extra scripting
;   Upload options: custom port, speed and extra flags
;   Library options: dependencies, extra library storages
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/en/stable/projectconf.html

[platformio]
src_dir = sonoff
env_default = wemos-d1-mini

; Sonoff et al (ESP8266 based)
[env:sonoff]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = qio
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

; Sonoff Touch and Sonoff 4CH (ESP8285 based)
[env:sonoff-touch-4ch]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

; WeMos (ESP8266 based)
[env:wemos-d1-mini]
platform = espressif8266
framework = arduino
board = d1_mini
board_flash_mode = qio
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON

Change the user_config.h

Change the user_config.h to match your situation:

  • Set the WiFi SSID and WiFi password
  • Set the MQTT Username and MQTT password or disable MQTT

Build and Upload the firmware

Build and run the software. Make sure there are no errors in compiling and uploading.

Configure the Tasmota software

You can use a tool like fing or your wireless router to find the IP-address of your WeMos device.

The MAC-address starts with:

  • 5C:CF:7F for the WeMos D1 mini and
  • 60:01:94 for the WeMos D1 mini Pro

Open a browser and go to the IP-address of your WeMos device. You should be greeted with the familiar Tasmota configuration screen.

Set the device to "WeMos D1 mini" in the Configuration and save the configuration. The device will reset, just wait for it to return.

WeMos pins vs ESP8266 pins

The WeMos boards have a different pin layout than the ESP8266 layout used in the Tasmota software. The table below shows the correlation:

WeMos Pin Function ESP-8266 Pin
TX TXD TXD
RX RXD RXD
A0 Analog input, max 3.3V input A0
D0 IO GPIO16
D1 IO, SCL GPIO5
D2 IO, SDA GPIO4
D3 IO, 10k Pull-up GPIO0
D4 IO, 10k Pull-up, BUILTIN_LED GPIO2
D5 IO, SCK GPIO14
D6 IO, MISO GPIO12
D7 IO, MOSI GPIO13
D8 IO, 10k Pull-down, SS GPIO15
G Ground GND
5V 5V -
3V3 3.3V 3.3V
RST Reset RST

WeMos DHT11 Shield

WeMos D1 mini with DHT11

To configure the DHT11 shield we return to the Configuration screen. The DHT11 uses D4 on the WeMos and therefore GPIO2 on the ESP8266.

Set GPIO2 to DHT11 like below:

WeMos DHT11 on GPIO2

After saving the configuration and the required reset we should see the following screen:

WeMos DHT11 info in the configuration page

WeMos Relay and Button Shield

WeMos D1 mini Pro with relay and button

To configure the Relay and Button shield go to the Configuration screen. The Relay uses D1 on the WeMos and therefore GPIO5 on the ESP8266. The Button uses D3 on the WeMos, GPIO0 on the ESP8266.

Set GPIO5 to Relay and the GPIO0 to the Button:

WeMos Relay on GPIO5 and Button on GPIO0

Both the webinterface and the button can now be used to toggle the relais on and off.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].