brettfk
(Brett Franklin)
May 6, 2024, 12:54am
1
We recently picked up a couple of Arlec GLD364HA E14 bulbs containing a CBLC5 chip and SM2135EH RGB controller.
The bulb consists of multiple LEDs for each colour, both rgb and cw.
I updated ESPHome to latest version a couple of days ago noting that support for the 2135EH had been added, and I disabled ‘separate modes’ per the ESPHome documentation on the 2135 driver.
When the bulbs are running OpenBK, all colours work including CW/WW, however once flashed with ESPHome, white stops working altogether and I’m not sure why. Below is a YAML snippet, wondering what I could be doing wrong or if this is simply a bug? TIA.
sm2135:
data_pin: PWM4
clock_pin: PWM5
separate_modes: false
# Individual outputs
output:
- platform: sm2135
id: output_green
channel: 0
max_power: 0.8
- platform: sm2135
id: output_blue
channel: 1
max_power: 0.8
- platform: sm2135
id: output_red
channel: 2
max_power: 0.8
- platform: sm2135
id: output_white
channel: 3
max_power: 0.8
- platform: sm2135
id: output_warmwhite
channel: 4
max_power: 0.8
light:
- platform: rgbww
name: 'arlec-e142-rgbw-1'
id: 'arlec_e142_rgbw1'
red: output_red
green: output_green
blue: output_blue
warm_white: output_warmwhite
cold_white: output_white
warm_white_color_temperature: 2700 K
cold_white_color_temperature: 6500 K
color_interlock: true
mickjor
(Michael E)
May 30, 2024, 12:23pm
2
Sorry cant help but just adding that i brought a Arlec GLD381HA GU10 RGBW and am having the same issue - it uses a CBLC9 which needed to be flashed over serial. I can get RGB working but not the WW/CW, config is the same as yours and have also tried using RGBCT and separating into RGB + W.
brettfk
(Brett Franklin)
June 1, 2024, 3:35am
3
Good to know I’m not doing anything silly! I’ve just opened an issue on the GIthub page, will see what we get back.
opened 03:33AM - 01 Jun 24 UTC
### The problem
Unable to use any white colors (cool or warm), only RGB works. … These bulbs have a series of LEDs for each colour (CW/WW/R/G/B)
### Which version of ESPHome has the issue?
2024.4.2
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2024.5.4
### What platform are you using?
BK72XX
### Board
WBLC5
### Component causing the issue
SM2135
### Example YAML snippet
```yaml
sm2135:
data_pin: PWM4
clock_pin: PWM5
separate_modes: false
# Individual outputs
output:
- platform: sm2135
id: output_green
channel: 0
max_power: 0.8
- platform: sm2135
id: output_blue
channel: 1
max_power: 0.8
- platform: sm2135
id: output_red
channel: 2
max_power: 0.8
- platform: sm2135
id: output_white
channel: 4
max_power: 0.8
- platform: sm2135
id: output_warmwhite
channel: 3
max_power: 0.8
light:
- platform: rgbww
name: 'arlec-e141-rgbw-1'
id: 'arlec_e141_rgbw1'
red: output_red
green: output_green
blue: output_blue
warm_white: output_warmwhite
cold_white: output_white
warm_white_color_temperature: 2700 K
cold_white_color_temperature: 6500 K
color_interlock: true
```
### Anything in the logs that might be useful for us?
```txt
[09:00:38][D][light:348]: 'arlec-e141-rgbw-1' - Setting cold/warm white channels using white/color temperature values.
[09:00:38][D][light:036]: 'arlec-e141-rgbw-1' Setting:
[09:00:38][D][light:047]: State: ON
[09:00:38][D][light:066]: Color temperature: 153.8 mireds
[09:00:38][D][light:070]: Cold white: 100%, warm white: 0%
[09:00:38][D][light:085]: Transition length: 1.0s
[09:00:41][D][light:348]: 'arlec-e141-rgbw-1' - Setting cold/warm white channels using white/color temperature values.
[09:00:41][D][light:036]: 'arlec-e141-rgbw-1' Setting:
[09:00:42][D][light:066]: Color temperature: 334.7 mireds
[09:00:42][D][light:070]: Cold white: 56%, warm white: 100%
[09:00:42][D][light:085]: Transition length: 1.0s
[09:00:46][D][light:348]: 'arlec-e141-rgbw-1' - Setting cold/warm white channels using white/color temperature values.
[09:00:46][D][light:036]: 'arlec-e141-rgbw-1' Setting:
[09:00:46][D][light:066]: Color temperature: 211.2 mireds
[09:00:46][D][light:070]: Cold white: 100%, warm white: 69%
[09:00:46][D][light:085]: Transition length: 1.0s
[09:00:56][D][light:036]: 'arlec-e141-rgbw-1' Setting:
[09:00:56][D][light:047]: State: OFF
[09:00:56][D][light:085]: Transition length: 1.0s
```
### Additional information
The second bulb I purchased I tested while still running OpenBeken firmware and confirmed both white channels were OK, seems to stop once on ESPHome. The LED controller is the SM2135EH.
Bit of a late response but I have just had similar with some Calex bulbs and figured out a fix for myself. Reading the SM2135 spec sheet I noticed the CW current defaults to 30mA and RBG to 20mA. In ESPHome it defaults both to 20mA.
I’ll add a comment to the github issue too in case anyone misses this comment.
Setting it up like this worked for me:
sm2135:
data_pin: PWM4
clock_pin: PWM5
separate_modes: false
cw_current: 30mA
2 Likes
brettfk
(Brett Franklin)
August 1, 2024, 11:13am
5
My friend, you are a champion! Updated my config and blam, it works. Thankyou!!
1 Like
Thank you! This worked for me as well on a MiMoodz 85077 bulb, which has an TYCL2 V1.0.2 board in it.