Tsong LED Panel with GreenSo TYWE3L(esp8266) chip

Hi Guys,

I have bought an Tsong WiFi LED Panel 60x60cm CCT 3000K - 6000K 36W 100lm/W Edge-lit with an TYWE3L chip in the controller which i want to flash to esphome to use local in my HA setup.
More details here: WiFi LED Paneel CCT 60x60 • Warm tot Koudwit | LEDWINKEL-Online

The controller has a TYWE3L chip which i think is an esp8266 variant which can be flashed…? But how do i determine the configuration that is needed once i flashed the chip for this device? I can’t seem to find someone that has also converted this LED panel. I did flash some chips before to esphome, f.e. my AC, but there was always a configuration available that i simply uploaded and my device was working. Now for this panel i haven’t found a configuration.
Inside tuya app the device is working perfectly, i can adjust the color, dimm the light and switch it on and off.

Below some detailed pictures of the controller:





Can someone point me in the direction i need to follow to determine the configuration for this LED panel, once i flashed the chip ?

Did you get a look at Tasmosta wiki page that explains all details about these Tuya tweaked versions of ESP ? Wi-Fi Module Pinouts - Tasmota

i just looked at the pinout of the chip, i think i can determine what is what on the pcb. But whats next? i need a config to set brightness, on/off, colour temperature etc…

You’ll probably have to do some tracing on the board. Without it being attached to AC.

please mind i want to make a config for my LED panel controller. with tracing i can determine which commands are send and this way write a working esphome config?

No you can figure out what pins are connected to the dimming etc.

This looks very similar to what you have, it is a batten rather than a panel and you would have to confirm the GPIO connections but might help you start.

1 Like

@EBME2
Thanks, this looks promising. I’m going to try this!

Today i finally found some time to work on this project. I managed to get the light working, brightness as well as the color temperature control with ESPHOME light component (Cold White + Warm White Light) :slight_smile:

The LED panel has a memory function, this means the light brightness and colors are restored after a power cycle. This way you can simply replace the controller with an existing light bulb.

But since i want to have dimmed light at night and a normal light during the day, i added an extra binary sensor in the ESPHOME config. I’m going to power the LED panel controller constantly on 230V and use the switch in the wall to switch on/off the light. Since the controller, and thus the ESPHOME instance is constanly up, i can change the prefered brightness at all times.

Below my ESPHOME config:

esphome:
  name: badkamerledpanel
  friendly_name: badkamerledpanel

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Web server.
web_server:
  port: 80

# Enable Home Assistant API
api:
  encryption:
    key: "x"

ota:
  password: "x"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "x"
    password: "x"

captive_portal:

output:
  - platform: esp8266_pwm
    id: output_component1
    pin: GPIO5
    inverted: False
  - platform: esp8266_pwm
    id: output_component2
    pin: GPIO13
    inverted: False

light:
  - platform: cwww
    name: "Badkamer LED panel"
    cold_white: output_component1
    warm_white: output_component2
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 3000 K
    constant_brightness: true

binary_sensor:
  - platform: gpio
    pin:
      number: 14
      mode:
        input: true
        pullup: true
    filters:
      - invert:
      - delayed_on_off: 25ms #debounce 25ms
    name: "switch"
    id: onoffswitch

For completeness this chip is documented here

It is an esp8266.

1 Like

I changed my config a bit so i can use the regular lightswitch in the wall to switch the light on or off, regardless of it’s state. I used the light.toggle, because the light may have been switch on by a HA automation. :wink:

    on_state:
      then:
        - light.toggle: badkamerlight

During the night I prefer the light to be dimmed as low as possible, and in the morning/day the light brightness is set to ± 60%.
My automation triggers on specific times and sets the light brightness and color. Immediatly after the light is switched off. (the light doesn’t visibly switches on, but does have presets loaded)
This way, when someone switches the light to on with the wall switch, the brightness and color is preset to the right setting of that time of the day :slight_smile:

full config:

esphome:
  name: badkamerledpaneeltje
  friendly_name: badkamerledpaneeltje

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Web server.
web_server:
  port: 80

# Enable Home Assistant API
api:
  encryption:
    key: "x"

ota:
  password: "x"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "x"
    password: "x"

captive_portal:

output:
  - platform: esp8266_pwm
    id: output_component1
    pin: GPIO5
    inverted: False
  - platform: esp8266_pwm
    id: output_component2
    pin: GPIO13
    inverted: False

light:
  - platform: cwww
    name: "Badkamer LED panel"
    cold_white: output_component1
    warm_white: output_component2
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 3000 K
    constant_brightness: true
    id: badkamerlight

binary_sensor:
  - platform: gpio
    pin:
      number: 14
      mode:
        input: true
        pullup: true
    filters:
      - invert:
      - delayed_on_off: 25ms #debounce 25ms
    name: "switch"
    id: onoffswitch
    on_state:
      then:
        - light.toggle: badkamerlight