# Esp8266 and multiple ds18b20's with mqtt

**URL:** <https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556>\
**Category:** General\
**Tags:** http-request, mqtt\
**Created:** [30 March 2022 17:47 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556 "2022-03-30T17:47:18Z")\
**Posts on this page:** 14\
**Page:** 13

<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:** [21 April 2022 18:57 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/241 "2022-04-21T18:57:51Z")

</div>

The topic in earlier screen shot was just Wferm, now it is showing Wcontrol.

Show me the tasmota MQTT screen, did you do something odd with topic ?

---

<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:** [21 April 2022 19:01 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/242 "2022-04-21T19:01:33Z")

</div>

![mqttlines](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/39b305f947009e858d69182275c026a67e962935.png)

 ![mqttparamnow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/eea942eeeddd07f9e73908228d04099a3561306a.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:** [21 April 2022 19:02 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/243 "2022-04-21T19:02:44Z")

</div>

can you set full topic back to - %prefix%/%topic%/

---

<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:** [21 April 2022 19:07 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/244 "2022-04-21T19:07:03Z")

</div>

ok i did that it powered on when i clicked the switch, but the switch did not go to on mode

---

<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:** [21 April 2022 19:08 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/245 "2022-04-21T19:08:26Z")

</div>

what do you see in console when you trigger the dashboard switch

---

<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:** [21 April 2022 19:12 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/246 "2022-04-21T19:12:22Z")

</div>

For MQTT in to switch I think the topic should be **stat/Wferm/POWER**

If you check in tasmota console you should see the response on that topic now.

---

<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:** [21 April 2022 19:18 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/247 "2022-04-21T19:18:55Z")

</div>

![before](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c6f40308fae8a3f304e7bec6247e350d0274967.png)  
 ![after](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/4/04927c11ae50b8f7df637cc033147df44c8ef4e6.png)

---

<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:** [21 April 2022 19:21 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/248 "2022-04-21T19:21:29Z")

</div>

![debugnodes](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df42192874627fb13b167ddbea8a2894648c09db.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:** [21 April 2022 19:45 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/249 "2022-04-21T19:45:36Z")

</div>

Change mqtt in node it doesn't need parse json setting for that payload

---

<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:** [21 April 2022 19:55 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/250 "2022-04-21T19:55:04Z")

</div>

nailed it! now how to run temp control.  
using pid lol

---

<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:** [21 April 2022 20:00 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/251 "2022-04-21T20:00:41Z")

</div>

the simple things. understanding what was done wrong is 99percent of soulution

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [22 April 2022 03:51 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/252 "2022-04-22T03:51:52Z")

</div>

You need to check the basic commands for Tasmota

stat is used to send a request for Status to the Tasmota device  
cmnd is used to send a command to do something (turn a relay on or off for instance)

> **[Commands - Tasmota](https://tasmota.github.io/docs/Commands/)**
>
> Documentation (Wiki) for Tasmota

Craig

---

<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:** [22 April 2022 04:30 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/253 "2022-04-22T04:30:11Z")

</div>

The problem was I was trying to parse the jason object,  
That is good now. I just need to go over the pid, and ramp thermostat nodes. And figure out how to cool on some vessels and heat on the others.  
Relay is working awesome now. Thanks smg for pointing out my error.  
I am getting a huge grasp on what I'm trying to accomplish.  
And I can't say thanks enough for everyone that has taken there time to aid me in help with this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 May 2022 04:30 UTC](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556/254 "2022-05-06T04:30:53Z")

</div>

Closed on 6 May 2022 04:30 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/esp8266-and-multiple-ds18b20s-with-mqtt/60556.md?page=12)
