FEIT dimmers

From Wildsong
Revision as of 03:20, 8 January 2022 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

My understanding is that many IoT home control products get rebranded that are made by Tuya. In any case however it comes to be, many products are Tuya inside, that is, they work through the cloud-based Tuya management app.

This means when for example when you are sitting on your couch and it's getting dark and you want to switch on your living room light via Home Assistant, the commands have to go up to Tuya's web site and then back down through your gateway to your living room. Since this offends my sense of efficiency and privacy, I want to install ESPhome on all my Tuya devices. I bought them with this in mind.

TWYE2S cpu

Both of these devices (Martin Jerry and Feit) use a Tuya TWYE2S cpu module. I fried one for an S-01 switch so I ordered a kit on Amazon with 5 ESP12F modules and a programmer/breakout board. The programmer should be handy. I could probably yank a module off some other widget but geez, the modules are about $2 each.

The ESP12F has more signals brought out to the edges but they won't interfere with anything when replacing a TWYE2S. An ESP12S is a match and is a tiny bit smaller too, but I like having the extra pins.

Documentation for TYWE2S https://developer.tuya.com/en/docs/iot/wifie2smodule?id=K9605u79tgxug

How did you fry that S-01, Brian?

I hooked up the ESP-PROG while the board was connected to mains. Tsk. It burned out both the TWYE2S and the ESP-PROG. This after successfully reprogramming 3 others. The _actual_ problem I was trying to troubleshoot was that I did a bad job soldering on the header I use for programming these. Tsk again.

The Shelly 1 has the same set up, they are not isolated from A/C.

Martin Jerry S-01 switches

2021-11-18 I have one converted to ESPHome and installed (laundry room). Three more to go.

I soldered a header onto the back of each controller at the pads marked CN-1 and used Dupont wires to connect it to the programmer (which is just a 3V3 UART-USB really.) The Espressif Programmer was not pulling GPIO0 down so I had to unhook that wire and manually ground the input.

Feit Electrics dimmers

These are a good price but I'm disappointed that I will have to remove the CPU from the board to reflash them.

https://community.smartthings.com/t/costco-cheap-feit-smart-dimmer-wifi/208142

https://community.home-assistant.io/t/costco-feit-smart-dimmer-tuya-convert-tasmota/151390/5

Deployed in bathroom, kitchen island, breakfast area, living room, dining room. I just replace one in guest bathroom with a Maestro motion sensor switch, so now it's a spare.

I am going to pull apart the spare to see if I can flash it.

The processor in these is not like an ESP 12*, it has a single row of pins on the lower edge of the card.

Pinout on the front, left to right

RST
A0
I3
D4
D5

on the back, left to right

3V3
GND
TX
RX
12
14

There are some other marked pads not on the edge including

I0
IO2
RST
GND

Tasmota - https://github.com/blakadder/templates/issues/402 says it's unstable.

A set of components, https://github.com/nuttytree/ESPHome-Devices including Feit dimmers https://github.com/nuttytree/ESPHome-Devices/tree/master/components/tuya_light_plus

Power sense information

https://github.com/cbpowell/ESPSense/wiki

Feit Electric WiFi Dimmers

This is an ESP8266 device that can be reflashed to work with ESPHome or Tasmota. They are available currently in 3 packs from Costco (online) for $45, so $15 each which seems a reasonable deal to me. I have 6 now. Currently I have them using the Home Assistant integration as Tuya devices.

2020-11-10 Tried using tuya-convert to reflash OTA but my devices are too new so it failed This guy has lots of notes on how he's using the dimmers with ESPHome: https://github.com/nuttytree/ESPHome-Devices

Found this thread about reflashing. https://community.smartthings.com/t/costco-cheap-feit-smart-dimmer-wifi/208142/21 Also notes you can replace the ESP board with an ESP-01 if you want.

Reddit posting These are Tuya compatible.

2022-01 I have one torn down but have not gotten it reflashed yet. I pulled the CPU module off the board. (As opposed to trying to program it soldered to the board, which is probably the easier route.)

Basic 'normal' set up

  1. Register a Tuya account and log in.
  2. Add the Tuya integration to HA.
  3. Install the Tuya "Smart Life" app and launch it. (There is also a "TuyaSmart" app, both are supported in HA, I don't know the difference.)
  4. Power up the new dimmer.
  5. Configure it with Smart Life.
  6. Now it will just pop up in HA and you can treat it like any other HA device.

Martin Jerry

"Best pins to use" https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/

Notes on the DIMMER model, SD01, https://tasmota.github.io/docs/devices/Martin-Jerry-MJ-SD01/ ESP8266 TYWE3S MCU pinouts https://tasmota.github.io/docs/devices/TYWE3S/ NOTE THE DIAGRAMS SHOW THE BOTTOM VIEW WHICH IS NOT ACCESSIBLE ON THE HARDWARE. Key off the "TEST" point just visible at the edge.

Programming header connector

CN1 TXD
CN2 RXD
CN3 GPIO2
CN4 GPIO0
CN5 GND
CN6 VCC 3.3V

I think I have to hold GPIO0 low on boot to enter programming mode, and the ESP-PROG is not doing that for me.

It has a bicolor red/blue LED, each LED connected to the MCU by a 4.7K resistor.

LED1 GPIO4 
LED2 GPIO5

S-01 switches

Internally these are close to the same as the dimmer SD-01, and I set them up with ESPHome.

mj1 front door
mj2 laundry
mj3 library
mj4 on the bench, possibly fried due to misconnection

SS-01 switches

Not even unpacked yet! These are still Tuya based but have a Beken processor in them instead of the ESP8285 used in the older ones. This means it can't be programmed with ESPHome and I will have to use a different toolchain for them. I feel like I need a new page for them, maybe it goes here: Tuya.

They are easy to recognize as they are in a smaller case with screw terminals versus the bare wires sticking out the back of the S-01 model.

They still have red and blue LEDs but on this switch they are separated so you get two distinct colors instead of red or blue or purple on the S-01.

SD-TC01 Dimmers

This is a newer product but still has the Tuya TWYE3S processor, so they can be programmed with ESPhome.

I have not decided if it's easier to remove the entire module and stick it in my ESP12x programmer or to try to solder wires and cut traces. I have a hot air rework station ordered and will probably try the removal just because it should be easy and hey, I bought it for projects like this!

Unlike the FEIT Electric dimmers, these can't directly support 3 way switch set ups.


Resources

Tuya developer site https://developer.tuya.com/en/