Cleanup

Michael Ingraham 2019-05-05 10:30:21 -04:00
parent a05588600d
commit fe69eab6bc
1 changed files with 16 additions and 22 deletions

@ -1,29 +1,23 @@
Amazon link: https://www.amazon.com/KMC-Wireless-Lighting-Compatible-Assistant/dp/B078HFR27T/ref=sr_1_3?ie=UTF8&qid=1540418560&sr=8-3&keywords=kmc+light+switch
[Shopping](https://www.amazon.com/KMC-Wireless-Lighting-Compatible-Assistant/dp/B078HFR27T/ref=sr_1_3?ie=UTF8&qid=1540418560&sr=8-3&keywords=kmc+light+switch)
Pictures:
https://imgur.com/tvMPYVy
https://imgur.com/xavv6mO
https://imgur.com/QnzGWli
https://imgur.com/4e8mR7g
Depending on the version of the firmware shipped on the device, you may be able to flash it using the [Tuya-Convert OTA flashing tool](https://github.com/ct-Open-Source/tuya-convert/wiki/Compatible-devices). [This tutorial](https://youtu.be/O5GYh470m5k) shows how that tool works.
I didn't see any place to add pin headers, but the module has the usual ESP-12 pin layout, so I soldered right to the pins. You can skip soldering to GPIO 0 and just hold the button down when booting the device to get into flash mode.
If the OTA flash method does not work, you will have to solder leads to flash the device. Except for GPIO0, the programming pins are not broken out on the PCB. The module has the usual ESP-12 pin layout, so carefully solder right to the chip's pins. The device button is connected to GPIO0. You do not need to solder onto GPIO0. Just hold the button down when booting the device to get it into flash mode.
The button is on GPIO 0, the relay and the white LED are on GPIO 14, the blue LED is on GPIO 13. When the blue LED on GPIO 13 is set to LED1i the white light shines when the relay is off and the blue light illuminates then the relay is on.
![](https://user-images.githubusercontent.com/34340210/57195302-e8fb5c00-6f1e-11e9-96d6-9e872a48d263.jpg)
![](https://user-images.githubusercontent.com/34340210/57195305-eac51f80-6f1e-11e9-97ef-25629b14519e.jpg)
![](https://user-images.githubusercontent.com/34340210/57195306-ed277980-6f1e-11e9-95b0-0f1db04b6298.jpg)
![](https://user-images.githubusercontent.com/34340210/57195308-ef89d380-6f1e-11e9-9434-410e3df8533e.jpg)
Additional note: the device kept rebooting back to defaults when I was stumbling through the setup process. Once I set the device to Generic it stopped rebooting on its own.
Once you get the device flashed, set up the Wi-Fi configuration and connect to the device using a browser using its IP address. To keep the device from constantly rebooting, the first configuration step you should perform is to set the module type to Generic (18).
Additional notes from another user:
Digiblur's video on how to flash with tuya-convert
**Configuration:**
* Digiblur's Tasmota [forked firmware](https://www.youtube.com/redirect?redir_token=_fOGibOs_MdahUVBGBUJ4_0QFpd8MTU1NzE1MTczNUAxNTU3MDY1MzM1&event=video_description&v=O5GYh470m5k&q=https%3A%2F%2Fgithub.com%2Fdigiblur%2FSonoff-Tasmota%2Fraw%2Fdevelopment%2Fgeneric%2Ftasmota-6.5.0-generic-wifiman-2.3.0.bin)
* Generic (18)
* GPIO0: Button1
* GPIO13: Led1i
* GPIO14: Relay1
https://youtu.be/O5GYh470m5k
When the blue LED on GPIO 13 is set to LED1i the white light shines when the relay is off and the blue light illuminates then the relay is on.
uses this switch type as the example. I just flashed 4 of these using his instructions (2019-05-04).
I used generic and set these three:
GPIO0:Button1
GPIO13: Led1i
GPIO14:Relay1
My blue LED constantly flashes, which differs from the very helpful notes above. I don't know if it explains the difference, but I used Digiblur's Tasmota variant firmware (link in video).
Further configuration and setup may be required as the blue LED constantly flashes.