Re-format. Move Relay to a new page.

Michael Ingraham 2019-07-13 10:30:53 -04:00
parent e0fb4902e7
commit 8169efc09a
1 changed files with 35 additions and 69 deletions

@ -1,48 +1,59 @@
## Tuya Dimmer
There are several Tuya Dimmer variants by various manufacturers. These dimmers are usually 1 gang switches that dim mains voltage for various lighting types: incandescent, CFL, and LED. Consult the specific device for the type of bulbs and capacity it supports as well as the bulbs themselves to verify they support dimming.
The Tuya Dimmer is usually a 1 gang dimmer that dims mains voltage to various lighting types; incandescent, CFL, and LED. Consult the specific device for what type of bulbs and capacity it supports as well as the bulbs themselves to verify they support dimming.
Tuya Dimmer support was added as a BASE module (`Tuya Dimmer (54)`) (introduced in 6.2.1.16).
As of version 6.2.1.16 Tuya Dimmer support was added as a device type. There are several Tuya Dimmer variants by various manufacturer.
#### Configuration
### Oittm, Moes, etc US variants
- GPIO13 - Tuya Rx (108)
- GPIO15 - Tuya Tx (107)
Video Flashing and Setup Guide - https://www.youtube.com/watch?v=fyxxk2NrKG8
Template: {"NAME":"Tuya Dimmer","GPIO":[255,255,255,255,255,255,0,0,255,108,255,107,255],"FLAG":0,"BASE":54}
Product Links:
[Module](https://user-images.githubusercontent.com/34905120/47967431-4a537880-e02b-11e8-955b-ee9843bd222d.jpg)
Oittm - https://www.amazon.com/gp/product/B07D127YL5
[`SetOption34`](Commands#setoption34) - Set the Tuya Dimmer device ID
Moes - https://www.amazon.com/gp/product/B07DRG19S6
_If power on/off works, but dimming doesn't, you probably haven't set the correct ID_
Konesky - https://www.amazon.fr/gp/product/B07L3LNVG1/
Heygo - https://www.amazon.com/gp/product/B07JG6T1G8/
### Pics
#### Flashing
![](https://github.com/digiblur/TuyaDimmer-Tasmota/raw/master/IMG_0788.JPG)
![](https://github.com/digiblur/TuyaDimmer-Tasmota/raw/master/IMG_1946.JPG)
![](https://github.com/digiblur/TuyaDimmer-Tasmota/raw/master/IMG_4881.JPG)
![](https://github.com/digiblur/TuyaDimmer-Tasmota/raw/master/IMG_8149.JPG)
#### Flashing and GPIO Pins
[Flashing and Setup Video Guide](https://www.youtube.com/watch?v=fyxxk2NrKG8)
The Tuya module uses is a standard TYWE3S. Once the switch is carefully popped open you will need to remove the ribbon cables for flashing and ease of soldering. An easy soldering method is to take several dupont style jumper wires, cut one end off, and apply a bit of solder to each stripped end. This will keep the wire flexible and prevent any circuit board pads from ripping off like seen in pictures using male jumper pins. Apply a bit of solder to each pad necessary to flash (do not get them backwards, double check your pin outs). Once the wire and pad have solder simple put the two together and apply a bit of heat and they will pull together.
These devices use a Tuya TYWE3S Wi-Fi PCB module. Once the switch is carefully popped open you will need to remove the ribbon cables for flashing and ease of soldering. An easy soldering method is to take several Dupont style jumper wires, cut one end off, and apply a bit of solder to each stripped end. This will keep the wire flexible and prevent any circuit board pads from ripping off like seen in pictures using male jumper pins. Apply a bit of solder to each pad necessary to flash (do not get them backwards, double check your pin-outs). Once the wire and pad have solder simply put the two together and apply a bit of heat and they will join together.
![tywe3s_3](https://user-images.githubusercontent.com/3240875/43324698-669affd6-917a-11e8-8e06-c800741bfb68.png)
![chip_wires](https://user-images.githubusercontent.com/3240875/43324672-578ffcbc-917a-11e8-800c-f1d008ca3cf4.JPG)
Attach the GPIO0 wire to ground during initial boot to flash. A 3 pin header bridged together works great with GPIO0, GND and the GND from the USB flasher attached. (TX pin to RX pin and RX pin to TX pin on USB flash adapter). Verify that you are using 3.3volts to flash, NOT 5V!
### Multiple manufacturers Touch (EU and US)
Attach the GPIO0 wire to ground during initial boot to flash. A 3 pin header bridged together works great with GPIO0, GND and the GND from the USB flasher attached. (TX pin to RX pin and RX pin to TX pin on USB flash adapter). Verify that you are using 3.3volts to flash, **NOT 5V!**
Product Links:
https://www.aliexpress.com/item/WiFi-LED-Dimmer-Switch-220V-110V-Dimming-Panel-Switch-Connected-To-Alexa-Google-Home-Voice-Control/32859257784.html
- [Oittm](https://www.amazon.com/gp/product/B07D127YL5)
- [Moes DS01](https://www.amazon.com/gp/product/B07DRG19S6) ([Template](https://blakadder.github.io/templates/moes_DS01.html))
- [Konesky](https://www.amazon.fr/gp/product/B07L3LNVG1/)
- [Heygo](https://www.amazon.com/gp/product/B07JG6T1G8/)
https://www.amazon.de/Lichtschalter-Fernbedienung-Timing-Funktion-%C3%9Cberlastschutz-Neutralleitung/dp/B07BKY1N9S
### Costco Charging Essentials
#### Flashing and GPIO Pins
This devices use a Tuya TYWE1S Wi-Fi PCB module. And it uses U1TX (GPIO15) and U1RX (GPIO13) to communicate between ESP8266 and MCU, no other GPIO is used in this device.
#### Flashing
![tywe1s](https://user-images.githubusercontent.com/34905120/47533504-f524a380-d881-11e8-9b23-61c20074b06f.png)
![CE Dimmer](https://user-images.githubusercontent.com/34905120/47618033-a30f9800-daa4-11e8-80b7-de041c57ab36.jpg)
The CE dimmer uses standard Tuya GPIO
[Product Link](https://www.costco.ca/CE-Smart-Home-Wi-Fi-Smart-Dimmer-Light-Switch%2c-2-pack.product.100417574.html)
### Touch (EU and US) - Multiple manufacturers
#### Flashing
![Tuya-Touch](https://user-images.githubusercontent.com/1183624/42902025-7b57aa9a-8acd-11e8-8fed-bda9bff28e70.png)
The procedure is similar to above, additionally NRST must be connected to GND during flashing.
@ -50,56 +61,11 @@ The procedure is similar to above, additionally NRST must be connected to GND du
#### Additional configuration
`SetOption34 2` (This sets the ID used to set the dim-level)
_Hint: If power on/off works, but dimming doesn't, you probably haven't set the correct ID_
#### Optional/recommended configuration
#### Optional configuration (recommended)
`LedState 0` (To only use the green LED for wifi/mqtt connectivity.)
### Charging Essentials (from Costco)
The CE dimmer uses TYWE1S module. And it uses U1TX (GPIO15) and U1RX (GPIO13) to communicate between ESP8266 and MCU, no other GPIO is used in this device.
Product Links:
https://www.costco.ca/CE-Smart-Home-Wi-Fi-Smart-Dimmer-Light-Switch%2c-2-pack.product.100417574.html
#### Flashing and GPIO Pins
![tywe1s](https://user-images.githubusercontent.com/34905120/47533504-f524a380-d881-11e8-9b23-61c20074b06f.png)
![CE Dimmer](https://user-images.githubusercontent.com/34905120/47618033-a30f9800-daa4-11e8-80b7-de041c57ab36.jpg)
#### Additional configuration
![Settings](https://user-images.githubusercontent.com/34905120/47967431-4a537880-e02b-11e8-955b-ee9843bd222d.jpg)
### Konesky
The CE dimmer uses standard Tuya gpio
## Tuya Relay ERC309
Discussed here: https://github.com/arendst/Sonoff-Tasmota/issues/6056#issuecomment-510954469
Product Link: https://s.click.aliexpress.com/e/54JDwLm
Picture of the product:
![](https://user-images.githubusercontent.com/25117255/61148426-0e888100-a4df-11e9-92c5-43453afcc6c5.png)
Flashing the device (2 options):
1. Desolder the ESP Board and solder wires to it like seen in the pictures above (Tuya Dimmer). This way it's easier to get to the pins of the board.
![](https://user-images.githubusercontent.com/25117255/60970963-637f9800-a323-11e9-8a68-1e3ca171e3bc.JPEG)
2. If you have a thin soldering iron, again solder the wires like shown above, but don't desolder the board. If pick this option you will have to connect the RESET pin of the MCU Board to GND (RESET pin is shown in the picture).
![](https://user-images.githubusercontent.com/1183624/61084250-d5440880-a42d-11e9-93c4-0407092a5dce.jpeg)
After Flashing your device follow these two steps:
1. In tasmota set the device as Tuya Dimmer
2. Go to the console and enter: setoption65 1
- [AIGLEN](https://www.aliexpress.com/item/WiFi-LED-Dimmer-Switch-220V-110V-Dimming-Panel-Switch-Connected-To-Alexa-Google-Home-Voice-Control/32859257784.html)
- [ALLOMN](https://www.amazon.de/Lichtschalter-Fernbedienung-Timing-Funktion-%C3%9Cberlastschutz-Neutralleitung/dp/B07BKY1N9S)