I find the terminology quite confusing. Switch vs. Button. Switchmode. Nothing seems to be what I want to do.
What I plan to to: Connect Multiple Sonoffs Basic and Sonoff Touch 2ch/3ch to openHAB (or another home control system) using MQTT.
However, The buttons on the sonoffs should not necessarily control directly the relays on the same device. e.g. I have a switch for my room (a 3ch one) even so, I have only 2 outgoing wire connections to ceiling lamps. But I also have some LED strips and other lamps, I want to control using mqtt.
I want the button 1 to e.g. control the main light (relay 1 on the same device) as well as some led strip. Button 2 is an "All off" switch.
So I want different topics per device (I have written a firmware by myself, but it does not work stable, so I want to switch to tasmota):
home/ceiling/relay1 < ON or OFF
home/ceiling/relay2 < ON or OFF
home/ceiling/btn1 > TOGGLE
home/ceiling/btn1 > TOGGLE
Great!
Tasmota can perform all the tasks you need.
All the information you required is already in the wiki. Also there are examples.
Please, if you need more information that you can not find in the wiki, please search for that in the issues, in the forum and in the Tasmota chat.
Support Information:
See Wiki for more information.
See Community for forum.
See Chat for more user experience.
Thanks
I have essentially the same problem - I have a NodeMCU flashed with Tasmota. There's a switch on one GPIO pin (designated as Switch 1) and an RGB LED on 3 other pins (designated as PWM1, 2, 3, with SetOption15 letting me control color). I want the two to be completely separate - the state of the switch should not affect the LED in any way.
Can't figure out how to do it - I tried changing the Switch from 1 to 2, and even to 5, behavior persists.
How can I dissassociate the two?
Please don't just post a link to the wiki - I've been all over it, and haven't figured it out. Maybe it's me, maybe it's not clearly explained. If it's on the wiki, where, specifically?
Unfortunately, while the wiki has very complete info on various commands and options, it seems to have very few explanations of what the commands and options are for - simply stating that option X gives effect Y doesn't always help determine why one would want Y.
Seriously. Why is this so hard to get help on? Why is there not a clear article on separating the switch from a relay. All I see is the same "go read the wiki" response from everyone. It's not in there. I've been looking for 4 hours now.
The full explanation is in the following article:
https://github.com/arendst/Sonoff-Tasmota/wiki/Rule-Cookbook#16-using-an-external-button-with-single-press---double-press-and-hold
You also have the Tasmota support chat on Discord for asking questions.
There is no need for complaining. Just ask nicely. Tasmota is given to you and supported by us (the Tasmota community) just for free.
The full explanation is in the following article:
https://github.com/arendst/Sonoff-Tasmota/wiki/Rule-Cookbook#16-using-an-external-button-with-single-press---double-press-and-hold
You also have the Tasmota support chat on Discord for asking questions.
There is no need for complaining. Just ask nicely. Tasmota is given to you and supported by us (the Tasmota community) just for free.
Still, preparing so called "Common tasks/jobs/issues" on the Wiki will solve lot's of "how to" questions.
Even empty, will fill out with time. For hard-core users it's easy, since they know Tasmota from the ground up, for new one (even smart ones) it is not.
Link is broken.
July 2019. Docs have moved twice since then.
https://tasmota.github.io/docs/Rules/#button-with-single-press-double-press-and-hold
Most helpful comment
Seriously. Why is this so hard to get help on? Why is there not a clear article on separating the switch from a relay. All I see is the same "go read the wiki" response from everyone. It's not in there. I've been looking for 4 hours now.