openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.41k stars 245 forks source link

LSC 2578539-970724 - Correct module config #365

Open ReanuKeeves01 opened 1 year ago

ReanuKeeves01 commented 1 year ago

Anyone who got this bulb flashed and working mind sharing the right module config? It's in the supported devices. OpenBK running smoothly, yet no clue what the correct Module config is for this RGB Bulb.

Screenshot 2022-10-29 at 17 53 32

I'm seeing this on the forums, and the auto-config in OpenBK seems to have followed this. It's just only filling the first field, not the actual values.

Many thanks

ReanuKeeves01 commented 1 year ago

Answering my own question for future reference.

Pin 24 = BP5758D_CLK = Value 0 P26 = BP5758D_DAT = Value 0

To now make this work in the interface, turn on the following setting: (only the underlined, flag 4)

image

As per forum discussion this would be a nice QoL feature for the less educated user to be automatically switched on when in this configuration.

Bacto commented 1 year ago

Good find @ReanuKeeves01! I'm facing a new issue on my side. I can control the bulb using MQTT. But can't add it using the "Home Assistant Discovery" system.

I get "No relay, PWM or power driver running."

Any idea?

image
ReanuKeeves01 commented 1 year ago

@Bacto I have another device that also doesn't work with Auto Discovery, same error.

What worked for me, was adding the device manually in Home Assistant by copying the config on your screen, into your configuration.yaml file.

In case you already have other mqtt entries in that file, your integration may vary slightly.

ReanuKeeves01 commented 1 year ago

Also try setting this, from Configure General:

Screenshot 2022-10-30 at 02 47 01
openshwprojects commented 1 year ago

I think I will just commit a change that will ALWAYS show RGBCW controller for all I2C LED drivers. Then this flag won't be needed...

Bacto commented 1 year ago

@ReanuKeeves01 thanks for the reply. Unfortunately flag 7 doesn't resolve the problem.

@openshwprojects do you have a clue?

ReanuKeeves01 commented 1 year ago

@Bacto have you tried manually adding the entity/device through your configuration.yaml? And if you did, what were the results or outcome ?

Bacto commented 1 year ago

Manually adding the JSON configuration to configuration.yaml works. That's why I think it's a OpenBK7231T_App bug. It shouldn't refuse to send the JSON configuration through MQTT.

ReanuKeeves01 commented 1 year ago

@Bacto i only managed to get the auto-discovery properly working for two CW/WW bulbs. The RGB ones I had to manually add via yaml to get everything working.

HumbleDeer commented 1 year ago

Can you check if a command / terminal logbook with all types of output enabled (eg warnings, errors, info, etc) shows anything related? if so, can you post it?

GravityRZ commented 1 year ago

i added mine to domoticz but some controls do not work color for starters do not work dim works off work on does not work

i think because the led_basecolor_rgbcw command is not supported yet.

do you actually have this RGBWW bulb fully working in Homeassistant. if that is the case it should work in domoticz to

Bacto commented 1 year ago

Hi,

I didn't got time to look at it but I saw that:

Best, Adrien

GravityRZ commented 1 year ago

i will try but seems strange. looks like they do not want you to change the color from the gui AND homeassistant/domoticz

ReanuKeeves01 commented 1 year ago

@GravityRZ very strange, i can at least confirm that i do have them fully working in both the OpenBK WEB UI, as well as in Home Assistant, with full RGB and CW/WW support.

What i noticed, is that when i add the new light in Home Assistant, as it is, the controls don't show up properly. I had to 'touch' all the controls once in OpenBK WEB UI once. I.e. Turn the light on/off, change the brightness, change the color temp and set one or two colors...

After that, the settings suddenly appeared correctly in HomeAssistant instantly. Flag 7 (from the general options, the retain flag) seem to be a must on my side. When i do not use this, after reboots of either OpenBK or HomeAssistant, it looses the controls and i'd have to repeat the steps above to get them showing up again in HA. Not sure if any of this helps, but this was my process to get them fully operating in HA.

GravityRZ commented 1 year ago

Good info. Will try tonight

GravityRZ commented 1 year ago

i tried it but is is recognised as RGBWZ instead of RGBWW do not know what RGBWZ is

i am trying on the domoticz forum to see if there is something wrong on their end since it works in home assistant