# How to install Tasmota on an ESP8266

**URL:** <https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587>\
**Category:** Share Your Projects\
**Tags:** node-red-dashboard, function-node, mqtt\
**Created:** [7 June 2022 19:06 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587 "2022-06-07T19:06:29Z")\
**Posts on this page:** 18\
**Page:** 6

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [18 April 2023 14:48 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/101 "2023-04-18T14:48:25Z")

</div>

Did you wire in the 4.7k resistor

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [18 April 2023 15:27 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/102 "2023-04-18T15:27:33Z")

</div>

![configuration](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/1234697e799ece3f302a8dfb008ded29e9c8bfa2.png)  
select configuration  
 ![configfullscreen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db6562249129cac95ba07eca25e271433f081f0d.png)  
select configure module

 ![set module type](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2b448804f8908581c5d0830f101f10df92b3c95.png)  
set to generic(18) for the module type  
then set D2 to be temp sensor. (I forget the wording on this one)  
it is showing the configuration in picture for the pressure sensors not the temp sensor. so don't use i2c that is shown in picture.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [18 April 2023 16:51 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/103 "2023-04-18T16:51:09Z")

</div>

I am using a Wemos D1 Mini. I flashed the firmware with Tasmotizer, choosing tasmota-sensors.bin and ticked "Erase before flashing" (My ESPs have peviously had the Arduino firmware installed).

Once it says it has successfully flashed, I use "Send config" to setup wifi and MQTT details (You have to tick the tiny invisible checkboxes next to Wifi and MQTT).

Give it a little time to connect to the wifi then Get IP (or other means of showing connected devices) then point a browser to it.

As @9toejack says, Configure Module, set the module type as Generic (18) and the SCL and SDA pins.

 ![Untitled 10](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/949f9688c098d26cc96598fd8f2d49bd9afa0d48.jpeg)

Edit - The BME280 sensor I'm using does not need a 4.7K resistor,

Go to Console and enter the command **restart 1**.  
As it restarts you should see this:

 ![Untitled 11](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fe5f00e3c797c2091b338d361c4eb1caaff30bb8.jpeg)  
BME280 data is also available via the command **status 10**  
**i2cscan** is also a useful command - it will give an error or else the I2C address of the sensor.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [19 April 2023 01:18 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/104 "2023-04-19T01:18:04Z")

</div>

