Gosund Smart Switch with Tasmota - No Soldering or Tuya Convert Required
Вставка
- Опубліковано 8 вер 2024
- Tuya Convert blocked on some of your new light switches and you don't want to risk soldering on them to flash Tasmota? Check out the Gosund Smart Switches, they can be flashed without any soldering! Plus you can control the color of the LED status light along with doing some long press actions to control other devices.
Gosund Switch - amzn.to/2XzbH3l
Flashing
-=-=-=-=
USB Flasher - amzn.to/2IsJy7D
Elegoo Arduino Pack - amzn.to/2Kl7aym
Multibit Screwdriver - amzn.to/2WCAozD
USB Extension Cable - amzn.to/2IqGglo
Optional Installation Tools
-=-=-=-=-=-=-=-=-=
Wago 221 Wire Connectors - amzn.to/2HCXrRE
Circuit Tester - amzn.to/2MlDAKS
Additional Links and
=-=-=-=-=-=-=-=-
Tasmota - github.com/are...
NodeMCU Pyflasher - github.com/mar...
Cliff Quicktest - www.newark.com...
Cliff Quicktest - amzn.to/2EZ6FWp
Tasmota Switch Template
{"NAME":"Gosund KS-602S","GPIO":[9,57,0,255,0,0,0,0,0,0,21,0,56],"FLAG":0,"BASE":18}
Home Assistant Sample Config - github.com/dig...
Products I use and recommend - www.amazon.com...
Come chat with us!
-=-=-=-=-=-=-=-=-=
Discord - / discord
Patreon - / digiblurdiy Please note, the product links above could be affiliate links, using them could earn digiblurDIY a small commission of purchases potentially helping with future video projects. Thank you! As an Amazon Associate I earn from qualifying purchases. Please note, the product links above could be affiliate links, using them could earn digiblurDIY a small commission of most purchases and helps with future video projects. Thank you! As an Amazon Associate I earn from qualifying purchases.
The app is simple and easy to use and responds very rapidly at the switch. I also added to my Alexa device and that works also. It took me a minute to find the skill and set it up with Alexa but once I got it there have been no issues turning the light on and off through my Alexa Dot. Overall a great product for a low cost compared to the big brands.
Great tutorial. I just bought some Gosund 3way switches, but want them out of the cloud. I had to solder to the inner contacts. Just glad there was a work around. Now it's out of the cloud, and hooked into my OpenHab setup. Thanks again.
Thanks for this video! Got two Gosund switches and used your new TuyaConvert2 video to flash them, and this video to configure them! Great work Travis!
I just got my Gosund Smart Switch today. Thanks for the video, you covered all the bases.
Thank you for the video. I'll use this as reference for installing my new Gosund smart switch.
i have all of these switches in the house, sounds good to me!
Great update video and the breadboard hook up is a great idea.
Excellent video! Keep up the great work 👍
Dec 2020 - I just bought a few of these wall switches, same model from Gosund. Well, they've revised it. Won't do OTA anymore with Tuya-Convert. Also the board is very different, no holes anymore to insert headers and they've been moved to the right side of the board... bummer.
I showed the new pics of it in my smart switch video last week.
@@digiblurDIY Right you are. I did watch it but failed to notice it was identical to the ones I just bought. No holes for headers. Tuya-convert also does not work. Suggestions on flashing them with Tasmota ?
Use some test clips like I did in the jig video. Just clip them. We were talking about this in Discord today with pics. amzn.to/2BRSR1C
So basically, the KuLED without the wacky LED situation, but with a crappier wall plate.
Nodemcu pyflasher looks sweet for us MAC users!
That's it, this is the updated model of it. Pros and cons, no standard header, but better button and no hardwired LED nonsense. Luckily on my singles I have plenty of blank screwless plates from other switches putting them in 2-3 gang configs to use. Could have been worse I guess and the branding be on the switch itself.
perfect couldn't ask for better i ran a 1500watt space heater on high all weekend and it didn't catch fire lol
10 out 10 again
I decided to give LedLink (i) for grins. Outward behavior exactly the same. {"NAME":"Gosund KS-602S","GPIO":[9,56,0,255,0,0,0,0,0,0,21,0,158],"FLAG":0,"BASE":18}
Look at someone using switch1! Just configured one like this too. Wish we could do the led1 and 2 without the fake ledlink to do ledpower1 and 2 commands but I will take it!
Another great video. With this switch, how many 8265 pins are available to Tasmota ????
Unfortunately only one really as they did tie one LED to a RX/TX pin. You could still use it if you detached the LED on it.
@@digiblurDIY Is this also true for the KuLED Seitch ???
No. I used both RX and TX in the motion and temperature light switch video.
I bought a Gosund dimmer light swich model DS1. The internal module is a SW2. After many try, I was able to get it to work with this template : {"NAME": "Gosund Wall Switch", "GPIO": [255,37,255,255,17,255,255,255,52,158,255,0,255], "FLAG": 15, "BASE" : 18}. To be functional, this template must use the PWM1 at 98 or 99% for toggle ON / OFF. In this state, the leds in front of the switch flash quickly when I touch them. With the PWM1 at 100%, I am able to see an interaction but the connected load never changes in intensity. With the PWM1 at 100% I can toggle OFF
but toggle ON does not work ... Only works at 99 or 98%. Do you know how to use the dim option to control a wire load on this dimmer switch? Another template?
Travis, Thank you so much for these great videos. I have learned so much. Question for you. Is it possible to have one of the LEDs blink when by garage door is open? My garage door is also using tasmota to control the door as well as monitor door open or closed.
Yes you could assign one of the LEDs to a relay2. Then use the pulsetimer command found in the wiki to blink it. You could have that garage door send over the command to blink or not blink the power2 relay.
@@digiblurDIY Thank you for the response. Maybe you can help me with another problem. I am trying to the the switch HOLD and Rules to work. At one point it worked then stopped. I have seen many videos indicating Rules only work with switchtopic 1 but the documentation says switchtopic 0. The rule came right out of the Rules Cookbook on Tasmota site. I am really getting frustrated since it worked then stopped. Here is the rule. By the way this is the Gosund KS-602s Module configured from your video.
stat/BackyardLights/RESULT = {"SwitchMode1":5}
stat/BackyardLights/RESULT = {"SwitchTopic":""}
stat/BackyardLights/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Free":453,"Rules":"on Switch1#State=3 do publish cmnd/ShopRack/POWER ON endon"}
The HOLD is published but the rule never fires. I tested the publish command and it works.
Actually no, rules won't work with switchtopics set as it bypasses the rule for the switch. Switchtopics are the old way basically before rules.
do you have the button set as a switch1? One way I like to test a rule for a switch to see what is being done is make one like this... rule1 on switch1#state do publish test/me %value% endon Then I do short presses, long presses etc and watch the log to see how it is working.
Instead of having the LEDs on, could I just turn them off and control it based on sensor states in Home Assistant?
Yes. Assign the led pins as relays and they become easy to control switches in HA.
You for another great video. One question, how do we know if we are purchasing the upgraded switch on Amazon? Do you have any suggestions on how to figure that out? Thanks again.
The link in the video description is the one I received and was upgraded stock.
digiblurDIY thank you very much sir!
Do you happen to have the tasmota template for the gosund sw2?
where can I find the black breakout box you use for the 3 leads coming from the smart switch. I've never seen one of these and it would be extremely helpful to have.
cloudfree.shop/product/cliff-quicktest-qt1/?ref=digiblur
@@digiblurDIY thank you!
Hi, new subscriber here! Great video. Quick question, is it possible to set this switch so the LED is green when off, off when switch is on and red for link errors? I would like to use the LED as a locator light. Thanks!!
Absolutely.. We were just talking about that in my discord yesterday using the light to show things. Jump in (link in description) a few of us are there and can walk you through.
Great video again. One question. Can you confirm the specs for voltage is compatible for 230v installation?
Thanks again
These only show 110-125 on the back.
@@digiblurDIY Thanks for reply - interesting looked at the specs from the link on Amazon and they said 230v at 1800w.
thanks for the great tutorial on these switches. Is it possible to send mqtt events for multiple clicks? or just single, hold?
Yes, you can do various button presses in Tasmota with these. github.com/arendst/Sonoff-Tasmota/wiki/Rule-Cookbook#button-with-single-press-double-press-and-hold
Good stuff, Travis. I appreciate how you seem to cover all the bases and warn about possible exceptions to "the way it should work".
I just bought a 4-pack of the Gosund wall switches and noticed something interesting after flashing Tasmota (which went flawlessly, thank you). The green led never lit initially when the button was pressed. I followed the procedure to switch the red and green and then the red led did light when the button was pressed, as expected. I switched back to the green led indicating "on" and it never lights up. Back to the red and it works. I really would prefer the green led indicating the "on" state. How can I make this work? Thanks!
Could you share the layout/template you are using?
@@digiblurDIY Gosund KS-602S Generic (18)
@@digiblurDIY Name:Gosund KS-602S Based on: Generic (18)
Come hit me up in discord. Can walk through some rules and such to get this how you want.
Do you have any video where you are talking about the Gosund Wall Outlet Extender you have linked in your Amazon Smart Plugs category? I'm interested to see how to flash it and if there's already a reference on the gpio pins. Also, is the LARKKEY power strip good?
I believe I did those via TuyaConvert at the time but they do have screws to them manually if needed. I don't think I have a video on them though.
Great video! I haven't explored Tasmota (or MQTT or NodeRed) yet, but I was able to flash ESPHome on the Gosund switch. However, now that I've flashed it, I can control the relay (GPIO 14), the green LED (GPIO 1), and the red LED (GPIO 16) via Home Assistant, but the physical button no longer does anything. Do you know what GPIO pin the physical button/switch uses? I tried everything except GPIO 6 through 11, because if I try to use one of those, ESPHome gives me the following warning: "WARNING ESP8266: Pin 6 (6-11) might already be used by the flash interface. Be warned."
I believe GPIO 0 is the button on these.
@@digiblurDIY Thanks. The switch is clicking, but doesn't seem to be triggering GPIO 0 (or turning on the light). If I trigger GPIO 0 via Home Assistant, the light toggles on/off. But maybe I broke something. :) I'll do some further testing and see if I can figure it out. Much appreciated!
Yep, it's GPIO 0. I had a mistake in my .yaml file. Thanks again!
@@adarlington anyway you can share the template (.yaml) file used for ESPHome. I got everything working but my status LEDs.
Great video and I’ve installed 4 so far. Anyone figured out a way to have the red led on when the switch is off? I prefer to see the switch in the dark.
yes, this model has the ability to control each LED. What lights do you want on in which state?
digiblurDIY I’d like red led on when the switch is off and green when on.
Put this template in... {"NAME":"Gosund KS-602S","GPIO":[17,56,0,0,0,0,0,0,0,0,21,0,158],"FLAG":0,"BASE":18}
That should make green on when on, I'll make you a rule to turn red on when off. Let me fire up one of these.
Here it is... Template has it setup as button1 (switch to switch if you need that)
{"NAME":"Gosund KS-602S","GPIO":[17,56,0,255,0,0,0,0,0,158,21,0,53],"FLAG":0,"BASE":18}
Then here is the rule command to paste in
rule1 on power1#state do backlog ledpower2 %value% ; ledpower1 %value% endon
Then turn it on with
rule1 1
Is this the procedure for uploading tasmota onto Gosung SW2 Dimmer?
Not really sure, I've used Tuya Convert on that one in the past. Do you have pictures of it?
I am done flashing the TreatLife Switch with latest Tasmota firmware. Now I using the GoSund template and it does not work. Do have a video for configure this switch?
ua-cam.com/video/eDoIkd58HRM/v-deo.html
Dont know what im doing wrong. I get the switch flashed with NodeMCU program on com port 5. I disconnect the green or io0 wire and unplug the usb. When i plug it back in without the green so it doesnt start in flash mode i loose my com port. when i try using termite to add my ssid it cant connect because there is no comport connected to the usd adapter.
It might not have enough power to boot. Have you tried powering with mains with no USB wires connected? It should go into access point mode.
@@digiblurDIY Do i not need to access it via termite to give my ssid and password?
If it is a blank flash then no. Tasmota will come up in access point mode. Connect to it with a device and browse to 192.168.4.1, hit scan, pick your wifi name and type in the password. Be careful on the password. If you type it wrong you will need to wipe the flash again.
Which switch gives you the most button options? Thinking of using one for a scene controller and just disabling the relay. Would you get 4 out of this? On/off + long on/off?
Probably the most buttons would be the Martin Jerry or Acenx dimmer like I did in the smart light control video. This would only get you two actions.
@@digiblurDIY I get 3 actions from momentary switches like the Kuled running as Sonoff Basics: single-click, double-click, and hold. Follow the table at github.com/arendst/Sonoff-Tasmota/wiki/Control-other-devices. SetOption1=1 and SetOption11=1, then set ButtonTopic to a special topic, different from the regular topic. If you use a different topic, you can get 3 different mqtt outputs from one device: single press (/POWER ON-OFF), double press (/POWER TOGGLE) and hold (/POWER HOLD).
Will check it out and see how it works, I don't use the topics anymore as I use the rules to drive the custom topics I want to publish. Thanks!
I just bought 8 of these and 8 of the dimmers. Do you know if the tuya convert still works?
No idea. Their dimmers didn't work well when I checked them out even on stock so I never ran with them.
Have you had a chance to flash the latest switches from Gosund? They have a new format of the TyW3es module. Infact it looks to be completely integrated into the swtich... This is their SW5 V1.2 (on the board) or KS-602S on the back..
There should be pads on the side. You can use clips to get them.
@@digiblurDIY Got it! Thanks... I 3D printed the pogo thing and ordered pins.. and all I needed was tiny clips... Getting my stuff out of the cloud!
Were you able to flash tasmota on Gosund Dimmer SW2 or DS1 using Tuya-Convert OTA , it never able to find the dimmer . So I tried using serial wire using FTDI and soldering wires . I was able to flash it tasmota but didnt work well. Console functionality and physical dimming were not in sync.
Do you have video to use tuya-convert for Gosund Dimmer DS1 or SW2. Or any other way around. If I have to flash using FTDI adapter then which tasmota template I should use?
No Gosund dimmers for me, they were absolute junk even without Tasmota on them so I never bothered with them.
@@digiblurDIY So which brand do you recommend so that I can easily flash them to Tasmota on OTA using Tuya Convert ?
The MJ OG dimmer of course - amzn.to/3vbVl1R
could you please make tutorial to convert gosund SW2 dimmer to tasmota????
That dimmer was bad last time I looked at it. Horrible design and function even on stock firmware. It only got worse as it was flashed.
@@digiblurDIY oh ok, im trying to figure out if i can flash with tasmota... i guess i need to buy other dimmer or use the tuya integration on home assistant... thank you though!!!
@digiblurDIY I bought same brand dimmer. Somehow the 4 tiny screws on the back of the box are so tight. I also bought the tool you recommended but just can't loosen the screw. Any tips? Thanks,
I had to end up getting some of these on a little different batch to get some more torque on them. amzn.to/2tQcjrQ
@@digiblurDIY Thanks for sharing. Just ordered and will let you know if it works or not.
The new tool did the trick. The dimmer model I got is Gosund DS1 www.amazon.com/Gosund-Compatible-Control-Single-Pole-Required/dp/B07WSSTVL5. Wondering whether the video you posted for Tuya dimmer will work.
@@digiblurDIY The dimmer model I got is Gosund DS1 www.amazon.com/Gosund-Compatible-Control-Single-Pole-Required/dp/B07WSSTVL5. The tool NodeMUC-pyflasher failed to connect the dimmer using FTDI. Any help would be highly appreciated! Thanks,
@@seancheng4875 Did you get anywhere with this? I'm considering purchasing a four pack of the dimmers and I'd love to integrate them with Home Assistant.
Travis a know that it has been a while since you made this video. I have a quick question after you flash it and install the switch back in the wall is there any way to put it back into AP mode?
Button 1 pressed 6 times?
@@digiblurDIY no luck I am sure I will have to pull them..
There's the 7 power cycle deal too depending on the version on it.
@@digiblurDIY Thanks for the reminder worked like a champ.
I ordered a 4 pack of the gosund switches, and they are different. The model number on the back is SW1, the inside is totally different. There are very small pads labeled RX, TX, 3.3, IO0, and GND. Is this model flashable via soldering or TC?
You can try the Tuya Convert but luckily those pads are broken out still but not as good as they were before.
@@digiblurDIY TC worked. I was concerned because there was no writing on the ESP chip. All is well, thanks again!
@@ritchk5170 Thanks for posting this. I just received the same switch today, model number SW1. So glad TC works. Can't wait to get it working.
I might have bricked one of the switches. I selected Tasmota 1.02 firmware. Basically, the led on the switch turned off, and after about 10 minutes the console said "cannot connect to device". After that, I was unable to manually switch toggle the switch. Is it possible to load either the backed up firmware or Tasmota using soldering method at this point?
Tasmota is on like 8.5.0 or so. That's a really old firmware.
Can you do something similar to gosund dimmer?
Tuya Convert but not really worth it as the dimmer is very buggy.
@@digiblurDIY Buggy how ? Fixable in firmware ?
can you flash tasmota on the gosund mini wifi outlet?
Yes as long as it isn't blocked.
@@digiblurDIY can you be a little more specific?
If it is an ESP chip and doesn't have the new blocking firmware.
Of course if you have physical access to the chip of course you can flash it.
Super Great Video!....but, uh...that face came threw me off for a sec. Join us brother. Shave that shiz off. :P
Had that way too long! Shave the top before that!