# Sonoff and tasmota

**URL:** <https://discourse.nodered.org/t/sonoff-and-tasmota/81237>\
**Category:** General\
**Tags:** node-red-dashboard, home-assistant, mqtt\
**Created:** [12 September 2023 12:09 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237 "2023-09-12T12:09:55Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Dewald](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dewald](https://discourse.nodered.org/u/Dewald)\
**Post date:** [12 September 2023 14:03 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/21 "2023-09-12T14:03:47Z")

</div>

teamviewer is the best i can do

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 September 2023 14:05 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/22 "2023-09-12T14:05:10Z")

</div>

Then I can not help, I thought most browsers can take screenshots.

---

<div class="post-metadata">

**Author:** ![Dewald](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dewald](https://discourse.nodered.org/u/Dewald)\
**Post date:** [12 September 2023 14:09 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/23 "2023-09-12T14:09:58Z")

</div>

_strong text_

 ![2023-09-12-160826_1440x900_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/728d3228500b7e0f0048e1db7ebe9c9bb800e42d.png)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [12 September 2023 14:10 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/24 "2023-09-12T14:10:20Z")

</div>

Try a very simple test to make sure your MQTT broker is working.  
You will need to edit my flow and insert the IP address for YOUR broker.  
 ![basic_check](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/86d82e4498a0c4c1afc9a04525cd9869104a8bdd.png)

```auto
[{"id":"e6c38e507f61e2a1","type":"mqtt in","z":"8765833d3a37a777","name":"","topic":"test","qos":"2","datatype":"auto-detect","broker":"9bae5ec8.785a4","nl":false,"rap":true,"rh":0,"inputs":0,"x":330,"y":660,"wires":[["cbd5a4c2dae7fc55"]]},{"id":"79afd336daf458c5","type":"mqtt out","z":"8765833d3a37a777","name":"","topic":"test","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"9bae5ec8.785a4","x":510,"y":600,"wires":[]},{"id":"9df5cb7356e9bfec","type":"inject","z":"8765833d3a37a777","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Hello world","payloadType":"str","x":340,"y":600,"wires":[["79afd336daf458c5"]]},{"id":"cbd5a4c2dae7fc55","type":"debug","z":"8765833d3a37a777","name":"Check","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":510,"y":660,"wires":[]},{"id":"9bae5ec8.785a4","type":"mqtt-broker","name":"154 server","broker":"192.168.1.154","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}]

```

You should get this result when you click the Inject node.  
 ![text_results](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6b805dfef003ae32750ae8ea38aa0c78e86d61cd.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 September 2023 14:11 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/25 "2023-09-12T14:11:02Z")

</div>

Now click star icon top left to see debug output and post again.

---

<div class="post-metadata">

**Author:** ![Dewald](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dewald](https://discourse.nodered.org/u/Dewald)\
**Post date:** [12 September 2023 14:15 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/26 "2023-09-12T14:15:16Z")

</div>

star icon top left

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [12 September 2023 14:21 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/27 "2023-09-12T14:21:03Z")

</div>

I think @E1cid was probably referring to the Debug Message button.  
 ![debug_option](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/d/fd03c5e15bb18df3ae2b00c0502ae20848a9b764.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 September 2023 14:21 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/28 "2023-09-12T14:21:19Z")

</div>

![chrome_screenshot_1694528407687](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/76e2e5df163da30fdfb828e4279645c030793c85.jpeg)  
[essentials videos](https://m.youtube.com/watch?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6&v=ksGeUD26Mw0&embeds_referring_euri=https%3A%2F%2Fnodered.org%2F&source_ve_path=OTY3MTQ&feature=emb_imp_woyt)  
These videos will explain the basics to you.  
[edit] my mistake it is a beetle/bug by looks of it.

---

<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:** [12 September 2023 14:56 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/29 "2023-09-12T14:56:09Z")

</div>

Maybe someone has already said this...

You probably need to use this option in the switch node:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/b/8b6482dcba1d1aa542da67186b082fa835a4ed01.png)

That should ensure that when you press a physical switch, your dashboard switch will change to match the light's status.

---

<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:** [11 November 2023 14:56 UTC](https://discourse.nodered.org/t/sonoff-and-tasmota/81237/30 "2023-11-11T14:56:55Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/sonoff-and-tasmota/81237.md?page=1)
