# Sonoff TX 2 channel

**URL:** <https://discourse.nodered.org/t/sonoff-tx-2-channel/30986>\
**Category:** Hardware\
**Created:** [31 July 2020 19:24 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986 "2020-07-31T19:24:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OddDave](https://avatars.discourse-cdn.com/v4/letter/o/ee7513/32.png) [@OddDave](https://discourse.nodered.org/u/OddDave)\
**Post date:** [31 July 2020 19:24 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986/1 "2020-07-31T19:24:33Z")

</div>

I just installed a new Sonoff TX 2 channel switch, which I flashed with Tasmota. The MQTT topic is Metal.

I can turn the two channels on and off by the web server. I see in the console that the MQTT topic for

channel 1 is

Metal/POWER1.

channel 2 is

Metal/POWER2.

When I try to send these commands from node red, it always toggles POWER1, and not POWER2.

Anyone got this thing to work?

19:58:19 MQT: stat/Metal/RESULT = {"POWER1":"OFF"}  
19:58:19 MQT: stat/Metal/POWER1 = OFF  
19:58:27 MQT: stat/Metal/RESULT = {"POWER1":"OFF"}  
19:58:27 MQT: stat/Metal/POWER1 = OFF

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [1 August 2020 07:55 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986/2 "2020-08-01T07:55:29Z")

</div>

To switch you need to cmnd topic  
cmnd/Metal/POWER2 ON

---

<div class="post-metadata">

**Author:** ![OddDave](https://avatars.discourse-cdn.com/v4/letter/o/ee7513/32.png) [@OddDave](https://discourse.nodered.org/u/OddDave)\
**Post date:** [1 August 2020 14:18 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986/3 "2020-08-01T14:18:00Z")

</div>

Yes. I had to manually inject this into MQTT. The google inject screwed up the command.

---

<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:** [1 August 2020 15:10 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986/4 "2020-08-01T15:10:27Z")

</div>

What is google inject?

---

<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:** [15 August 2020 15:10 UTC](https://discourse.nodered.org/t/sonoff-tx-2-channel/30986/5 "2020-08-15T15:10:36Z")

</div>

Closed on 15 August 2020 15:10 UTC

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