logo elektroda
logo elektroda
X
logo elektroda

[Solved] [BK7231T][WB3S] Ledvance SMART+ Sun@Home Planon CCT light Unable to control via WebUI

tommixoft 1773 5
ADVERTISEMENT
  • #1 20743809
    tommixoft
    Level 3  

    First of all, sorry if I'm in the wrong subforum. I FINALLY, after a huge pain, flashed my device with OpenBK. I did everything like in the videos and so on.
    I pasted the JSON that I've got reading Tuya firmware, converted it, and configured that the device has 2 pins, 6 and 8, as PWM. On the index page of the device, the Toggle button doesn't do anything. Also, the light color slider doesn't change anything either. The only way I can turn on the light is via the Web app Status TAB.
    That's it! Also, the lamp doesn't remember in what state it was before rebooting (I checked flag 12). In short, nothing really works.
    The worst part is that when unplugging and re-plugging, it stays off. A lamp that only turns on via software is a useless lamp.
    I'm left with a 180 EUR value brick :( Please help. I can upload the original BIN... whatever I can, I will provide.
    Thanks in advance.


    JSON of device
    Quote:

    {
    "rstnum": "5",
    "rstcor": "c",
    "Jsonver": "1.1.9",
    "brightmin": "7",
    "title20": "1",
    "deftemp": "0",
    "c_lv": "1",
    "wfcfg": "spcl",
    "colormin": "10",
    "pmemory": "1",
    "cmod": "cw",
    "wt": "30",
    "cwtype": "1",
    "prodagain": "0",
    "rstbr": "100",
    "remdmode": "0",
    "colormax": "100",
    "cagt": "30",
    "w_lv": "1",
    "c_pin": "8",
    "module": "WB3S",
    "cwmaxp": "100",
    "dmod": "0",
    "rgbt": "0",
    "onoffmode": "1",
    "brightmax": "100",
    "w_pin": "6",
    "wfct": "3",
    "pwmhz": "4000",
    "rsttemp": "0",
    "category": "0502",
    "defcolor": "c",
    "defbright": "100",
    "crc": "81",
    "cdv": "1.0.0",
    "dev_swv": "2.9.16",
    "s_id": "null",
    "dtp": "0",
    "sync": "0",
    "attr_num": "0",
    "mst_tp_0": "0",
    "mst_ver_0": "null",
    "mst_tp_1": "0",
    "mst_ver_1": "null",
    "mst_tp_2": "0",
    "mst_ver_2": "null",
    "mst_tp_3": "0",
    "mst_ver_3": "null",
    "dminfo_name": "null",
    "dminfo_code": "null",
    "dminfo_report_code": "null",
    "dminfo_sn": "null "
    }


    Web interface with OpenBK software settings for an LED lamp.
  • ADVERTISEMENT
  • Helpful post
    #2 20743846
    p.kaczmarek2
    Moderator Smart Home
    Please show screenshots from Configure->Configure Module tab, which GPIOs are PWM?

    If you enable this flag (temporary):
    Screenshot of the configuration panel with flag 3 related to PWM highlighted.
    do you get 2 sliders on main panel? Are they working? Which are working and which don't?

    Maybe this device is using alternate CW mode:
    Screenshot showing flag options in module configuration with flag 8 selected for alternate CW mode.
    and you just need to tick flag 8? You can also try it
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20744172
    tommixoft
    Level 3  

    Thanks for the reply.

    The module config only has 2 entries:
    Module configuration screen with a list of PWM settings.

    The 8th flag does nothing. The only option that allows me to control color and brightness is Flag #3. The top slider controls channel 4 - it acts like brightness, and channel 5 acts like color temp. This is already more than the original firmware because I was unable to add this lamp to the Tuya or manufacturers app. I tried bazillion times.
    But the problem is there is no option to turn on and off, so I won't have to change both sliders to the 0 position to turn it off. I would like the device to remember the position/settings the lamp was in. I would like it to always turn on when it gets electricity or, even better, remember the last state.

    Also, for some reason, in HomeAssistant, the device showed up but it has no entities at all. This lamp is cursed.

    But my YAML code looks normal and ok [ignore the fact that the website destroys tabs in the code]:

    Quote:

    mqtt:
    light:
    - unique_id: "OpenBK7231T_8D9F115F_light"
    name: Light
    color_temp_command_topic: "cmnd/Ledvanceobk8D9F115F/led_temperature"
    color_temp_state_topic: "Ledvanceobk8D9F115F/led_temperature/get"
    command_topic: "cmnd/Ledvanceobk8D9F115F/led_enableAll"
    state_topic: "Ledvanceobk8D9F115F/led_enableAll/get"
    availability_topic: "Ledvanceobk8D9F115F/connected"
    payload_on: 1
    payload_off: 0
    brightness_command_topic: "cmnd/Ledvanceobk8D9F115F/led_dimmer"
    brightness_state_topic: "Ledvanceobk8D9F115F/led_dimmer/get"
    brightness_scale: 100


    PS. Can I use the OTA feature in the webApp to flash ANY bin, or does it have to be OTA of OpenBK? Or can it be any compatible bin? Let's say flash back the original via OTA feature?
  • ADVERTISEMENT
  • Helpful post
    #4 20744216
    p.kaczmarek2
    Moderator Smart Home
    This device will work well with OBK. This is what we needed to know:
    tommixoft wrote:
    Flag #3. Top slider controls channel 4 - it acts like brightness, and channel 5 like color temp.

    It means that is using alternate CW mode. Now, you need to:
    - set the alternate CW mode flag, so one PWM controls brightness and second temperature
    - disable "show raw PWMs" flag to get on/off button back
    - check if it's working, if not, try to swap channel with 5, alternatively try to set one slider to channel 0 and second to 1 (or swap them)
    - if you have inverted brightness slider or inverted cool and warm, change the respective PWM role to PWM_n
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20744236
    tommixoft
    Level 3  

    It WORKS!! Thanks A LOT!!!

    To people who will come here via Google search, here are the module settings:

    Module settings window with PWM configuration for channels highlighted.

    Also, set Flag #8 to on and #3 to off.

    The problem was auto config from JSON really. It was controlling channel 4 and 5, and needed to be 0 and 1.

    THANK YOU! p.kaczmarek2
ADVERTISEMENT