Skip to content

alray31/-I-SMPNL6WH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Convert Illume / Dals Connect I-SMPNL6WH recessed light to ESPHome

This yaml is provided as a base to convert your Illume lights to control them using ESPHome insteand of the Dals Connect app.

image

Summary:

Flashing the firmware requires access to the Tuya WB2L module inside of the light assemgbly, dissembly is required but easily done. There is no USB interface on the WB2L module, TTL-UART flashing is then required. The WB2L module is equipped with a Beken BK7231t MCU. The BK7231t can be flashed using the LibreTiny library from ESPHome

BOM:

  • A computer with USB port.
  • A USB TTL-UART dongle with 3.3V logic level, e.g. HiLetGo CP2102, with the correct drivers installed on the computer.
  • A BDM Frame with at least 4 probe pens, a 5th one (optional) if using Reset/CEN method.
  • At least 4 Dupont cable extension (female to female), 5 if using the Reset/CEN method.
  • The Itchiptool software https://github.com/libretiny-eu/ltchiptool.
  • Optional, a good 3.3Vdc power supply. The 3.3 power from your USB TTL-UART dongle might no be stable/powerful enough. I can confirm the HiLetGo dongle was able to power and flash the module without using any other power supply.
image image image

Preparation:

  • Remove the 6 philips screws from the back metal housing
image
  • Remove the 2 spring assembly. Use a pick or small screw driver inside the spring hook tab and push it toward the opposite side to compress the spring enough so one end of the spring will disengage from the plastic spring retainer. The spring will then be loose enough to be pulled out.
  • Carefully lift the back metal housing taking care not to damage any wire. Gently pry the PCB so its removed from the doublesided tape sticked to the metal housing.
image
  • Carefully cut the shrink tube over the pcb in order to access the WB2L Tuya module. Be careful not to damage any component.
image
  • Locate the white WB2L module. Fortunately enough, it is soldered in place in a way that we can easily access the connections needed for flashing without de-soldering the module from the PCB:
image
  • Position the PCB under the BDM frame and connects pens probes as follow:

USB TTL/UART Dongle WB2L module

 3.3V        ----------------      3.3v
 
 GND         ----------------      GND (either the GND next to the 3.3V or the GND located under U2_TXD are ok to use)
 
 RX          ----------------      U1_TXD
 
 TX          ----------------      U1_RXD
 
 RST         ----optional----      leave it free for now 
image image

Flashing instructions:

  • Using ESPHome and the provided yaml file in this repo, crate a UF2 firmware to be flashed on the module (In ESPHome, create a new device, edit it with the provided yaml making sure to edit to required info (e.g wifi related info), select "install" then "manual download" then UF2 file for Itchiptool. Download this file, it will be required by Itchiptool)
  • Launch Itchiptool
  • Connect the USB TTL-UART dongle to the probes pens and next to the computer. If using the RST/CEN method, do not it to anything yet, leave the other end of the wire free
  • Optional - recommended: Do a dump of the orignal firmware from the module if you want to restore it later. The dump is made using the same procudre as flashing but with selecting "read flash" instead of "write flash" in itchiptool
  • In Itchiptool, select Baud rate to Auto
  • In Itchiptool, select input file (the UF2 file create at step 1 using ESPHome)
  • In Itchiptool, click Start
  • If using the RESET/CEN method, momentarly short the RST pin to the ground to put the module in bootloader mode. If not using the RESET/CEN method, unplug and replug the 3.3V cable from the TTL-UART dongle. Both methods will requires a few attempts to get the correct timing so Itchiptool tries to connect to the module at the same time that the module boots in bootloader mode. If you're confident your connections are good, keep trying until you see ITchiptool progress bar showing activities.
image
  • Wait for the progress bar to show a sucessful flash
  • Disconnect the USB TTL-UART dongle from the computer
  • Remove all probes
  • Install a new shrink tube over the PCB (or if still in a good condition, use the old one and wrap some electrical tape over it).
  • Reassemble the light.
  • Reconnect the light to its AC-DC power supply
  • Wait for the light to boot and connect to wifi (take about 2 minutes). The light will stays off by default since restore_mode is set to RESTORE_DEFAULT_OFF. You can change this if wanted in your yaml.
  • Subsequent flash/ota can now be done OTA using esphome builder

Ressources:

image

WB2L specs: https://fcc.report/FCC-ID/2ANDL-WB2L/4589224.pdf

LibreTiny WB2L support page: https://docs.libretiny.eu/boards/wb2l/

ESPHome / Libretiny for BK72xx family MCU: https://esphome.io/components/libretiny/

paypal

About

Convert illume / Dals Connect I-SMPNL6WH recessed light to ESPHome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors