FEIT dimmers: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
My understanding is that many IoT home control products get rebranded that are made by Tuya.
https://faceitsalon.com/wiring-diagram-for-a-feit-wi-fi-smart-dimmer-switch-collection/
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.
For me these are advantageous when installed in 3 way circuits and my house has a lot of those. You can put a dimmer at each end or a regular switch at the far end. Now that they are down to $10 and Decora 3-way switches are $4 and 4-way switches are $15 it's not really worth replacing a toggle with a dumb Decora in some places, like my dining room and stairs.  
I bought them with this in mind.


== TWYE2S cpu ==
When replacing a switched 3-way set up you can use one each, dumb switch and smart dimmer. You can also put a dimmer at each end, you put each switch on line power and use the traveler to let them talk to each other.


Both of these devices (Martin Jerry and Feit) use a Tuya TWYE2S cpu module.
You can extend this to 4-way circuits, here is a picture someone posted: https://imgur.com/GIZwCqs This actually causes less confusion in my brain than conventional multipole switches. Sad perhaps? I think I might be able to replace the 4-way with a 4-way and have one dimmer + 2 switches.
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
=== Tuya usage ===
extra pins.
Basic 'normal' set up
 
# Register a Tuya account and log in.
Documentation for TYWE2S
# Add the Tuya integration to HA.
https://developer.tuya.com/en/docs/iot/wifie2smodule?id=K9605u79tgxug
# 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.)
 
# Power up the new dimmer.
=== How did you fry that S-01, Brian? ===
# Configure it with Smart Life.
 
# Now it will just pop up in HA and you can treat it like any other HA device.
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.)
=== Reflashing ===
The Espressif Programmer was not pulling GPIO0 down so I had to unhook that wire and manually ground the input.  
I have not succeeded in reflashing any of these yet. I pulled one apart to learn how to flash it and I think I fried the CPU.


== Feit Electrics dimmers ==
It can be done by removing the WiFi chip or by attaching wires and cutting a trace. I tried removal and failed.


These are a good price but I'm disappointed that I will have to remove the CPU from the board to reflash them.
Notes on removing the ESP from the dimmer are here: https://community.smartthings.com/t/costco-cheap-feit-smart-dimmer-wifi/208142 Also note you can replace the ESP board with an ESP-01 if you break one.


https://community.smartthings.com/t/costco-cheap-feit-smart-dimmer-wifi/208142
Look for "Technowizard" for information on how to cut a trace on the board. https://community.home-assistant.io/t/costco-feit-tuya-based-wifi-dimmer-step-by-step-guide-newbie-friendly/284865/12


https://community.home-assistant.io/t/costco-feit-smart-dimmer-tuya-convert-tasmota/151390/5
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.
Currently they are deployed in  
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.  
* bathroom,  
* kitchen island,
* breakfast area aka "nook",
* living room,
* dining room.


Pinout on the front, left to right
TWY2S pinout on the front, left to right


  RST
  RST
Line 64: Line 52:
  14
  14


There are some other marked pads not on the edge including
There are some other marked pads (test points) not on the edge including
 
  I0
  I0
  IO2
  IO2
Line 70: Line 59:
  GND
  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 [https://esphome.io 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
[https://www.reddit.com/r/homeassistant/comments/dyoamt/anyone_using_costco_feit_electric_dimmer_switches/ 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
# Register a Tuya account and log in.
# Add the Tuya integration to HA.
# 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.)
# Power up the new dimmer.
# Configure it with Smart Life.
# 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.
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




== Resources ==


Tuya developer site https://developer.tuya.com/en/
[[Category:IoT]]

Latest revision as of 23:12, 11 June 2024

https://faceitsalon.com/wiring-diagram-for-a-feit-wi-fi-smart-dimmer-switch-collection/

For me these are advantageous when installed in 3 way circuits and my house has a lot of those. You can put a dimmer at each end or a regular switch at the far end. Now that they are down to $10 and Decora 3-way switches are $4 and 4-way switches are $15 it's not really worth replacing a toggle with a dumb Decora in some places, like my dining room and stairs.

When replacing a switched 3-way set up you can use one each, dumb switch and smart dimmer. You can also put a dimmer at each end, you put each switch on line power and use the traveler to let them talk to each other.

You can extend this to 4-way circuits, here is a picture someone posted: https://imgur.com/GIZwCqs This actually causes less confusion in my brain than conventional multipole switches. Sad perhaps? I think I might be able to replace the 4-way with a 4-way and have one dimmer + 2 switches.

Tuya usage

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.

Reflashing

I have not succeeded in reflashing any of these yet. I pulled one apart to learn how to flash it and I think I fried the CPU.

It can be done by removing the WiFi chip or by attaching wires and cutting a trace. I tried removal and failed.

Notes on removing the ESP from the dimmer are here: https://community.smartthings.com/t/costco-cheap-feit-smart-dimmer-wifi/208142 Also note you can replace the ESP board with an ESP-01 if you break one.

Look for "Technowizard" for information on how to cut a trace on the board. https://community.home-assistant.io/t/costco-feit-tuya-based-wifi-dimmer-step-by-step-guide-newbie-friendly/284865/12

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

Currently they are deployed in

  • bathroom,
  • kitchen island,
  • breakfast area aka "nook",
  • living room,
  • dining room.

TWY2S 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 (test points) not on the edge including

I0
IO2
RST
GND


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