Linkind ESP32 Smart Switch - How To Flash Tasmota


10/03/2021 If you bought the dimmers, several of us have been working on reverse engineering the dimmer and have a proof of concept working!  Thanks to Tediore and Tony's help on this process.  Check the Linkind dimmer thread on the digiblurDIY discord and this GitHub Gist

09/30/2021 Deal is dead now... If you see it again let us know! 

09/28/2021 5PM Central: Currently showing out of stock on the 4 pack for $20 switches.  The singles are still available for $7.50 a piece.  Buy the 1 pack on Amazon

09/28/2021 8AM Central: These oddly ESP32 equipped smart switches are running for $5 a piece in the 4 pack on Amazon (Prime required).  That's a steal for many reasons which you'll see below!  

Buy the 1 pack on Amazon

Buy the 4 pack on Amazon

Can we flash Tasmota on it?  YES!  The Linkind Smart Switch is rather unique.  It uses an ESP32 chipset with Bluetooth support, two independent buttons, two independent LEDs (behind the small hole) of green/red and one relay.  It ships with a non branded white screwless decora faceplate.  The switch can also be used in multi-gang boxes as they have the additional mounting holes. 

(Click any of the photos for a larger view)

Relay ratings

To open the switch, there 4 small torx screws in the face. I used the one out of  the iFixIt kit but a small flat head screwdriver could also be used.  Remove the four screws on the face and pull it straight up.  There will be some tension as 8 header pins intersect the faceplate board.

Take note, the switch will not power up unless the air gap switch (reddish switch on the right) is depressed by the faceplate air gap insert (safety feature)

Pop the board out with a spudger or flat head screwdriver and flip it over.


Look for the row of pads that have VCC1, GND, etc.  


You can choose to either bend some clips or solder to the pads.  Remember to connect RX to TX and TX to RX on your USB TTL flasher.  The pads are as follows from Left to Right; RX, TX, GPIO Zero, skip RST, Ground, and 3.3 volts.  DO NOT apply 5V to this pad, the magic smoke might come out.


Solder method

Bent clip method (credit: @tony on digiblurDIY Discord)



I use a USB cable with an inline power switch to make flashing easier but it isn't required.  The ESP32 on this switch requires the Tasmota32 Solo1 version bin file.  You can flash this version straight from your browser by going to https://tasmota.github.io/install/  


Select Tasmota32 Solo1, check reset defaults and click install.  NOTE:  It has been found due to the ESP32, power requirements are higher and some USB TTL adapters may not be able to power the device properly and may fail during the flash and/or the WiFi setup of the device.  I was able to flash and power the switch with this adapter CP2102 USB TTL


Once it is complete you can remove any wires, reassemble the switch and power the device via mains AC power.  


Add the device to your network via the AP mode (ex: tasmota_XXXX) - Browse to 192.168.4.1, pick your WiFi network and enter your WiFi password.


Browse to the Device IP address.  Click Consoles then Console  (sometimes the Tasmota ESP32 webserver can be laggy and refresh or multiple clicks is required)


Paste in the following command all on one line and hit enter. 

backlog template {"NAME":"Linkind Switch ESP32Solo WS240010008","GPIO":[0,0,0,0,0,224,1,1,0,0,288,0,1,1,0,0,0,0,0,0,0,576,321,0,0,0,0,0,33,32,0,0,0,0,0,0],"FLAG":0,"BASE":1} ; Delay 1 ; Module 0


The switch should reboot and if you return to the main menu it should show the switch name and the toggle button should be available.  You can now add the switch in your home automation platform.  If you are using Home Assistant, I highly recommend the Tasmota HA integration method.  

The ESP32 Solo supports Bluetooth scanning, currently at this time there are no prebuilt Solo BLE bin files but things change quickly!  Don't forget you have two independent buttons, you could do several automations with multipress actions, long press etc.  So many ideas!  

And yes by popular demand, Bluetooth was tested by a couple of us including myself extensively, it seems to work well even being a single core ESP32.  

credit: @tony on digiblurDIY Discord

If you have any questions or get stuck during the process, join us in the Discord chat (link below)

Buy the 4 pack on Amazon

Other Switch/Device Templates & Setup

⚡Products We Use/Recommend
Amazon US - https://amzn.to/2YZNDeO
Amazon UK - https://amzn.to/2TnG2R4
Amazon CA - https://amzn.to/2JWsNq5

⚡Be Social!⚡
YouTube - https://youtube.digiblur.com
Discord Chat - https://discord.digiblur.com
Patreon - https://patreon.digiblur.com
Facebook - https://facebook.digiblur.com
Instagram - https://instagram.digiblur.com
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!

Linkind WS240010008

Comments

  1. Take note of the max 500W rating. I prefer the Gosund 4 pack for a little more money for the full 1600W equivalent.

    ReplyDelete
    Replies
    1. Sorry 600W incandescent/300W CFL. I do like the dual button setup. Don't really understand the need for the air gap piece.

      Delete
    2. I see that on a lot of Zwave/Zigbee switches as well.

      Delete
  2. While true it has a max rating (LED) of 300W, I will be powering a 20W LED with it and the extra button for automations is bonus.

    rickr

    ReplyDelete
    Replies
    1. Indeed. I've got a 22,000 lumens floodlight that blind you and it pulls 160w. I am curious of this 300W LED project.

      Delete
  3. Very nice. Have you tried the dimmer version? Would it be the same process?

    ReplyDelete
    Replies
    1. I just did the dimmer and is the same process but I don't know what are the settings for have it works as dimmer!!

      Delete
    2. check the discord, we've been working on them and have working proof of concepts going as it uses i2c communcations. But we did get it working.

      Delete
  4. Does that bent clip trick work with the Sonoff switches?

    Also, I ordered these using you link. I'm loving your channel

    ReplyDelete
  5. Hi, great content as always! I was wondering if Tasmota will let you turn on or off the LEDs to disable them or even use them in automations based on the color of the LED green/red/orange?

    ReplyDelete
    Replies
    1. Yes, the LEDs are controllable however you want to use them.

      Delete
  6. I am bought all the pieces for this directly from the links. I am trying to figure out where GPIO 0 gets connected on the TTL USB flasher?

    ReplyDelete
    Replies
    1. We got you going on the discord chat I believe?

      Delete
    2. Yup! Got it all flashed! Discord is excellent

      Delete
    3. can you link that discussion I am trying to flash mine and can't figure it out also

      Delete
    4. It won't let me link that thread under the hotdeals section on my discord, it's labelled Linkind dimmer

      Delete

Post a Comment