logo elektroda
logo elektroda
X
logo elektroda

Arlec Grid Connect Smart RGBW Puck Lights (4-Pack): OpenBeken 4-PWM HA?

hardwire1010 384 1
ADVERTISEMENT
  • #1 21898442
    hardwire1010
    Level 1  
    Posts: 1
    Device: Arlec Grid Connect Smart RGBW Puck Lights (4-Pack)
    Chipset: BK7231N
    Board: CYTT-286 (Main Controller) / CYTT-341 (LED Puck)
    Product Link: Bunnings Australia

    Hi everyone,

    I recently picked up a 4-pack of the Arlec Grid Connect RGBW puck lights from Bunnings and successfully got them running on OpenBeken.

    Hardware / PCB
    Here is the main controller PCB (CYTT-286) containing the BK7231N, and the internal LED puck board (CYTT-341):

    Arlec Grid Connect Smart RGBW Puck Lights (4-Pack): OpenBeken 4-PWM HA? Arlec Grid Connect Smart RGBW Puck Lights (4-Pack): OpenBeken 4-PWM HA?

    The Issue (4-PWM Discovery)
    These lights use a 4-PWM configuration (RGB Cool White). Out of the box, the OpenBeken firmware lacked automatic Home Assistant discovery support for exactly 4 PWM channels. It was throwing a "4 PWM device not yet handled" error in the logs, and manual configurations using schema: json were failing because the firmware defaults to plain text state updates.

    The Fix & Firmware Patch
    To fix the auto-discovery, I applied a patch to src/httpserver/http_fns.c to treat 4-PWM devices as LIGHT_RGBCW during the HA discovery process. I have submitted a PR for this to the main repository. #2104

    Here is the code change:

    Code: C / C++
    Log in, to see the code


    Device Configuration Template
    Here is the complete JSON configuration to get the pins mapped correctly, including the AlwaysLow assignments on pins 6 and 24.

    Code: JSON
    Log in, to see the code


    Once the PR is merged (or if you apply the patch locally), these should auto-discover beautifully in Home Assistant with a full color picker and white channel slider.
  • ADVERTISEMENT
  • #2 21899380
    divadiow
    Level 38  
    Posts: 5065
    Help: 438
    Rate: 893
    Set of white round wired modules with long cables and a power adapter on a white background

    PR for device list add: https://github.com/OpenBekenIOT/webapp/pull/2...nges/888cec1995d92c879841773a476f62eac4c35390

    I hope the code is sound and the PR can be merged. the question that will be asked is if the code change adversely affects anyone else's config should they OTA to a release with it merged. If anyone has 4 PWM channels for a different device, what does it mean for them etc. Should this be gated behind some new flag? I don't know the answers, but these are the typical considerations.
ADVERTISEMENT