Have you checked wiring etc on tasmota docs [here](https://tasmota.github.io/docs/DS18x20/) ?

---

<div class="post-metadata">

**Author:** ![WBr](https://avatars.discourse-cdn.com/v4/letter/w/b3f665/32.png) [@WBr](https://discourse.nodered.org/u/WBr)\
**Post date:** [19 April 2023 07:35 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/105 "2023-04-19T07:35:51Z")

</div>

Yes, I wired it correctly.

But do i need to connect the DS18B20 data wire to D2?

Because D2 (gpio4) is the SDA pin of the ESP8266 if i am not mistaken

So do I label that pin (in configure) as DS18B20 or SDA

 ![set module type](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b2b448804f8908581c5d0830f101f10df92b3c95.png)  
D2 SDA  
D2 DS18B20

I am confused 🙂

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [19 April 2023 07:49 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/106 "2023-04-19T07:49:26Z")

</div>

I said in that photo ignore the sda, you can use any gpio that will show you to change it. You need to select do down and select I believe is ds18xx0 something weird like that

---

<div class="post-metadata">

**Author:** ![markost](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@markost](https://discourse.nodered.org/u/markost)\
**Post date:** [19 April 2023 07:51 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/107 "2023-04-19T07:51:18Z")

</div>

Ds18b20 is 1-wire, not i2c.

Look at tasmota page [DS18x20 temperature sensor - Tasmota](https://tasmota.github.io/docs/DS18x20/)

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [19 April 2023 07:57 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/108 "2023-04-19T07:57:15Z")

</div>

@WBr use gpio 14 and in drop down select  
"Ds18x20"  
That should get you working. Sorry i had just sent to bed. But got up to get the correct selection. You can use d2 wich is gpio4 however if you plan to use i2c, you need to leave d1 and d2 alone.  
I use gpio14 which is d5

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 April 2023 08:09 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/109 "2023-04-19T08:09:17Z")

</div>

> [@jbudd](#):
>
> I don't need a 4.7K resistor, I believe the D1 Mini has it on the board.

Can you point to where you read that?

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [19 April 2023 08:29 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/110 "2023-04-19T08:29:15Z")

</div>

@jbudd  
When using one, even in the esp8266 had an internal pullup resistor you can turn on. But it really isn't the right size and from last year I'd using it that way, i found it is better to use the 4.7k resistor like maxums web sight says.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 April 2023 08:39 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/111 "2023-04-19T08:39:14Z")

</div>

I posted in reply to @WBr asking how I set up Tasmota-sensors for BME280.

I have not read every post in this thread so I don't know what @9toejack's reference to a 4.7K resistor is about, but I have the ESP and sensor successfully sending data to MQTT without one.  
It did trigger a memory that I read of a need for a resistor for some purpose when using a bare ESP8266, along with a picture of a development board showing the resistor for that purpose is on the board. I can't find this page now of course.

So I don't mean to undermine the advice that you need one.  
I should have said "I'm not using a 4.7K resistor, what is that needed for?"

Apologies for muddying the water.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 April 2023 09:01 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/112 "2023-04-19T09:01:31Z")

</div>

I think it is better to use an external resistor. It may work ok without one, but possibly only if the device is on a short lead and in an area of low electrical interference. The purpose is to make sure the data line pulls up fully when the sensor is not pulling it down.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 April 2023 09:09 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/113 "2023-04-19T09:09:22Z")

</div>

Can you point me to where this resistor is prescribed? Maxums website?  
I'm in the dark here!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 April 2023 10:18 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/114 "2023-04-19T10:18:06Z")

</div>

Maxim were taken over by Analog Devices.

> **[DS18B20 Programmable Resolution 1-Wire Digital Thermometer | Analog Devices](https://www.analog.com/en/products/ds18b20.html#product-overview)**
>
> The DS18B20 digital thermometer provides 9-bit to 12-bit Celsius temperature measurements and has an alarm function with nonvolatile user-programmable upper and lower trigger points. The DS18B20 communicates over a 1-Wire bus that by definition...

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [19 April 2023 11:11 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/115 "2023-04-19T11:11:24Z")

</div>

Understood. Different sensor.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 April 2023 21:26 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/116 "2023-04-19T21:26:27Z")

</div>

I2c bus should also be pulled up (typically 10k).

---

<div class="post-metadata">

**Author:** ![9toejack](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/9toejack/32/56868_2.png) [@9toejack](https://discourse.nodered.org/u/9toejack)\
**Post date:** [20 April 2023 01:48 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/117 "2023-04-20T01:48:49Z")

</div>

I do not use a pullup resistor with the i2c communication , I use the ads1115 (originally Texas Insterments) here is the first page about the ads1115 with a block diagram.

 ![ads1115_pg1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f4a24228770b4517e051620299d7c1e228361432.png)  
 ![ads1115_pt2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1cc7e28839a39ec309ae92f0e499d5111ed3bbb0.png)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [20 April 2023 01:57 UTC](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587/118 "2023-04-20T01:57:26Z")

</div>

Most i2C sensors have pullup resistors built in.

As long as a least one device on the bus has pullups then it should be fine.

The only problem would be if you have a lot of devices on the bus with pullups as the resistance is decreased with each extra device and "could" become too low for the devices to pull the bus low.

[Previous page](https://discourse.nodered.org/t/how-to-install-tasmota-on-an-esp8266/63587.md?page=5)
