# Sonoff T0 switch and nodered

**URL:** https://discourse.nodered.org/t/sonoff-t0-switch-and-nodered/22654
**Category:** General
**Created:** [5 March 2020 09:30 UTC](https://discourse.nodered.org/t/sonoff-t0-switch-and-nodered/22654 "2020-03-05T09:30:30Z")
**Posts on this page:** 3
**Page:** 3

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [5 March 2020 15:08 UTC](https://discourse.nodered.org/t/sonoff-t0-switch-and-nodered/22654/41 "2020-03-05T15:08:19Z")

</div>

I don't understand your response. What is the problem ?

The flow should split up: ledstrip should turn on regardless of the time, main light should turn on based on time.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [5 March 2020 16:43 UTC](https://discourse.nodered.org/t/sonoff-t0-switch-and-nodered/22654/42 "2020-03-05T16:43:02Z")

</div>

If I understand, in addition to what you currently have, you want to be able to press the wall switch to turn off the LED lights. Is that correct?

And currently that causes the main light to turn on, if it s off.

You should place a seperate `debug` node on all the MQTT-in nodes and then use the switch to shutoff the LED lights. Then you can look at what is coming into the flow as a result of that action.

With that knowledge you should be able to look at the flow and determine what path msg's are going that endup sending a signal to turn on the main light.

---

<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: [4 May 2020 16:51 UTC](https://discourse.nodered.org/t/sonoff-t0-switch-and-nodered/22654/43 "2020-05-04T16:51:36Z")

</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-t0-switch-and-nodered/22654.md?page=2)
