logo elektroda
logo elektroda
X
logo elektroda

TEEPAAO Wi-Fi Curtain Switch Configuration for Non-Curtain Use - Setup Guide

keegiraido 
I bought this TEEPAO WI-FI Curtain Switch as second hand. It is designed for controlling electric curtains as its name says. One button for opening, one stop button, and one for closing curtains. It has controllable backlight. As I do not have such curtains I configured it to be as switch with 2 buttons and one extra button. This is the box:
White box of TEEPAO curtain switch with Smart Touch Switch label. White box with certification markings and QR code. Photo of the label on the packaging of the TEEPAO WI-FI smart curtain switch.
Front: TEEPAO WI-FI curtain switch with three buttons in a box.
Back: TEEPAO WI-FI curtain switch with specification label.

To open the switch, one has to use some sharp tool:
Image showing the opening of a TEEPAO WI-FI curtain switch using a knife.
The button plate is softly glued to the case with foam pieces. It can be easily removed like that:
Image of the interior of a TEEPAO WI-FI curtain switch with visible circuit boards and a CB3S module.
A closer look:
Disassembled TEEPAO WI-FI curtain switch showing buttons and a wifi module CB3S.

It has CB3S wifi module:
Close-up of the CB3S wifi module with model number, P/N, S/N, and QR code.

After removing the button plate one can see the back of button plate and solder side of power plate:
TEEPAO WI-FI curtain switch circuit board with visible electronic components.

Here is the pinout of wifi module:
CB3S Wi-Fi module on a circuit board.

To get out the power part one has to remove wire screws:
Open casing with power board and screws on a white background.

Closer look of both sides of the power plate:
Close-up of the power board of the TEEPAO WI-FI curtain switch with electronic components. Close-up of the PCB board of the TEEPAO WIFI curtain switch with visible components.

I tried to flash the device with tuya-cloudcutter without success. So I had to use wiring.

Wiring to flash the device.
The pins connecting the button plate with power plate has GND and 3.3V pins, so those do not have to be soldered. RX and TX have to be soldered. RX pin is connected to button control chip and this does not allow to flash new firmware. One has to desolder the button control chip pin 16 or cut through the wire between RX and this chip. There is always possibility also to remove the whole wifi plate or button control chip of course.
I chose to desolder the pin 16 only:
Close-up of a circuit board with electronic components and a chip.

For flashing I used HW-597 USB to TTL module with CH340G chip. The power of this module was too weak to power the button plate, so I used a 5V to 3.3V power converter. I have had no such problem with PL2302 module.

The pinout of HW-597 module from left to right is:
5V (power)
VDD (for choosing 5V or 3.3V TTL output)
3V3 (power)
TXD
RXD
GND

As I told, the GND and 3.3V can be reached on pins of button plate <-> power plate connector. Pin 2 is ground and Pin 1 is 3.3V. Pin 2 is connected to HW-597 ground pin, Pin 1 is connected to AMS1117 5V to 3.3V converter chip which is soldered to the back of the power interruption switch (for initializing flashing). AMS1117 needs also the ground, so it is connected to ch-597 ground with a wire. RXD and TXD of wifi board are soldered to TXD and RXD of HW-597.
USB module connected to the TEEPAO WI-FI curtain switch PCB with visible wire connections.

I used BK7231 Easy UART Flasher. This software runs under Microsoft Windows. Fortunately my kid has one. At first windows did not recognize the usb to ttl converter and I started to search for it, but after a while the driver got installed without any special download. The flasher worked without any problems. Sorry for blurry picture. Forgot to focus.
Screenshot showing the use of BK7231 Easy UART Flasher software for flashing firmware on a Windows 10 computer.

After restart OpenBK booted up and I configured buttons, backlight and green led to be sure all are available. I will not go through this process, as I will provide json template where everything is already configured.
OpenBK7231N user interface with control toggle buttons.

This configuration allows to use the device as 2 way switch, while in ON state buttons glow. Middle button switches only its light and can be configured to do something else. Maybe switching both relays at the same time on or off. Backlight and green led can be only controlled from web with this config.

Configuration json is attached:

About Author
keegiraido wrote 4 posts with rating 2 . Been with us since 2024 year.

Comments

p.kaczmarek2 11 Jan 2024 09:06

Hello, can you elaborate on what exactly is which GPIO? I slightly completed your template but it still seems quite mysterious: { "vendor": "TEEPAO", "bDetailed": "0", "name": "Teekar Smart... [Read more]

keegiraido 12 Jan 2024 13:05

Hi, Thank you for asking! Sorry for the messy template. I am not familiar with templates and took it as it was. You are correct about channel 20 and 30. Here are the GPIO's: P7 btn 2 (channel 2) p8... [Read more]

formeTA 23 Sep 2024 18:39

Thank you for showing the details. Based on your Input I flashed a Teekar Smart touch curtain switch the same way (cutting Pin 16 and after flashing with openbk resolder the pin). I found various possible... [Read more]

ElektrodaBot 25 Sep 2024 08:26

Thank you for providing detailed information about your Teekar Smart Curtain Switch setup. Based on your description, it seems that the button actions and LED behavior are not functioning as expected.... [Read more]

formeTA 27 Sep 2024 17:32

Thank you! LED configuration is perfect now. Relay had to be changed to 9 instead of 26. Also good now. [Read more]

%}