ESPHome, Top Greener switches, PSA and question

Since it is getting harder to find wifi switches which accept a ota tasmota flash, I thought I would pass these on.

https://www.amazon.com/gp/product/B07D8ZV4DG

I got these just a couple weeks ago, and they were still working with OTA flash.

Specifically the ones labeled GWF15S (white). I bought one, tried it, it flashed easily, and now have bought half a dozen because they are cheap ($15). They do require a neutral but after lots of caseta issues that’s a good thing IMO. They have provision for a traveller (though I use a caseta pico for the second switch). They have good solid screw-down backwire terminals, though wire-over-screw is a bit awkward it has that as well.

As a switch (i.e. off and on) they work great, so I put these in for a bunch of exhaust fans and fluorescents and just places where I did not need dimmers.

The tuyo reporting says there is a dimmer point on it. I cannot get the dimmer to work.

So my question is whether anyone has used these, and gotten the dimmer point to work. When I try it, the MQTT reports a change to 40% after a few minutes then it turns off (even when set at 100%).

But… if you need a cheap wifi SWITCH not dimmer, that can be flashed OTA to tasmota then esphome, these work great

I also got a handfull of their outlets:

https://www.amazon.com/gp/product/B07BX13MLF

A bit more expensive ($19 for white) but near identical otherwise, one switched, one always on. I bought them as of December and they worked fine with tasmota and esphome.

So if you need cheap wifi switches and having trouble finding any with OTA-to-esphome, here’s a choice.

If anyone has more details on features of them I’d love to know, e.g. dimming, power consumption, etc.

Linwood

PS. switch setting:

uart:
  rx_pin: GPIO13
  tx_pin: GPIO15  
  baud_rate: 9600

# Register the Tuya MCU connection
tuya:

light:
  - platform: "tuya"
    name: "toilet"
    switch_datapoint: 1

Here’s what I did for the outlet, I experimented a bit there to flash the LED on loss of wifi. Not necessary.

switch: 
  - platform: gpio
    name: "north_outlet_switch"
    pin: GPIO14

output: 
  - platform: esp8266_pwm
    id: blue_output
    pin: GPIO13
#   Note that the template I found said it is inverted, but it doesn't seem to be
    inverted: false
# GPIO01 appears to be the same LED

light: 
  - platform: monochromatic
    name: north_outlet_blue_led
    id: blue_led
    output: blue_output
    restore_mode: ALWAYS_OFF

# Flash LED if no wifi connection
interval:
    - interval: 5000ms
      then:
        - if:
            condition:
              not:
                wifi.connected:
            then:
              - light.turn_on:
                  id: blue_led
              - delay: 2500ms
              - light.turn_off:
                  id: blue_led

Thank you so much for your post. I have over 40 TopGreener switches in my house, of which 7 are of the dimmer types. I have previously had them configured with tasmota. I have switched about 1/2 of them to ESPHome using your configuration.

Topgreener switch TGWF15S is not a dimmer type. You will need TOPGREENER TGWF500D Smart Dimmer Switch. The configuration that I am using is as follows for the dimmer switch:

esphome:
name: great-room-can-lights

esp8266:
board: esp01_1m

Enable logging

logger:

Enable Home Assistant API

api:

ota:

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Optional manual IP

manual_ip:
static_ip: 192.168.1.204
gateway: 192.168.1.1
subnet: 255.255.255.0

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “Great-Room-Can-Lights”
password: “**************”

captive_portal:

web_server:
port: 80

uart:
rx_pin: GPIO13
tx_pin: GPIO15
baud_rate: 9600

Register the Tuya MCU connection

tuya:

light:

  • platform: “tuya”
    name: “Great Room Can Lights”
    switch_datapoint: 1
    dimmer_datapoint: 3
    min_value: 72