devices.esphome.io
DETA Grid Connect Smart Dimmer Switch 6910HA
DETA Grid Connect Smart Dimmer Switch 6910HA
Device Type: dimmerElectrical Standard: auBoard: esp8266
General Notes
The DETA Smart Dimmer Switch 6910HA uses the UART on GPIO 1 and 3. This switch comes with a WB3S chip and requires replacement in order to be used with ESPHome. It is still possible to convert these switches to ESPHome by replacing the WB3S chip with a ESP-12F chip and adding a 10k pull-down resister on GPIO15 as WB3S does not require it and omits it from the board.
GPIO Pinout
| Pin | Function |
|---|---|
| GPIO1 | UART TX |
| GPIO3 | UART RX |
| EN | 10k pull-up |
| RES | 10k pull-up |
| GPIO15 | 10k pull-down |
Getting it up and running
These switches are Tuya devices, however as the main W3BS chip needs to be replaced with a ESP12F it is best to serial flash the unit. There's useful guide to disassemble and serial flash these switches here. After that, you can use ESPHome's OTA functionality to make any further changes.
Dimmer Configuration
substitutions: device_name: detadimmerwitch friendly_name: "Dimmer Switch"
esphome: platform: ESP8266 name: ${device_name}
esp8266: board: esp01_1m restore_from_flash: true # OTA flashingota: - platform: esphome
wifi: # Your Wifi network details # Enable fallback hotspot in case wifi connection fails ap:
# Enable Home Assistant APIapi:
# Enable the captive portalcaptive_portal:
# Enable the Web Server component webserver:
sensor: - platform: wifi_signal name: ${device_name} Wifi Signal Strength update_interval: 60s - platform: uptime name: ${device_name} Uptime
################################## disable logging over UARTlogger: baud_rate: 0
# setup UART for Tuya mcuuart: rx_pin: GPIO3 tx_pin: GPIO1 baud_rate: 9600
# Register the Tuya MCU connectiontuya:
# light settingslight: - platform: "tuya" name: "${friendly_name}" # dimmers current value dimmer_datapoint: 2 # dimmer on/off switch_datapoint: 1 min_value: 0 max_value: 1000
switch: - platform: restart name: "${friendly_name} REBOOT"