Multiple Topics instead of POWER[1-3]

30 views
Skip to first unread message

Marco Mehnert

unread,
Oct 4, 2019, 5:17:40 AM10/4/19
to SonoffUsers
Hello Sonoff Users

Sorry for my bad english!
Using Tasmota 6.6 I would like to use multiple MQTT Topics for each channel with the 3-channel Sonoff Touch instead of different POWER commands. Is this possible in any way? Because I wont to switch a sonoff basic (wich uses POWER) with one of the 3 touch fields.

Thanks and best

Marco

Michael Ingraham

unread,
Oct 4, 2019, 8:48:26 AM10/4/19
to sonof...@googlegroups.com
Rule1
  ON Power1#State DO Publish topic1 %value% ENDON
  ON Power2#State DO Publish topic2 %value% ENDON
  ON Power3#State DO Publish topic3 %value% ENDON

Marco Mehnert

unread,
Oct 4, 2019, 12:18:39 PM10/4/19
to SonoffUsers
Works! Thanks a lot!
To publish a state change on the sonoff basic (topic=SonoffT1) to the 3 channel touch (Topic=SonoffT4), I had to add a rule there as well.

at the touch:
rule1 ON POWER3#State DO Publish cmnd/SonoffT1/POWER %value% ENDON

at the basic
rule1 ON POWER1#State DO Publish cmnd/SonoffT4/POWER3 %value% ENDON


Thanks again an all the best

Marco
Reply all
Reply to author
Forward
0 new messages