Really a great tutorial ! Finally a detailed and complete explanation of the "secrets" of the Tasmota switchmode & switchtopic commands. Thank You very much.
@DrZzs5 жыл бұрын
Excellent!
5 жыл бұрын
This video helps me a lot to solve one of my recent problems. Thanks for your videos DrZzs. I really appreciate them all. ;)
@GnobarEl6 жыл бұрын
Great tutotial! This is what we need. I like to see the projects, but most details are not covered. For ex. I really enjoyed your garage door tutorial, but I dint understand the Switch modes. This happen in a lot of other tutorials. They don't explain how stuffs work. Thanks a lot. Great work! Keep posting more about this.
@DrZzs6 жыл бұрын
great! you got it. I'll keep em coming.
@deviantstudio6 жыл бұрын
man, every time i have to solve some puzzle with my sonoffs i just google it and get the solution for exact my problem (by DrZzs of course). Thank you mister!
@DrZzs6 жыл бұрын
ha! Awesome! Hopefully I'm not causing too many of your problems ;)
@marcinskrzypek66263 жыл бұрын
I used SwitchMode 15, but my Mosquitto broker can't see MQTT message: 08:50:00.435 MQT: tele/tasmota_E53BEA/SENSOR = {"Time":"2021-07-05T08:50:00","Switch1":"ON","Switch2":"OFF"} Maybe someone know why?
@eddeinarowicz83393 жыл бұрын
Is there a switch mode that is best to do a series of toggles on switch. ie- turn switch on, then have scene toggle the switch on/off, on/off, on/off to set a function. Switch mode 7 with a scene?
@neilbrown32814 жыл бұрын
Great topic. What is the best way have having a momentary output? For 0.5 seconds say
@paulbehrens58426 жыл бұрын
Very informative, cheers. Features that I wasn't aware of that will definitely be useful once I actually install some sonoffs.
@DrZzs6 жыл бұрын
And there's more where this came from. I'm still discovering new Tasmota features and Theo keeps adding more too.
@paulbehrens58426 жыл бұрын
Great!
@AdJ_MWT4 жыл бұрын
How to program a specific time for the relay to be turned off after pressing the pushbutton? (20 minutes for example)
@harrydutoit49074 жыл бұрын
I have an ESP8266 D1 mini controling 4xrelays for lights in different rooms, it is also integrated with alexa and works like a dream. However I'm looking to add physical push bottons to enable normal on/off functionaliy, aswell as updating alexa of any state change done by the push buttons. Is there any option to enble this using the D1 mini? I look forward to any feedback.
@JanPieterDuhen6 жыл бұрын
Yet again a truly helpful vid from the Doctor. Thanks!
@DrZzs6 жыл бұрын
Glad to hear it! Thank you!
@sergiogarzaca2 жыл бұрын
Hello, thanks for all your videos. I was wondering if you can help... I have a 3 gang sonoff and want to program ot sononly 1 gang can be turned on at a time. I will use this to make a fan controller in which gangs 1 and 2 passes through a capacitor for speeds low and medium. Obviously 2 gangs turned on at the same time will cause short circuit..... Could you help??!!
@slawomirzieborak91403 жыл бұрын
Hello, could you explain me how to configure sonoff touch T1 or TX to work in pushbutton with dimmer mode. I try to set it up but it doesn't work like it does in your video. I can't set SwitchMode 7. I only expect 230V on the output if I touch the button, and when I hold it, 230V will be there for as long as I hold it. I don't need to send MQTT topics to HA. Can i configure it somehow? Greetings. Slawek Z.
@meierthomas4 жыл бұрын
Great clarification. Been battling with switchmode for a while now. Do you have some video/blog that covers switchmode together with rules? I have a 2 gang switch (one connected to a light, the other to a fan). The switches run Tasmota and are push buttons not rocker switches and I'd like to use switchmode 5 or 6 to utilise the HOLD function as well. The idea is this: When the light (switch1) is on for more than x mins, turn on the fan (switch2) for y mins before turning it off again. Can't get this to work. If I look at the pseudo code it should do something like this: On trigger (i.e. switch1#state=on) start a timer1 x mins If the timer1 has expired AND switch#state=on turn on switch2 for y mins (timer2) Once timer2 has expired turn off switch2
@robertgallant64224 жыл бұрын
Thanks, good info. I have a problem, i have 2 buttons but it only gives me POWER = ON or OFF no matter which button I press. What am I doing wrong or is their a fancy switch mode/option I missed. I tried setting GPIOs as BUTTON1 & 2, as SWITCH1 & 2. I can't get it to tell me which input changed. Any ideas?
@GonzaloEchevarria1712824 жыл бұрын
Thanks man, you are awesome. You saved my proyect! I was able to integrate an external PIR sensor with sonoff SV
@seanosuilleabhainemerald3 жыл бұрын
Thanks for the video. I originally programmed my sonoffs and wemos devices in C++ to handle specific functions. I decided to look at Tasmota this time around but it seems unnecessarily complicated and esoteric. The documentation is difficult to understand and the switchmode and switchstate properties are difficult to relate to typical applications so this video helps a lot.
@chrisdenye34254 жыл бұрын
Hi Dr. Can I configure my shelly1 tasmota with a 'detached 'switch mode like the stock firmware? I am struggling to find this command. Thanks a lot
@ytrew97173 жыл бұрын
basic question but does the tasmota consol save the command/settings we send?
@StephenMannUSA6 жыл бұрын
At 0:38, you show a list of Options, Switchmodes, Sensor settings, etc on the left screen. I have looked all over Arendst's git pages and I can't find that list. Can you provide a hint, or a URL? Thanks
At last I now understand!!! Great work and thanks for another great video.
@DrZzs6 жыл бұрын
yeah! Thanks, and you're welcome!
@gordonfleming49064 жыл бұрын
trying to get this working with a esp8266 and a little button i have. switchmode1 5 switchtopic 1 so32 15, just like you did in the video, on of works fine and sents the mqtt commands, no matter what i do there is no hold
@wangouthangout4 жыл бұрын
This is a man I could very happily enjoy a beer with
@ossssama15 жыл бұрын
how can i toggle the relay on a switch flip and also send a command mqtt message
@BaconRanch5 жыл бұрын
Can you help me (AGAIN) please? I flashed the D1 mini and will hard wire it to a Budweiser goal light via the speaker wires of the goal light to ground and GPIO 14, I think I understand the switchmodes, but first want to make sure I have the right module type, I am gonna shoot the moon and go with "generic" right?
@danny35406 жыл бұрын
Nice ! whats the best SwitchMode for connecting a PIR Sensor ?
@StePhanMckillen6 жыл бұрын
you explain nicely you making it sound easy thanks for taken the time
@DrZzs6 жыл бұрын
Thanks! I'll keep doing it!
@rodrigoschmidtb6 жыл бұрын
Hi DrZzs, Can I use that Hold funtion to stop the Ghost switching? Setting the hold time to 0.2seg for example. That will avoid all the hardware of the low pass filter
@DrZzs6 жыл бұрын
Actually, I think you can. Someone else told me they did that a while ago. Good idea.
@stevebrown14135 жыл бұрын
Great Video as always. Two questions. #1 Is there a video identifying and explaining the various of Sonoff Basic? They do not appear to use model numbers, but my switches (perhaps R2) have black wires replacing the heavy "solder channels" on the board and do NOT have GPIO14 identified. I have not seen my model in any of your videos. #2 I am using a lighted momentary contact switch (in my case between ground and "Key") but I can not find a pin providing 3V that tracks the relay status. There is always 3V between ground and "Key".
@DrZzs5 жыл бұрын
thanks. ya, you have the R2 and now they are on the R3 already. The best place to track changes is probably the Tasmota wiki. github.com/arendst/Sonoff-Tasmota/wiki I'm not sure about a pin that tracks the relay status. I'd guess you'd have to solder directly to the relay control contact. I liked the v1 of the sonoff basic more than the last 2 versions. Wish they still made the old ones.
@williammiller41436 жыл бұрын
Great video! It occurs to me that switch mode 7 would be a feat thing for a garage door opener. I had been using another so off device for that purpose which was set to be a momentary contact device by default but now any sonoff basic with tasmota should work fine.
@DrZzs6 жыл бұрын
Excellent! Let me know how it goes!
@copytype79836 жыл бұрын
That is my next home assistant project! Dr. Zzs answered my question on switchmode! Thanks!!!
@JeremyCook Жыл бұрын
Hi, old thread, but did switchmode 7 work for you in the garage door opener scenario? When using the webgui it still seems to just toggle on and off for me. Thx!
@mr.nobody83476 жыл бұрын
New to Tasmota. What is the significance of the switch number (1-9) when selecting the GPIO14 function? I am working with an SV at the moment and I was having trouble decoupling the reed switch from the relay when using Switch1 and using switchmode1 1 and switchtopic1 1 . Maybe user error but it seems like moving GPIO14 to Switch 2 corrected that problem. Thanks!
@geckodoo6 жыл бұрын
Is there a mode that will send either the momentary or hold command depending on how long you hold the button? This would allow having dual functions, such as normal press to toggle one light, and hold press to switch off all the lights.
@DrZzs6 жыл бұрын
for sure! That's what switchtopic1 should do. If you just touch the button once it will send the "cmnd/sonoff/POWER1 = ON" if you hold it will send "cmnd/sonoff/POWER1 = HOLD" It's a great feature to do exactly what you want. Let me know if you have trouble with it.
@yawarsaeed64995 жыл бұрын
Awesome, I m using Nodemcu module & flashed it with 4Ch DIY Sonoff . 3 channels wall switch ( Rocker Type) working ok. But when the 4th switch is switched ON all previously switched channels goes OFF including the Channel 4 . The module does not come to normal operation until wall switch 4 connected to specific GPIO is revert to pull up level. Sir Can you please help me solve this . Thanks
@nigelholland246 жыл бұрын
Great timing after my post to you. Great video thanks
@DrZzs6 жыл бұрын
Thanks for making a request that so many people needed! What should I do next?
@brysonballing67636 жыл бұрын
This video was helpful. I have another question on the Sonoff SV with Tas. I'm trying to use it to raise and lower a projector screen. the board built in the screen has 3 wires, a up, down, and common. the screen board only needs a short input to start the raise or lower, so a 1 second pulse would be fine. Can I use the GPIOs and ground for this?
@digiblur6 жыл бұрын
Bryson Balling I would check out thehookup channel. He did a recent pool pump modification that would work great for this push button need. Don't think it let's me post links here.
@DrZzs6 жыл бұрын
Here's Rob's pool video: kzbin.info/www/bejne/h5TEe5-mi7R9brc
@dalescott93306 жыл бұрын
love the light up buttons, can you give the link? Great video, well done.
@DannyMullen6 жыл бұрын
Dale Scott same question for me!
@jim20j6 жыл бұрын
switches are Heltec HTTM-SCB touch switches. comes in 4 colors. problem is. if you turn off the light remotely, the light stays on.
@wildur605 жыл бұрын
Hello, how to have the state of the buttons in the state. Thank you
@nickcooper71336 жыл бұрын
Great explanation, thanks. I predict a stream of "Help me, I've reset my sonoff to factory defaults & now it won't connect!" ... keep up the good work.
@DrZzs6 жыл бұрын
ha! Thanks!
@markmacherey47446 жыл бұрын
Nick Cooper after resetting your sonoff, the ssid and password is lost and set to defaults, click the button 4 times. Once the led is blinking connect to the sonoff-xxxxx and reset your ssid and password to your network
@nickcooper71336 жыл бұрын
Mark, many thanks for the advice but I was actually joking about what others may accidentally do. Appreciate the help though.
@alejandroruiz86174 жыл бұрын
Completely new in this and after received my first Sonoff I realized the model R2 has no GPIO 14, Ive seen it can be found in pin 9 of the chip, although is really difficult to solder in such a small location. After Tasmota's flash, can the toggle button in the board (Pairing button/manual switch) be used as a push button still? if so, can Home Assistant recognize the state of the sonoff after it changes using this included push button? My plan is to solder wires to this button and extend it to an external push button. I know I am a bit late to the game but I will appreaciate if you can respond, I'm planning to follow your entire setup/tutorial for my own home automation.
@mraboyum4 жыл бұрын
Hi. The original push-button on Sonoff is GPIO0, that is not visible if you use module type basic. If you change the module type in your tazmotized sonoff you will be able to control gpio0, and you can then change gpio0 to something like switch2.
@alejandroruiz86174 жыл бұрын
@@mraboyum do you recommend a specific module? I'll be using the sonoffs as a light switch only.
@mraboyum4 жыл бұрын
@@alejandroruiz8617 If you choose "Generic (18)" you can change GPIO0. However after some extra thoughts perhaps you can just change the behavior without even changing the module-type, by just making a console command like: "switchmode0 1". Maybe you can try both things, changing the module type only takes about 5-10 seconds, and you can change it back to "Sonoff basic (1)".
@alejandroruiz86174 жыл бұрын
@@mraboyum thanks, I'll research more about it. With your response I have some guidance finally.
@martindupreez75315 жыл бұрын
Hi there. How can I program the HOLD funtion with MQTT as rule in Openhab to switch devices on or off please?
@martynb55106 жыл бұрын
Thanks for all the videos. can i ask if it is possible to use switchmode on sonoff dual to achieve relay 1 on and off as normal when triggered, when relay 2 is triggered relay 1 to be triggered with it on or off
@digiblur6 жыл бұрын
Great video. Do those capacitive buttons work with doing a hold? Nice high tech LED diffuser you got there to not blind the camera!
@DrZzs6 жыл бұрын
Thanks! You caught that?! It was perfect how the wire nut fit on the LED and blocked the light but still glowed enough to let you know it was on. Very fancy. Those cap-touch buttons work like latching switches. So they wouldn't be good for the Hold function. You could do it, but it would be like switching a rocker switch, then 4 sec later, switch it back. I think there's a way to convert them by breaking a solder link somewhere, but I haven't done it. I actually have some other touch modules that act like pushbuttons. Hold command should work with those.
@PakArchives4 жыл бұрын
your are awesome, Thank you very much for your informative videos
@DavidDanielJr6 жыл бұрын
Thanks for this I have a sonoff T1 on the way and was planning on setting up the "hold" command to additonally turn of the smart bulbs in my bedroom lamps. This video just eliminated me having to research what switch mode I need to use for that
@DrZzs6 жыл бұрын
great! It'll be interesting to see if the T1 buttons require any other modification to work with the hold function. If they are latching, then there might be something else you need to do to make them non-latching (or momentary). I have 2 T-1's I'm hoping to get a chance to play with soon. If you get yours working before I do let me know how you did it! thanks!
@SornDP6 жыл бұрын
Good video, just what the doctor ordered ;) I have a related question though: Is it possible to solve this: I connect a toggle switch to the sonoff, so the switch is either on or off, but instead of following this state I would want to toggle the relay the the state changed? For example: the relay is off and the switch is off, I flip the switch to on and the relay turns on. I then send a mqtt message to turn the relay of. So now the switch is on and the relay is off. When I then flip the switch to off I would want the relay to turn on again. So the relay does not follow the switch, but reacts to changes in its state if that makes sense.
@DrZzs6 жыл бұрын
That's a good question. I have the problem that those LED touch buttons don't always turn off (or on) when the relay is toggled in HA (via mqtt). Sometimes when I flip the switch in HA, the LED on the button does go off, but not always. When it doesn't I have to tap it twice to get the relay to switch. Maybe the thing to try is SwitchTopic1. Then instead of using the "stat/sonoff/" topic as the "state_topic:" in HA, use the "cmnd/sonoff/" topic. I haven't tried it, but that might do the trick. If you test it out before me let me know if that does what you're looking for.
@SornDP6 жыл бұрын
Hey Doctor. I finally got around to flashing a few sonoffs of my own and testing this stuff. To get the behavior I want I get go into Configuration -> Configure module. And on this page select the value "09 switch1" for GPIO14. Now the relay is switched when this pin changes. GPIO14 is the 5th "hole" in the sonoff basic, right next to ground so i tested using a jumper wire to connect and disconnect these two terminals and it works! So now I can connect my switch to GPIO14 and ground and get my desired result. And this works even if my mqtt broker or home assistant is offline. I'm not sure this is helpful for your situation, but I figured I would report my succes.
@MrJelle2503DWM6 жыл бұрын
Ty for your inspiring video's. I have a no voltage relay sonoff sv with tasmota that i am going to solder in parallel to a momentary switch, and I need it to be on a pulsetime of 30 since my pelletheater needs a 3 sec push of the button to turn on. How do I setup the sonoff that after a push of the button the state remains on? Now it just toggled to off again after the 3 seconds. It is all kind of new to me, and I got this far. 8)
@DrZzs6 жыл бұрын
sounds like you need a different marker of the state of your devices besides the button/relay. Nothing comes to mind to solve that with just the sonoff SV. One possible solution is a power monitoring plug. With that you could monitor the power usage by your heater and use that as an indicator of the state of the heater. Something like the sonoff s31 or the POW would work. Those power monitoring plugs are usually rated for 16 amps. Hopefully your heater doesn't draw more than that.
@MrJelle2503DWM6 жыл бұрын
@@DrZzs thx the power monitoring is what i read about before but was hoping to avoid it due to.. well. Inexperience and lack of time.. Got so much to learn when you just start off with this. Ty for your comment and suggestion, i will look into it. I think the max watt is 350 so 16a is well enougj
@nazzymac3 жыл бұрын
How do i turn off tasiota automatically after 25 min
@juan11perez6 жыл бұрын
Thank you. Is it possible to do this with a Snonoff T1. Using the "default" button?
@DrZzs6 жыл бұрын
I'm not sure. I've got some T1's to flash soon, so I'll test it out and put the results in the video for sure.
@juan11perez6 жыл бұрын
Thank you very much. Great video. Again
@easwaran836 жыл бұрын
Great tutorial. I have a problem here can you help plz How do I set Default Powen ON state Sonoff Tasmoto? When Power reset’s or I switch off & Switch ON the physical switch I want the sonoff to TURN ON & stay as a default state. But for me, the sonoff Turn’s ON for few seconds & switches OFF automatically, When Power reset’s or I switch off & Switch ON the physical switch
@easwaran836 жыл бұрын
What I mean by power rest here is. Power cutoff to sonoff Input. That's like power failure & then when power failure is restored. I don't use any switch between GPIo & gnd tapping.
@DrZzs6 жыл бұрын
I think I understand. Try typing “poweronstate 3” in the TASMOTA console. If that doesn’t do what you want here’s the list of all the command options. github.com/arendst/Sonoff-Tasmota/wiki/Commands I think one of the poweronstate settings will do what you want. Hope that helps.
@JonasDiferencial5 жыл бұрын
Can I make the switch read a signal instead of sending?
@DrZzs5 жыл бұрын
like connect it to a binary sensor? Yes. you can do that. Again, the switchmode you want will depend on what type of sensor/button you're using.
@JonasDiferencial5 жыл бұрын
@@DrZzs sensor sends a signal 0 or 1 have any button that receives this signal?
@JonasDiferencial5 жыл бұрын
kzbin.info/www/bejne/bnipeJJ3i5aYbdU
@ssinseeme6 жыл бұрын
I have Node MCU running Tasmota. I have a door sensor set up with GPIO14 works fine with topic door. Now how do I add another topic for sensor 2 on GPIO 5 or multiple door sensors. I can't figure out how to change the topic for a specific GPIO?
@DrZzs6 жыл бұрын
TASMOTA assigns a different topic for each switch or relay by adding a number to the end. So if sensor 1 is switch 1 then the topic will be stat/sonoff/power1 (sometimes just power for number 1) So for switch 2 the topic becomes stat/sonoff/power2 You don’t have to change it. Switch 3 would be power3, etc. so in HA your topics for state will look almost the same except that last number. Does that help?
@ssinseeme6 жыл бұрын
Any idea why TASMOTA is not assigning POWER 1 POWER 2 and 3 etc... I have 4 switches and they are all stat/sonoff/POWER. this is the consol set up; SwitchMode1 1 SwitchMode2 1 SwitchTopic 0 18:31:30 MQT: tele/sonoff/SENSOR = {"Time":"2018-06-18T18:31:30","Switch1":"ON","Switch2":"ON","Switch3":"ON","Switch4":"ON"} 18:33:09 MQT: stat/sonoff/RESULT = {"POWER":"OFF"} 18:33:09 MQT: stat/sonoff/POWER = OFF 18:33:10 MQT: stat/sonoff/RESULT = {"POWER":"ON"} 18:33:10 MQT: stat/sonoff/POWER = ON 18:33:26 MQT: stat/sonoff/RESULT = {"POWER":"OFF"} 18:33:26 MQT: stat/sonoff/POWER = OFF 18:33:27 MQT: stat/sonoff/RESULT = {"POWER":"ON"} 18:33:27 MQT: stat/sonoff/POWER = ON 18:33:40 MQT: stat/sonoff/RESULT = {"POWER":"OFF"} 18:33:40 MQT: stat/sonoff/POWER = OFF 18:33:40 MQT: stat/sonoff/RESULT = {"POWER":"ON"} 18:33:40 MQT: stat/sonoff/POWER = ON
@ssinseeme6 жыл бұрын
I found the problem for the record!! and if someone has a similar issue. Since I am a newbie and you are a little advance for me, sometime in your videos you skip some steps as you think are obvious ;) . So in TASMOTA when you set a switch ( or a sensor) on any GPIO you must have it relay set up as well. eg D2 is switch 1 and set D8 for relay 1. then TASMOTA with assign POWER 1 as a Topic.make sure also to set the Topic =0 in console
@DrZzs6 жыл бұрын
ahhh! glad you found it. Sorry I didn't explain that better :)
@tomekajja85106 жыл бұрын
Hi, Nice Video, I have run the command switchmode1 2 on the sonoff touch1 and confirmed its status with the SwitchMode1 command ok.However the LED and relay still work in tandem. Is there another setting needed?
@DrZzs6 жыл бұрын
Thanks! You can change the function of the LED with some other commands: github.com/arendst/Sonoff-Tasmota/wiki/Commands LedPower Show current led power state as On or Off LedPower 0 / off Turn led AND LedState Off LedPower 1 / on Turn led On AND LedState Off LedState Show current led state as 0 to 7 LedState 0 / off Disable use of LED as much as possible LedState 1 / on Show power state on led (inverted for Sonoff Touch) LedState 2 Show MQTT subscriptions as a led blink LedState 3 Show power state and MQTT subscriptions as a led blink LedState 4 Show MQTT publications as a led blink LedState 5 Show power state and MQTT publications as a led blink LedState 6 Show all MQTT messages as a led blink LedState 7 Show power state and MQTT messages as a led blink Hope that's what you're looking for
@mrFractures6 жыл бұрын
Same issue here. Led Power controls the small blinking status LED and not the touch sensor illumination. I would like to use SwitchMode1 2 such that the touch buttons are illuminated when the room lights are off. This would make it easier to find the buttons on the dark.
@yiannisis4 жыл бұрын
I have bought "Moes WS-EUY3 3 Gang Switch" templates.blakadder.com/moes_WS-EUY3.html and whatever SwitchMode I use, it reacts the same. Also I cannot get SwitchTopic 1 to work. Does these commands work with specific switches? MOES buttons look like push buttons.....
@EugenePugach6 жыл бұрын
Super helpful, thanks!
@neeravmakwana7334 жыл бұрын
Thanks for the video, this was really helpful. I'm facing a challenge and would appreciate if anyone can help. I flashed my Sonoff basic with Tasmota and completed the setup including WiFi credentials. I then connected the switch to a light (the only wire connections were live and neutral wires at both ends to respective connections). I then changed GPIO14 to Switch1 (9) and set the switchmode to 0. I was able to control the light from the configuration/web interface. But I expected that switching on or off from the physical switch and switching on or off from the web interface will keep on toggling the light. However, when I switch the light off using the physical switch, the sonoff (probably) gets turned off and I can no longer see it connected to the WiFi. I then set switchmode to 1 but I'm facing the same problem. What am I doing wrong? Thanks.
@meierthomas4 жыл бұрын
So you have a switch and a light. The switch can either be the built-in one or one soldered on to GPIO14) like in the video. The light is connected to the output terminals. "I then connected the switch to a light...". What does this mean? Also don't understand what's in brackets
@hvanmegen6 жыл бұрын
How to I use switchmode when I have a PIR or Radar sensor attached?
@DrZzs6 жыл бұрын
You set it to one of the non-toggle switchmodes so you'll get an On or Off instead of Toggle. I'm pretty sure Switchmode 1 will be the one you want.
@kimlindblom69646 жыл бұрын
Have switchmode 6 and 7 been removed? Can't activate it in tasmota and I can't find it on the wiki either
@DrZzs6 жыл бұрын
looks like they are still there. At the bottom of the "main" list of commands. There's a page that tries to explain switchmode, but last time I looked at it, it didn't cover anything after Switchmode4. github.com/arendst/Sonoff-Tasmota/wiki/Commands#main Hope that helps!
@ashoktvm2 жыл бұрын
Can i achieve the same in ESPhome
@aaliankhan49986 жыл бұрын
I want to connect a servo motor to the sonoff to control my blinds do you know a way to do this? Does tasmota allow you to add a timer to tell it when to stop giving power? Is this even possible. Am I asking to many questions? I definitely don't know the answer.
@DrZzs6 жыл бұрын
You need a motor controller between the Sonoff and the Servo. You can't power the motor directly from the Sonoff, if that's what you're asking. I'm not sure Tasmota is the best platform to use to control a motor. I'd like to do some experimenting with it, but as of right now, I don't know how exactly to do it. Sorry, wish I was able to offer more help
@aaliankhan49986 жыл бұрын
DrZzs I Found this but would this work with the node mcu or the sonoff github.com/jjhtpc/esp8266MQTTBlinds?files=1
@DrZzs6 жыл бұрын
Yes, it looks like it would. But I still don't think you can run a servo with the Sonoff. You can (probably) with the NodeMCU. Best to ask the guy who wrote that code. Good luck!
@aaliankhan49986 жыл бұрын
DrZzs the person made it for the NodeMCU
@boyeselectrical6 жыл бұрын
Hi just wondering if anyone has successfully hooked up a thermistor to tasmota I have looked far and wide to find wiring diagram and instructions for this I would love to monitor my pond temperature and mqtt it to my hassio on my pi3 I see ds18b20 mentioned but no instructions . Regards Dan.
@DrZzs6 жыл бұрын
All I see with a quick look in Tasmota wiki is this: "DS18B20 Temperature - DS18x20 (4) in group 2 Enable option USE_DS18x20 in user_config.h for multiple sensors using OneWire library" I'm guessing you probably already saw that. I'll have to look in my box of sensors and see if I have one of those to try out. What have you tried so far?
@boyeselectrical6 жыл бұрын
Hi thanks for the quick reply I'm sorry to say my knowledge is somewhat limited. So far and thanks to your tutorials I have managed to suceesfully install hassio on my pi3 and I have a dht22 working on tasmotoa firmware loaded onto a nodemcu and it is reporting using mqtt to home assistant. can't wait to get into it all further but thought it would be cool to put a temp probe in my pond as my second sensor using tasmotoa on a webmos mini pro?. I do have a 2 wire 10k thermistor usually used for under floor heating but only know how to hook it up through Arduino using an analog port which I believe is complicated to enable analogue inputs on tasmota ? anyway thanks for your turorials much appreciated .
@florenciob6 жыл бұрын
Hi great job !!!!! Could you send me a link to buy the touch switch? Thanks. I'm trying to find it at Amazon, but I can't
@DrZzs6 жыл бұрын
for sure! getting them on Amazon has been inconsistent. When I have found them there, they've been pretty expensive (like $5 each) Here's an Ali-express link. They've had the best prices (~$1 each). It just takes time to get them. s.click.aliexpress.com/e/nA2FUNV
@florenciob6 жыл бұрын
Thank you very much.
@jjcampis3 жыл бұрын
hi, awesome video!!! i need some help with changing Switch1 to the Switch2#State rule... something like this: rule1 ON Switch2 #State DO Swicth1% value% ENDON thx
@MirkWoot4 жыл бұрын
Helpful, thanks. Official page has some pretty bad examples, none on how do change on individual switches
@marcosalcedo88854 жыл бұрын
Thanks Doc! Great video
@kfash51986 жыл бұрын
Great Video. I'm from Africa, Nigeria and always look forward to your videos. How do I restore states of lights and switches when I restart Home assistant. I hate the fact that all the light and switch states goes back to off even after using "Recorder:"
@DrZzs6 жыл бұрын
Awesome! I have a brother living in Africa right now. I also struggle with erratic lights sometimes after restarting HA. I don't have a great solution right now, but I'll work on it and make a video when I get it figured out.
@kfash51986 жыл бұрын
DrZzs thanks Alot
@dalescott93306 жыл бұрын
i added this automation to all my sonoff, it seams to help with restarts and correcting the states. - alias: "Power state on HA start-up" trigger: platform: homeassistant event: start action: - service: mqtt.publish data: topic: "cmnd/sonoff/power1" payload: ""
@DrZzs6 жыл бұрын
Interesting. I'll have to try that out. Thanks!
@justmaral6 жыл бұрын
Which switchmode and switchtopic chose for PIR sensor(14GPIO)?
@justmaral6 жыл бұрын
My PIR sensor alway on and off
@DrZzs6 жыл бұрын
ya, that will always happen with the PIR sensor. Depending on your PIR there might be jumpers or dials to adjust "retriggering", so after an "on" it won't register another "on" for a period of time. That's a setting on the PIR though. Watch the video I did with the D1 mini and the PIR sensor. kzbin.info/www/bejne/qYfQnWNooLVmerc Use the switchmode/topic I used there. Sorry I don't remember what it was off hand. The way to manage frequent On/Off with the PIR is in HA (or other logic handler, like NodeRED, etc). You set an automation or a rule that says if there is no "On" sensed from the PIR for X time, then flip the relay (lights, etc) to "off". There is a new "rules" feature in Tasmota, but I haven't experimented with it at all yet.
@justmaral6 жыл бұрын
I dont know how to change "retriggering jumper", because My PIR sensor's retriggering jumper is this kind: user-images.githubusercontent.com/10935507/34812154-120a2854-f6d7-11e7-9171-b22d24eaaa49.png
@varunthom6 жыл бұрын
Hi, your videos are really informative. I'm planning to tasmotize my few sonoff 4ch pro r2. I would love to make it in sync with my hardware switch. Can I do it using switchtopic? If so do you know the GPIO locations and ports which I can use for 4 relays on my 4ch Pro r2. Thanks in advance
@DrZzs6 жыл бұрын
Thanks! I don't think the 4ch has any available gpio pins, other than the Rx/Tx and you don't want to use those for external switches. What I think you'd have to do is connect to the contacts on the board that go to the button for the relay you want to control with your hardware switch. Tasmota sets the switchmode to 0 by default, which is "toggle" for a momentary switch, so if you're going to use a rocker-type switch you will want to change the switchmode to 3 or 4 (if I'm remembering right). It'll take a little trial and error but I bet it can be done.
@varunthom6 жыл бұрын
@@DrZzs thanks a lot. I would love to experiment with that.. I'm not familiar with the electronic stuffs. But I'll give it a try. I'm now struggling to find the contacts where I need to solder. I even checked the schematics from their website. But it's all going above my head.
@DrZzs6 жыл бұрын
do you have a multimeter? I would test use contacts connected directly to the buttons. You'll need to be able to tell which contacts are connected to each pole on the switch. Maybe it will be too much to learn from scratch. If you don't think you can do it maybe a different solution would be better.
@varunthom6 жыл бұрын
@@DrZzs I have a multimeter. I'll give it a try. Will keep it posted here.
@DannyMullen6 жыл бұрын
Curious do you have a link to that touch switch you used in the video?
@DrZzs6 жыл бұрын
of course! best price I've found:s.click.aliexpress.com/e/nA2FUNV
@DannyMullen6 жыл бұрын
This one allow for turning the light one and off? It only has 3 pins? I would love a datasheet in english. I have some one order to try.
@DrZzs6 жыл бұрын
I don't have the data sheet. The 3 pins are VCC, Out, Gnd. It acts like a latching switch as-is, but I seem to remember there's a way to make it a momentary switch by adding some solder.
@gumboot136 жыл бұрын
Appears switch mode 5 and 6 may have changed in an update since this was posted as I can't get those modes working. Running firmware 6.1.1. Anyone able to confirm this or if it's just a me issue.
@DrZzs6 жыл бұрын
hmmmm What specific issue are you having? I've used them with 5.14, but haven't tried with 6.1.1 yet.
@gumboot136 жыл бұрын
@@DrZzs I'm getting a different response being posted by the sonoff compared to what you get. Will get the exact response for you later to compare. I've tried it with a few different sonoffs and get the same result. There's also an extra switch option now hence why I think they firmware update may have changed things.
@gumboot136 жыл бұрын
This is the response from the sonoff when I use switch mode 5 or 6 MQT: domoticz/in = {"command":"switchlight","idx":0,"switchcmd":"On"}
@izabelagalicka31366 жыл бұрын
Great video! thanks from Poland!
@PietroBroccolo5 жыл бұрын
Great video as usual! Can you pls link the awesome switch you use in the 1st part?
@stephenharding52386 жыл бұрын
Do you know how to do this with a sonoff touch?
@DrZzs6 жыл бұрын
I'm not sure if the Hold function will work with the Touch. But, I have some T1's I'm planning to flash soon. I'll give it a try with those.
@2Ustfu6 жыл бұрын
Did you know that they are shipping new Sonoff Basics with the pin holes soldered closed. Been struggling to Tazmotized them :-(
@DrZzs6 жыл бұрын
I've heard. I haven't ordered any new ones since then. Check out pogo pins: amzn.to/2LxPT1v You don't need 100 though, that's just the first link I found. we'll just have to hold them on the contacts. I seem to remember some guys making flashing adapters too, maybe on Thingiverse. We'll figure out a solution.
@2Ustfu6 жыл бұрын
Those pogo pins look wicked. Unfortunately, Amazon US won't ship them here -not for a reasonable price anyway. But I did manage to poke through the solder by heating up some pin connectors with a soldering iron. I then tasmotized them using FlashEZ...problem solved....a bit disappointed that sonota doesn't work anymore though. OTA was my go to flashing method.
@DrZzs6 жыл бұрын
Try a different seller. AliExpress or Banggood might have them. I love flashEZ with the bin file. So simple. And I’ve got another twist to add. There’s a way to paste all the setup commands you need into Termite all at once. So you can set your WiFi, mqtt, etc. slick!
@badandyg6 жыл бұрын
Can I use a conventional light switch for a wife approval factor? Which switch mode for a sonoff basic?
@digiblur6 жыл бұрын
I believe that is switchmode 0 after you configure the Switch1 on GPIO14. Check back in some of his other Sonoff videos as he explained it there. I also recommend doing the 10k resistor pull-up modification as well if you are going in the wall. I haven't had to do the capacitor filter thing he showed but definitely had to do the 10k on a couple so I do it on all of mine now as it just takes a couple seconds to throw in a resistors across the two pins.
@DrZzs6 жыл бұрын
She doesn't like the glowy touch buttons?!With a regular "latching" type switch you can use switchmode 0 1 or 2. I've just left mine on 0 (that's the default)
@DrZzs6 жыл бұрын
Thanks Travis!
@badandyg6 жыл бұрын
Shes conventional lets just say that.
@badandyg6 жыл бұрын
If the switch is latched "on" and I tell the Sonoff to turn "off" in home assistant will there be any problems.
@andytube01726 жыл бұрын
What about switchtopic 2?
@leandrocosta42836 жыл бұрын
Very cool this video !!! I would like to pass as you pressed this button next to sonoff sv?
@Dew_-km7gr5 жыл бұрын
Hey bro really cool video so I was working on a project where I involved a water pump that would pump Water to a tank and so I used a Sonoff sv to set a timer to The pump so water doesn’t overfill and it takes exactly 5 minutes and 30 seconds to fill up the tank more then that and it can overfill but the thing is that the EWeLink app can only do whole minutes like i could only program 5 minutes and not the other 30 seconds could it be possible to change this with tasmota sorry for my bad English hope you can help me thanks 🙏 nice content btw
@DrZzs5 жыл бұрын
Your English is very good. Yes, I'm sure tasmota will let you do a timer in seconds, not just whole minutes. Hope that helps!
@Dew_-km7gr5 жыл бұрын
DrZzs thanks 🙏 do you think you could give me a brief explanation on how to?
@dinotech66926 жыл бұрын
My brain hurts now. :P It appears that I can't get this to work on the T1's. They seem to be different...or just me and my skill set. I am trying to set one of the switches to where there light on the button is off when the relay in closed, (device power on, but light on switch plate off), reversed from factory settings. That way when the fan is on at while sleeping at night the light isn't glowing the entire room and getting me a --WAF....:/ Help! ANY ideas??? LOL
@DrZzs6 жыл бұрын
I’m close to getting to my T1’s. I’ll sure give it a go and see if I can get the button to behave differently.
@juergenschubert32475 жыл бұрын
Great video as usual! Just wonder how your config will change when you replace the switch with a pir, with a HC-SR501? I am confused on the switch1 to 4 and the switch1n ones.
@DrZzs5 жыл бұрын
thanks. good question. Honestly, I'd have to just tinker with it to find the best switchmode to use.
@dalescott93306 жыл бұрын
Have you done anything with dash buttons?
@DrZzs6 жыл бұрын
Not yet but it's on the list!
@dalescott93306 жыл бұрын
Amazon had them .99¢ last week, I picked up 4, not sure what I'm going to use them for put excited to find out how.
@vento32325 жыл бұрын
Does anyone have this problem that once the raspberry pi is restarting the sonoffs change their states? I'm sure there's a pretty simple fix for that, thanks for the help in advance!
@SunilSheth5 жыл бұрын
Thanks, quite helpful video!
@tommh446 жыл бұрын
Another great video. I have a suggestion for a new minizzeries. I am very confused about addressing. I notice that you always put the full ip address whenever an address is required. In many of the videos and documentation hassio.local:8123 for example is used. Occasionally that works for me, but rarely. I always establish a static ip address for the Pi, but sometimes another MAC address shows up for hassio. How can that be? Also, what about using Ethernet vs wifi? I am missing something that must be important. Must be some others that are confused. Thanks for all you do. I have learned so much.
@DrZzs6 жыл бұрын
Thanks Tom! I've had the same experience with "hassio.local" when I first started with HA, so I haven't even tried it in a while. Also, for me at least, I'm running 2 hassio rpi's. One to run the house and another to test new things on before I mess with the main system. (That's a WAF mandate). I've got a lot to learn about network connections but I will try to put together some useful information in a video sometime. I'm trying to move away from so much wifi and rely more on ethernet. It is just so much more reliable. If I were building a new house I would put an ethernet cable at every door and window and in key locations for cameras, besides the usual 1 per room. But that's another video too. But if you can't run new cable in your house, you're stuck with wifi and that's where most of us are these days.
@tommh446 жыл бұрын
You made me feel a lot better. I agree with ethernet being the preferred way to go. Ultimately, we will use a mix of both. For some stuff wifi is very handy. I run into trouble when I try to mix them. I am now using 100% wifi and full ip address with no trouble. I need to set up another PI for development. FYI, I run all of this stuff on solar power. Thanks again for the education
@DrZzs6 жыл бұрын
Solar awesome! We're installing some solar panels in the next couple weeks. Exciting stuff!
@tommh446 жыл бұрын
I have had mine for a couple of years and it is still "Exciting stuff!" I feel so righteous.
@Gersho.6 жыл бұрын
Greetings from Norway. Really love you videos and have already learned a lot as a complete beginner in HA world - Philips Hue doesn't count ;) A couple months back you have made a great video '$5 DIY "Smart" Garage Door Opener using Sonoff SV' where you had to modify Sonoff SV to use it, but this new video got me thinking: 1. with the SwitchMode 3 that emulates PUSHBUTTON (NO) - similar to the physical PB on the wall, 2. considering that my unit motor is powered by 24V DC (from transformer) and not 230V AC is it still necessary to remove resistors and use Sonoff in isolated mode? In addition garage door opener PCB has extra connection that can deliver 24V AC (not typo) if this may be of any use. Anyway I'm a bit confused on how to proceed with my Tasmotized Sonoff SV implementation. Any help will be really appreciated.
@DrZzs6 жыл бұрын
Hello Norway! You should be able to use the SV without isolating the relay. I'd need to know a little more about your opener function to say exactly how you should wire up the SV, but I would expect you could just put it parallel with the current activation switch. I'm going to re-do my wife's door with an SV and I'll do it that way to show how it can be done, but that won't be for a while so you'll probably want an answer sooner. I'm planning a live stream this Sunday. Maybe this could be something we talk about then.
@Gersho.6 жыл бұрын
Hi DrZzs, Thanks for your quick reply. Parallel connection to the manual switch/push-button was my first thought. The opening system is provided by German company Seip and is pretty common in Europe. This particular one is already a couple years old but it's quit ordinary sort to say, both remote (433MHz) and push-button operated. You can take a look at the manual where PCB and wiring among other stuff is described (www.seip.co.uk/A_SERIE_433MHZ_250ERDEC_MITTELEUROPA.pdf). Once again thanks a lot.
@linearburn88384 ай бұрын
wish you do a nother vidoe on this stuff
@TheCraftingTableStudio6 жыл бұрын
Great video again !! In HA when I toggle the switch it turns on but not off is this a HA issue? when I toggle in Sonweb :) it works
@DrZzs6 жыл бұрын
hmmmm well, if it works when you flip the switch in SonWeb, but not when you turn it off in HA, there must be something wrong on the HA side. Check your switch entry in the configuration.yaml and check any automations you have that are using that switch.
@josueobando77186 жыл бұрын
Please make a video of how I link the Sonoff RF equipment with Hass.io to make an alarm.
@josueobando77186 жыл бұрын
for this video I want you to use Sonoff equipment and this is what I have Sonoff RF Bridge 433 + PIR2 PIR Sensor + DW1 Door And Window Alarm Sensor + RF Remote Plis
@DrZzs6 жыл бұрын
Working on that video right now. I don't have the Remote though, but I'll show you the basics and the principles will be the same for any RF device.
@josueobando77186 жыл бұрын
I love your way of making video. I congratulate you, please watch this video youkzbin.info/www/bejne/rH2XgI2Kn9Spha8
@DrZzs6 жыл бұрын
Thanks! I've watched a few of his. That one included. Makes me wish I'd have paid more attention in German class...
@alagarath6 жыл бұрын
For anyone trying this at home make sure you aren't using mains voltage with an exposed sonoff while working with it so closely. You should still be able to provide 3.3v over the vcc and gnd pins that the button is connected to while testing. I think the minimum input voltage is 90v for that input side so I would assume this is connected to mains. Going off of recommendations on the Super House KZbin channel when he covered Sonoff devices. You know your way around Sonoffs Dr. Zzz, mainly warning people who just arrived.
@DrZzs6 жыл бұрын
good point!
@TheFlyingKiwiNZ6 жыл бұрын
Nice work!
@DrZzs6 жыл бұрын
Thanks!
@IshmeetSinghahuja6 жыл бұрын
Thank you so much !!!!! you are awesome .. 😀😀
@DrZzs6 жыл бұрын
You're very welcome! This answered your questions then? great!
@IshmeetSinghahuja6 жыл бұрын
absolutely!! thx again
@aaliankhan49986 жыл бұрын
I am having trouble erasing firmware on the sonoff
@aaliankhan49986 жыл бұрын
I am erasing because the firmware got corrupt
@DrZzs6 жыл бұрын
bummer. The process should be the same as flashing the first time. You don't have to erase first before re-installing. Old version is just replaced when new version is installed. "programming mode" essentially preps the chip to be wiped.
@aaliankhan49986 жыл бұрын
DrZzs when I try to flash by esp easy I open the program and I don't even start anything and it says flashing failed. So I was trying to see if I erase the firmware first and then try to flash
@aaliankhan49986 жыл бұрын
DrZzs just to tell you what happened. My SSID had a space on it so the firmware wasn't working properly so to fix it I had to hold the button for 40 seconds to reset the configuration and then when I told it my SSID it didn't crash and get corrupted
@borolo2226 жыл бұрын
Hey man great videos. I have a request, please make a video of a smart door that closes automatically when you turn the ac in the room. Thanks
@DrZzs6 жыл бұрын
oooh, that's a good one. Do you already have a door that closes with a motor somehow?
@borolo2226 жыл бұрын
I was thinking perhaps in installing a spring loaded hinge and an electromagnetic holder installed on the wall . Maybe that could work for closing the door and avoid the use of a motor, but it’s something I’m thinking over.
@DrZzs6 жыл бұрын
That's probably the right way to go. Anythings possible. I want to do some miniZzeries just on making different automations for things just like that. I'll put it on the list! Thanks!
@tomar5e1156 жыл бұрын
These quick videos are great, keeping out our content. Side note, are you a real doctor? 😎
@DrZzs6 жыл бұрын
Thanks. I think the trend is definitely doing more in this style. Just so much less time editing, and still able to deliver good content. Yes, I am an Anesthesiologist. Hence, "Dr" of "Zzs"
@djmochaman6 жыл бұрын
I want to make my regular light switches in my house work with this sonoff. can you do a video on just that .. from flash to wall install.. I can't seem to flash my sonoff right I have tried a few different ones or can you sell me some.. OMG HELP.. LOL I'm not that bright.. thanks so much for posting.. YOU ROCK!!!
@DrZzs6 жыл бұрын
Thanks! I should redo some of the earlier videos because I have refined the process quite a bit. Let's start with what errors you're getting when you try to flash. I might be able to tell you what to change based on that. This is the best method I've found: kzbin.info/www/bejne/hH-6YWiporiBhaMm3s If you're in the US I could probably send you flashed sonoffs pretty easy. email me your address and such. justin@drzzs.com
@beaniemanNL6 жыл бұрын
Thanks for the great video DrZzs it helped me out a lot. Although a small question: Hi Everybody, If anybody could help me it would be nice :smiley: im using 2x sonoff T1 Dual switches (flashed with tasmota) and i would like to connect them with each other using the GPIO pins and tried to connect the GPIO of the first T1 to the GPIO of the second T1 switch. (to create a two way switch or an hotel switch) from downstairs to upstairs without the use of any domotica system. at this moment it doesn't seem to work. when i short the wires on 1 sonoff T1 the switch on the GPIO works fine but then i connect the first T1 to the second T1 nothing happens. (RX + Ground wire) anyone has a suggestion ? any advise is welcome :smiley: thanks in advance
@DrZzs6 жыл бұрын
I'd suggest using rules in Tasmota. It's not a wired solution, but it wouldn't rely on any other system either. I think what you're trying to do might work too. You'd have to make it so the connection uses a couple pins. One that senses a voltage change and one that sends a change on each board. I'd have to do some experimenting before I could tell you exactly how to do it. It's an interesting project. I'd like to see it work. Maybe ask in the Facebook page or Discord. Maybe someone else has tried something similar. (links to those are at DrZzs.com if you haven't already got them).
@aalmarshad3 жыл бұрын
I hate the live streams it stops DrZzs from making are vedios like this
@salim.studio6 жыл бұрын
Excelente carnal
@DrZzs6 жыл бұрын
!Gracias!
@yawarsaeed64995 жыл бұрын
Sorry (Not Rocker Type) 2 Position Switch, position one open contact, position two close contact, pulling down GPIO pin to low logic level.
@marcosmoura911 Жыл бұрын
Couldn't understand anything really
@markgilbert2496 жыл бұрын
Nothing against your looks, but a floating head is really distracting for me.
@DrZzs6 жыл бұрын
No worries. I'm not offended. Not everyone likes it. I've been doing it so long now it would be hard to stop. I'll try to keep my head in the same place so you can cover it up with your thumb or a post-it note. Deal?