ESPHome on Brilliant smart light

Managed to flash ESPHome onto a Brilliant smart downlight (20bux from Aldi) but I cant figure out how to get the CW/WW to work.

From the tasmota template GPIO5 is brightness and GPIO13 is between CC/WW.

I dont think the inbuilt CWWW light component works given color mixing is just on GPIO13 so I am not sure how to integrate this into the light output. Will this need a custom output?

output:
  - platform: esp8266_pwm
    pin: GPIO5
    frequency: 1000 Hz
    id: pwm_output


# Example usage in a light
light:
  - platform: monochromatic
    output: pwm_output
    name: "Downlight1"

https://blakadder.github.io/templates/brilliant_downlight.html

Its not pretty but given I wont need to adjust color temp. I just set up a second light instead of having a color temp slider and set it as internal for now. The other option I tried was to set it as RGB with R controlling brightness and G controlling temp.

Had a shot at setting up a custom light to make it neat but alas its too hard for now.

output:
  - platform: esp8266_pwm
    pin: GPIO5
    frequency: 1000 Hz
    id: pwm_output1
    
  - platform: esp8266_pwm
    pin: GPIO13
    frequency: 1000 Hz
    id: pwm_output2
  
light:
  - platform: monochromatic
    id: "Downlightt1CW"
    output: pwm_output2
  - platform: monochromatic
    name: "Downlight1"
    output: pwm_output1

I managed to flash Tasmota onto brilliant devices (a plug and light bulbs and added a template for Brilliant Smart Wifi A60 globe White 20890. See blog post.
It might help with the color temp problem.

Just dropping in a repo I found from @cdmonk - https://github.com/cdmonk/esphome_ArlecSmartGlobe

Just got it working with Brilliant Smart A60 CCT 20875. Setup and working in minutes, all I did was modify the code to make it generic (name-wise).