Thanks Digiblur for creating this video and pointing it to me in my previous question! In my attempt to help the community, I created the following summery of your video based on your directions. The rule I created is for my Teckin power strip. Perhaps you'd like to add these directions to your video description to help the next person. Feel free to use how ever you wish. I tend to make these text files to remind me how I programed each device so I can rapidly repeat the process. Change button press number to different functions: Note: must be on Tasmota v8.3 or later 1) In templates: ensure button 1 is selected. Run the following commands: 2) determine button states (can skip and use results below): rule1 on button1#state do publish button_test %value% endon 3) rule1 1 Results: single press - state 10 double press - state 11 tripple press - state 12 quad press - state 13 penta press - state 14 Hold press - state 3 Decouple button from relay: 4) so73 1 Make the following rules: Hold = all relays, single press = relay1, double press= relay2, tripple press = relay3, quad press = relay4, penta press = relay5 5) rule1 on button1#state=3 do power0 toggle endon on button1#state=10 do power1 toggle endon on button1#state=11 do power2 toggle endon on button1#state=12 do power3 toggle endon on button1#state=13 do power4 toggle endon on button1#state=14 do power5 toggle endon Set hold time to .7 seconds: 6) so32 7 Turn on rule1: 7) rule1 1
Awesome video Travis, I could have used this the other day. I lost wifi for a bit and had several things plugged into my plug strip, I needed to turn 1 device on with out turning off/on all of them, this functionality would have saved me.. Lol
I wasn't able to get this to work on my gosund switch I set up by watching your video from last year until I realized I had to go into the template and change GPIO0 from Switch1 (9) to Button1(17). thanks for the video!
Thank you for your time creating those videos. Speaking of TASMOTA rules, I was watching your video about the PIR sensor and TASMOTA rules for a bathroom light. Can be the following implemented only with TASMOTA rules? - Button single press = Light ON and PIR sensor to turn Light OFF after 3 min, if no movement - Button double press or hold = Light ON and PIR sensor to turn Light OFF after 15 min, if no movement (for shower time...) - if sun below horizon PIR sensor to turn Light ON and PIR sensor to turn Light OFF after 3 min, if no movement
I have this automation in Node-RED and is working fine. There is an example in the TASMOTA rule cookbook about how to “Enable PIR switch only at night” , I tried it but doesn’t work as should. Rule1 on Switch1#state=1 do backlog event checksunrise=%time%; event checksunset=%time% endon on event#checksunrise%sunset% do power1 1 endon
loving this.. got touch buttons working on tasmota esp32 now to get it to do a websend or mqtt to switch wled on this is so powerfule thank for sharing
heres the rule i using no mqtt sending on off commands to wled and to power1 rule3 on button1#state=10 do backlog power1 toggle; websend [192.168.1.50]/win&T=1 endon on power1#state=0 do backlog power1 0; websend [192.168.1.50]/win&T=0 endon
This is really good stuff. I've just gotten into my smarthome stuff (four light switches and HA running on a RPi4) and already have some ideas on using multipress to control some smart bulbs in the future. Thanks for the tips Travis!
Excellent video thanks, I would like to know if I can create a rule like this: -> double press and hold simultaneously to increase the brightness of a dimmable ZigBee bulb. -> single press and hold simultaneously to lower the brightness of a dimmable ZigBee bulb
Dear Mr.Digiblur Congratulations for your clear tutorial about tasmota and buttons.Impressive work. Mr.Digiblur I already read and read tasmota tutorial but can´t do a simple action with a button. I need To press a pre configured button using ESP32 and put it in AP mode (I mean reset/change the wifi credentials).If Esp32 don´t find the configured wifi network It just stay in a loop forever trying to connect to a nonexistent network.Thanks a lot, best regards
Hello, the video is great to learn new things, thank you very much for sharing it, I would like to know if you can help me with a problem that I have with my tasmota devices which I am handling with the esp8266 nodemcu and they disconnect me every time and I have to go back to reconfigure I thank you very much if you know that it may be the cause of the faya
@@digiblurDIY Good afternoon when I say it disconnects it is because after a few hours of working well it disconnects and does not let me enter from the browser with the IP that tasmota assigned me to configure it and it does nothing, I have two infrared sensors to activate two buttons that activate two relays but they don't work either It is as if I lost the connection completely and I have to do the whole process from scratch with the tasmota software, I already changed the power supply in case it is current but the module I am using is an esp8266 nodemcu
Another great old video. But what's my deal? I have my buttons all hooked and ruled up. I even get SINGLE-DOUBLE etc into HA. But for some reason Tasmota won't "see" another press of same button. SINGLE for example. Will only be updated in the Tasmota stat topic if another/different "button" is registered after the original SINGLE. Can't do single and another single directly after. What the fudge is SO-ing on here? Thanks.
@@digiblurDIY It's an esp8266 node-mcu. I think I have it "solved" now. Been playing/learning with rules recently. Might have mucked some of those up now. Also the device was resetting itself the last few days (very long button presses). Updated tasmo, started fresh (sorta) generic18 used for buttons-dallas-dht. Seems to work proper now. 2 similar clicks in a row. Happy Camping. Edit... Also has an IR receiver module too.
Controlling the light across the room is very handy. A lot of rooms have a fan or lamp or more that could be controlled by the switch by the door. How can we control an ESPHome device with Tasmota multi-press?
Couple ways. Have Esphome use MQTT. Or have Tasmota push a payload to a MQTT topic and then either have a NodeRed or an HA Automation trigger off this to change the other entity. The same could be done for controlling Zwave and Zigbee devices as well.
Dear Mr.Digiblur thanks for your answer. Dear Mr.Digiblur do you think is it possible to change the RGB light (pwm mode) automactically using alexa and rules to put the colors in a loop ?(I mean changing from red to blue and start again?)in 10 seconds for example?Thanks a lot, best regards
I made a couple edits in my previous post because I noticed my code had an error when I tried to replicate it on another device. Additionally, the code in my last post works on a Yagala Power Strip. It is essentially the same think as a Teckin, just rebranded.... EDIT: All is working well here with the video's directions. Can't wait for Digiblur's updated Tasmota 8.3 fork for Martain Jerry and other dimmers... The templates are just not as good historically for the dimmers IMHO. More complex button presses don't always seam to work with the template. Perhaps I'll try using the blakadder template again with this method... I'll post back my findings.
@@digiblurDIY Sorry for the late reply, been busy with work. Yes, I just tried it. It didn't work for me. I think the PWM option is using something other than button 1 in the template.
No templates needed with Martin Jerry dimmers. Use the modules as it is built in. I have the latest 8.3.1.2 on my github now if you want to use it for multipress.
Back again: Thanks for the video, they come in handy at timestamp 6:30 you mention the presses is send over mqtt. I have been trying to make a sensor to pick up ie. single, double and so on in HA without any luck. the purpose is to have double press toggle the garage door which is on esphome. SO I like to create a automation in Ha to do all of my presses action. Can I get a hint how to make a sensor to see all the presses. thanks in advance
you can do it with a few rules to a custom topic or you can break out the JSON. I did the breakout JSON thing on NodeRed. Which will you be using HA or NR?
Is it possible to use a WiFi light switch to control a WiFi/RF led strip? Looking to have something like short press=led strip on and long press or double press to cycle through say red/green/blue colours
Excelent video, I get working all my sonoffs in my house like this, if you want a video explaning something about tasmota, Travis Is the one, thanks for your Time
Hi, I try to follow your instruction for multi press on the Tessan 3 buttons dimmer but the Long press works but not multi press. You mention it needs to be a button but the template on the Tessan MJ-SD01 dimmer with your custom firmware use switches. Will these buttons not able to do the multi press?
Yep, the Tessan/MJ dimmers will work with multipress. I use one in my front room and multipress options on each button. Check the bottom of the readme on the fork firmware if you want all three as multipress.
Man, I really need to upgrade my devices. I'm so far behind on my version of tasmota. Q: do you have a list somewhere of the tuya devices that you've successfully flashed and the ones that you couldn't? (different chip or whatever the cause)? Thanks, brother. Excellent work as always.
Is there any way to execute command by on off button.i m not using mqtt I just using web interface of tasmota and I want to use Samsung irsend command I don't want to copy and paste again and again the comad I just want to push on off button to execute the command
Tasmota will wait 0.5 seconds for the next press. If nothing come in it will perform an action. It's not configurable but I can assure you, the timing is good.
Travis, is there a way to use the Mary Jane (MJ-SD01) dimmer switch so that the off/on button at the bottom could be use for multi-press? I've got your latest Tasmota_9.2.0.3(digiDIMv14).bin running on it. I've used this switch before to execute a rule with a long press and it worked fine - but the muti-press would be great.
OK. I think I've been able to replicate the functionality that Travis original rule1 used when using so73=1. I went from Travis's original rule: rule1 on switch3#state=2 do dimmer + endon on switch2#state=2 do dimmer - endon on switch2#state=3 do dimmer 20 endon on switch3#state=3 do dimmer 100 endon To this modified one: rule1 on button3#state=10 do dimmer + endon on button2#state=10 do dimmer - endon on button2#state=3 do dimmer 20 endon on button3#state=3 do dimmer 100 endon on Button1#state=10 DO POWER TOGGLE ENDON endon. Replacing the "switch" with "button" and using the appropriate state. I had to add the POWER TOGGLE command at the end so that the lower button would work with a single press to toggle the light. Feel free to critique - I barely know how to do these console commands...
Question I use SO73 and like you sait it decouple the button from the relay.. how to set it where it .........on button toggle the relay ** these are the actions I get for single press and the relay888 button = 10 BUTTON1#STATE performs "publish button 10" living_rm_fan/stat/BUTTON1T = {"TRIG":"SINGLE"} living_rm_fan/stat/POWER1 = ON
I actually want the button press to toggle power on and off all sockets back on my tasmotized power strip so yeah thanks for the commands commands used: >so73 1 >rule1 on button1#state=10 do power0 toggle endon >rule1 1
I want to convert a Sonoff basic to Tasmota then use a button in the bedroom to turn the lamp on and off with the lamp in the hall so when my wife gets up she can press the button that will turn on the lamp in the hall, as she will not have any phones in the bedroom, any help would be good, thanks love the channel, but I don't use HA
I do this with light switches in the bedroom. Short press turns on the light like normal. Long press sends over the toggle to the lamp across the room. Do you have a light switch or other button to do this with?
I want to toggle my wled light with this method, but i can't figure out the rule to set for that now i have rule1 + on button1#state=11 do publish wled/santi/ T but it doesn't toggle the wled strip
Well after about 30 minutes of googling I give up. I want to take your console commands and save them - and add comments to the various lines. Is there a character that can be used as a "comments" only - like # or ! or whatever? So I could paste the entire content from a text file and have tasmota ignore the commented lines?
It's not a script, Tasmota does have scripting like that but that is much different than what was done here. These are just enabling a few options. What are you trying to google?
In Cisco CLI world if the first character of a line is "!" it is ignored by the device. In a linux script file typical a "#" serves the same purpose. Is there something equivlent to that in tasmota when entering commands via CLI? I doubt there is but I thought if anyone would know you would. It of minor benefit if you wanted to create a how-to text file and have comment lines mix in with the actual commands. You would not have to filter the comments out when cutting and pasting the setup commands.
Can't get double press to toggle the relay. Sonoff-mini with Tasmota 8.3.1. The switch attached to the mini is a momentary button, GPIO4 defined as button2 (18) Tried with these rules : Rule1 On on button2#state=11 do power1 TOGGLE endon on button2#state=10 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon Rule1 On on button2#state=11 do power1 TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon Rule1 On on button2#state=11 do power TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon Rule1 On on button2#state=11 do publish lichtbuitenvoordeur/cmnd/POWER TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon No way to switch the relay
digiblurDIY, Excellent Video . Can I use now multi press on other Tuya-Dimmer (capacitive touch type) not Martin Jerry type (the Other 3 types you shown in your video "How to Setup a Tuya MCU Dimmer - Tasmota Tips Episode 4" !
Unfortunately no, the TuyaMCU handles all the button presses on those style dimmers. The ESP chip is really just a dumb pipe that sends states of the light out over wifi and then receives commands to send to the TuyaMCU.
@@digiblurDIY Thank you so much for your prompt response. You have taken Home Automisation to the very top level. Keep on sharing your genius engineering.
Yeah, I just tried it on a Tessan dimmer which is a MJ-SD02. Problem that I ran into is that the dimmer wants a button 1i which doesn't work with the decouple feature. I when I changed it to button 1, it did successfully complete a websend, but it broke the turn relay on and off. It thinks you are doing a push and hold which swaps between gradually go to 80% brightness or go to 20% brightness. It might work using digiblur's custom firmware. I at least managed to get push and hold working if not multi-press.
10 out 10 bro bedroom light switch i can 1 press toggle roof light 2 presses toggle the toilet light 1 long press toggle the bed lamps 3 presses toggle the hall lights
Thanks Digiblur for creating this video and pointing it to me in my previous question!
In my attempt to help the community, I created the following summery of your video based on your directions. The rule I created is for my Teckin power strip. Perhaps you'd like to add these directions to your video description to help the next person. Feel free to use how ever you wish. I tend to make these text files to remind me how I programed each device so I can rapidly repeat the process.
Change button press number to different functions:
Note: must be on Tasmota v8.3 or later
1) In templates: ensure button 1 is selected.
Run the following commands:
2) determine button states (can skip and use results below): rule1 on button1#state do publish button_test %value% endon
3) rule1 1
Results:
single press - state 10
double press - state 11
tripple press - state 12
quad press - state 13
penta press - state 14
Hold press - state 3
Decouple button from relay:
4) so73 1
Make the following rules:
Hold = all relays, single press = relay1, double press= relay2, tripple press = relay3, quad press = relay4, penta press = relay5
5) rule1 on button1#state=3 do power0 toggle endon on button1#state=10 do power1 toggle endon on button1#state=11 do power2 toggle endon on button1#state=12 do power3 toggle endon on button1#state=13 do power4 toggle endon on button1#state=14 do power5 toggle endon
Set hold time to .7 seconds:
6) so32 7
Turn on rule1:
7) rule1 1
Great Video, this really opens up a lot of stuff. This will drive my wife crazy, she said she needs a manual to live in the house, lol.
Are you kidding me? Updated to 8.3 and it just worked. Game changer indeed!
Thank you. Very clear instructions.
Great video as always!!! Thanks Federico Leoni for an amazing job done...
Easy to follow! Did this to some of my light switches that wanted some additional controls for.
Thanks! Awesome stuff what we can do with these.
Still works today. Thanks so much!
Awesome video Travis, I could have used this the other day. I lost wifi for a bit and had several things plugged into my plug strip, I needed to turn 1 device on with out turning off/on all of them, this functionality would have saved me.. Lol
My bench power strip was the first I did this on, so nice now to just mash the button for each port.
I wasn't able to get this to work on my gosund switch I set up by watching your video from last year until I realized I had to go into the template and change GPIO0 from Switch1 (9) to Button1(17). thanks for the video!
Ahh.. Yep. This is all based on button1 for this.
Excellent video Travis. Thank you.
Thank you for your time creating those videos.
Speaking of TASMOTA rules, I was watching your video about the PIR sensor and TASMOTA rules for a bathroom light. Can be the following implemented only with TASMOTA rules?
- Button single press = Light ON and PIR sensor to turn Light OFF after 3 min, if no movement
- Button double press or hold = Light ON and PIR sensor to turn Light OFF after 15 min, if no movement (for shower time...)
- if sun below horizon PIR sensor to turn Light ON and PIR sensor to turn Light OFF after 3 min, if no movement
No, you could do it with automations in HA and or NodeRed too. Just have to pick whatever is easiest for you.
I have this automation in Node-RED and is working fine.
There is an example in the TASMOTA rule cookbook about how to “Enable PIR switch only at night” , I tried it but doesn’t work as should.
Rule1
on Switch1#state=1 do backlog event checksunrise=%time%; event checksunset=%time% endon
on event#checksunrise%sunset% do power1 1 endon
loving this.. got touch buttons working on tasmota esp32 now to get it to do a websend or mqtt to switch wled on this is so powerfule thank for sharing
Esp32 is pretty damn slick.
heres the rule i using no mqtt sending on off commands to wled and to power1 rule3 on button1#state=10 do backlog power1 toggle; websend [192.168.1.50]/win&T=1 endon on power1#state=0 do backlog power1 0; websend [192.168.1.50]/win&T=0 endon
This is really good stuff. I've just gotten into my smarthome stuff (four light switches and HA running on a RPi4) and already have some ideas on using multipress to control some smart bulbs in the future. Thanks for the tips Travis!
Deep rabbit hole at times but oh so fun and rewarding!
Excellent video thanks, I would like to know if I can create a rule like this:
-> double press and hold simultaneously to increase the brightness of a dimmable ZigBee bulb.
-> single press and hold simultaneously to lower the brightness of a dimmable ZigBee bulb
Like this? th-cam.com/video/LilhuCXYofE/w-d-xo.html
You rock my man!
federico is my father and now im really happy to see my dad in this video
You see Travis? Even my first-born is on it now!
I love it! Teach him all kinds of stuff.
@@digiblurDIY Already started with RGB lights, hehehhe.
@@federicoleoni-it great job, keep up the good work.
@@patrickburton6130 thank you!
Dear Mr.Digiblur
Congratulations for your clear tutorial about tasmota and buttons.Impressive work.
Mr.Digiblur I already read and read tasmota tutorial but can´t do a simple action with a button.
I need To press a pre configured button using ESP32 and put it in AP mode (I mean reset/change the wifi credentials).If Esp32 don´t find the configured wifi network It just stay in a loop forever trying to connect to a nonexistent network.Thanks a lot, best regards
It's a 6 button push to go into AP mode. Set Wificonfig 2 on the console to make it always go into AP mode if WiFi is not available.
Great Tasmota mqtt enabled remote
Hello, the video is great to learn new things, thank you very much for sharing it, I would like to know if you can help me with a problem that I have with my tasmota devices which I am handling with the esp8266 nodemcu and they disconnect me every time and I have to go back to reconfigure I thank you very much if you know that it may be the cause of the faya
What do you mean disconnect you? How?
@@digiblurDIY Good afternoon when I say it disconnects it is because after a few hours of working well it disconnects and does not let me enter from the browser with the IP that tasmota assigned me to configure it and it does nothing, I have two infrared sensors to activate two buttons that activate two relays but they don't work either
It is as if I lost the connection completely and I have to do the whole process from scratch with the tasmota software, I already changed the power supply in case it is current but the module I am using is an esp8266 nodemcu
Another great old video. But what's my deal? I have my buttons all hooked and ruled up. I even get SINGLE-DOUBLE etc into HA. But for some reason Tasmota won't "see" another press of same button. SINGLE for example. Will only be updated in the Tasmota stat topic if another/different "button" is registered after the original SINGLE. Can't do single and another single directly after.
What the fudge is SO-ing on here?
Thanks.
what device? Is it inverted maybe?
@@digiblurDIY It's an esp8266 node-mcu. I think I have it "solved" now.
Been playing/learning with rules recently. Might have mucked some of those up now. Also the device was resetting itself the last few days (very long button presses). Updated tasmo, started fresh (sorta) generic18 used for buttons-dallas-dht. Seems to work proper now. 2 similar clicks in a row. Happy Camping.
Edit... Also has an IR receiver module too.
Controlling the light across the room is very handy. A lot of rooms have a fan or lamp or more that could be controlled by the switch by the door. How can we control an ESPHome device with Tasmota multi-press?
Couple ways. Have Esphome use MQTT. Or have Tasmota push a payload to a MQTT topic and then either have a NodeRed or an HA Automation trigger off this to change the other entity. The same could be done for controlling Zwave and Zigbee devices as well.
Dear Mr.Digiblur thanks for your answer.
Dear Mr.Digiblur do you think is it possible to change the RGB light (pwm mode) automactically using alexa and rules to put the colors in a loop ?(I mean changing from red to blue and start again?)in 10 seconds for example?Thanks a lot, best regards
Probably just kick off an automation to do that type thing. Trigger whatever you want really with Home Assistant.
Great video!!
Glad you enjoyed it
I made a couple edits in my previous post because I noticed my code had an error when I tried to replicate it on another device. Additionally, the code in my last post works on a Yagala Power Strip. It is essentially the same think as a Teckin, just rebranded....
EDIT: All is working well here with the video's directions. Can't wait for Digiblur's updated Tasmota 8.3 fork for Martain Jerry and other dimmers... The templates are just not as good historically for the dimmers IMHO. More complex button presses don't always seam to work with the template. Perhaps I'll try using the blakadder template again with this method... I'll post back my findings.
Have you seen the PWM Dimmer Module yet? Just pick PWM Dimmer in Configure Module and let it go, no template, no rules.
@@digiblurDIY Sorry for the late reply, been busy with work. Yes, I just tried it. It didn't work for me. I think the PWM option is using something other than button 1 in the template.
No templates needed with Martin Jerry dimmers. Use the modules as it is built in. I have the latest 8.3.1.2 on my github now if you want to use it for multipress.
Back again: Thanks for the video, they come in handy
at timestamp 6:30 you mention the presses is send over mqtt.
I have been trying to make a sensor to pick up ie. single, double and so on in HA without any luck.
the purpose is to have double press toggle the garage door which is on esphome. SO I like to create a automation in Ha to do all of my presses action.
Can I get a hint how to make a sensor to see all the presses.
thanks in advance
you can do it with a few rules to a custom topic or you can break out the JSON. I did the breakout JSON thing on NodeRed. Which will you be using HA or NR?
@@digiblurDIY I'm using HA...
RUL: BUTTON1#STATE=10 performs "power1 toggle"
MQT: stat/living_rm_fan/RESULT = {"POWER1":"ON"}
MQT: stat/living_rm_fan/POWER1 = ON
RUL: BUTTON1#STATE performs "publish button 10"
MQT: button = 10
MQT: stat/living_rm_fan/BUTTON1T = {"TRIG":"SINGLE"}
RUL: BUTTON1#STATE performs "publish button 11"
MQT: button = 11
MQT: stat/living_rm_fan/BUTTON1T = {"TRIG":"DOUBLE"}
RUL: BUTTON1#STATE performs "publish button 12"
MQT: button = 12
MQT: stat/living_rm_fan/BUTTON1T = {"TRIG":"TRIPLE"}
RUL: BUTTON1#STATE performs "publish button 13"
MQT: button = 13
MQT: stat/living_rm_fan/BUTTON1T = {"TRIG":"QUAD"}
probably do something like `rule1 on button1#state do publish stat/%topic%/button1 %value% endon`
Can you explain me how to 'set' the color for example to full white and full brightness of the light you send a mqtt command to.
I mean in one command so I can toggle on/off and if on, be sure that the white value is 100% and the brightness is 100%
Yep. It does depend on the color channels. For instance a 5 channel light. Color 0,0,0,255,0 is full bright cool white channel.
Hello, Thank you for this video, How do I load tasmoa on the kmc 4 plug?
Either get lucky with Tuya Convert or flash manually.
Is it possible to use a WiFi light switch to control a WiFi/RF led strip? Looking to have something like short press=led strip on and long press or double press to cycle through say red/green/blue colours
Yes. I have done this very thing with Tasmota based light strips and Zigbee ones.
well done! :)
Excelent video, I get working all my sonoffs in my house like this, if you want a video explaning something about tasmota, Travis Is the one, thanks for your Time
Thank you!
Amazing !
Hi, I try to follow your instruction for multi press on the Tessan 3 buttons dimmer but the Long press works but not multi press. You mention it needs to be a button but the template on the Tessan MJ-SD01 dimmer with your custom firmware use switches. Will these buttons not able to do the multi press?
Yep, the Tessan/MJ dimmers will work with multipress. I use one in my front room and multipress options on each button. Check the bottom of the readme on the fork firmware if you want all three as multipress.
@@digiblurDIY Can you send me the link? I am not able to find it.
github.com/digiblur/Tasmota
Man, I really need to upgrade my devices. I'm so far behind on my version of tasmota.
Q: do you have a list somewhere of the tuya devices that you've successfully flashed and the ones that you couldn't? (different chip or whatever the cause)?
Thanks, brother. Excellent work as always.
Is there any way to execute command by on off button.i m not using mqtt I just using web interface of tasmota and I want to use Samsung irsend command I don't want to copy and paste again and again the comad I just want to push on off button to execute the command
Is the time for the multipress configurable ? How fast shall you push ?
Tasmota will wait 0.5 seconds for the next press. If nothing come in it will perform an action. It's not configurable but I can assure you, the timing is good.
Thanks for the fast reply and your efforts. Will try it soon when I have time and upgrade my devices.
Travis, is there a way to use the Mary Jane (MJ-SD01) dimmer switch so that the off/on button at the bottom could be use for multi-press? I've got your latest Tasmota_9.2.0.3(digiDIMv14).bin running on it. I've used this switch before to execute a rule with a long press and it worked fine - but the muti-press would be great.
Ignore my question. I just noticed that in your gibhut link for your 9.2 that you talked about how to configure that. Let me read over that first...
OK. I think I've been able to replicate the functionality that Travis original rule1 used when using so73=1. I went from Travis's original rule:
rule1 on switch3#state=2 do dimmer + endon on switch2#state=2 do dimmer - endon on switch2#state=3 do dimmer 20 endon on switch3#state=3 do dimmer 100 endon
To this modified one:
rule1 on button3#state=10 do dimmer + endon on button2#state=10 do dimmer - endon on button2#state=3 do dimmer 20 endon on button3#state=3 do dimmer 100 endon on Button1#state=10 DO POWER TOGGLE ENDON endon. Replacing the "switch" with "button" and using the appropriate state.
I had to add the POWER TOGGLE command at the end so that the lower button would work with a single press to toggle the light. Feel free to critique - I barely know how to do these console commands...
Not a problem, jump into discord if you need to discord.digiblur.com
Question I use SO73 and like you sait it decouple the button from the relay..
how to set it where it .........on button toggle the relay
** these are the actions I get for single press and the relay888
button = 10
BUTTON1#STATE performs "publish button 10"
living_rm_fan/stat/BUTTON1T = {"TRIG":"SINGLE"}
living_rm_fan/stat/POWER1 = ON
Rule1 on button1#state=10 do power1 toggle endon
@@digiblurDIY Thanks it work ,
am going to setup double press toggle guest mode , triple open or close garage door an so on
again thanks
I actually want the button press to toggle power on and off all sockets back on my tasmotized power strip so yeah thanks for the commands
commands used:
>so73 1
>rule1 on button1#state=10 do power0 toggle endon
>rule1 1
Glad to hear it helped!
How many rules can you add in tasmota?
A bunch! They added compression to the rules too, so you can pack a bunch into those three buffers.
That power strip works with Tuya-convert? How did i not see this one?
Yep. I did the two listed in my description. Needed some more strips for things and worked perfect for this show and tell.
I want to convert a Sonoff basic to Tasmota then use a button in the bedroom to turn the lamp on and off with the lamp in the hall so when my wife gets up she can press the button that will turn on the lamp in the hall, as she will not have any phones in the bedroom, any help would be good, thanks love the channel, but I don't use HA
I do this with light switches in the bedroom. Short press turns on the light like normal. Long press sends over the toggle to the lamp across the room. Do you have a light switch or other button to do this with?
I want to toggle my wled light with this method, but i can't figure out the rule to set for that
now i have
rule1 + on button1#state=11 do publish wled/santi/ T
but it doesn't toggle the wled strip
you would need an endon after that. It should work as long as the topic/payload is right.
@@digiblurDIY yeah I had the endon on the end, go investigate further.
Well after about 30 minutes of googling I give up. I want to take your console commands and save them - and add comments to the various lines. Is there a character that can be used as a "comments" only - like # or ! or whatever? So I could paste the entire content from a text file and have tasmota ignore the commented lines?
It's not a script, Tasmota does have scripting like that but that is much different than what was done here. These are just enabling a few options. What are you trying to google?
In Cisco CLI world if the first character of a line is "!" it is ignored by the device. In a linux script file typical a "#" serves the same purpose. Is there something equivlent to that in tasmota when entering commands via CLI? I doubt there is but I thought if anyone would know you would. It of minor benefit if you wanted to create a how-to text file and have comment lines mix in with the actual commands. You would not have to filter the comments out when cutting and pasting the setup commands.
Looks like scripting uses ; tasmota.github.io/docs/Scripting-Language/
Can't get double press to toggle the relay. Sonoff-mini with Tasmota 8.3.1. The switch attached to the mini is a momentary button, GPIO4 defined as button2 (18)
Tried with these rules :
Rule1 On on button2#state=11 do power1 TOGGLE endon on button2#state=10 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon
Rule1 On on button2#state=11 do power1 TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon
Rule1 On on button2#state=11 do power TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon
Rule1 On on button2#state=11 do publish lichtbuitenvoordeur/cmnd/POWER TOGGLE endon on button2#state=2 do publish sensor/alllights ON endon on button2#state=12 do publish lichtzitkamerruit/cmnd/POWER toggle endon
No way to switch the relay
Why is set at button2? Once you set the setoption it will decouple the relay.
digiblurDIY, Excellent Video . Can I use now multi press on other Tuya-Dimmer (capacitive touch type) not Martin Jerry type (the Other 3 types you shown in your video "How to Setup a Tuya MCU Dimmer - Tasmota Tips Episode 4" !
Unfortunately no, the TuyaMCU handles all the button presses on those style dimmers. The ESP chip is really just a dumb pipe that sends states of the light out over wifi and then receives commands to send to the TuyaMCU.
@@digiblurDIY Thank you so much for your prompt response. You have taken Home Automisation to the very top level. Keep on sharing your genius engineering.
Yeah, I just tried it on a Tessan dimmer which is a MJ-SD02. Problem that I ran into is that the dimmer wants a button 1i which doesn't work with the decouple feature. I when I changed it to button 1, it did successfully complete a websend, but it broke the turn relay on and off. It thinks you are doing a push and hold which swaps between gradually go to 80% brightness or go to 20% brightness. It might work using digiblur's custom firmware. I at least managed to get push and hold working if not multi-press.
@@bryanp5347 you mean multipress not possible on MJ-SD02. only long press. right !
You can use multipress on the dimmers like this.
10 out 10 bro
bedroom light switch i can
1 press toggle roof light
2 presses toggle the toilet light
1 long press toggle the bed lamps
3 presses toggle the hall lights
I have been using PCBWay for years. They do excellent work and have yet to have any issues with them.
Used them a few times and haven't had issues