logo elektroda
logo elektroda
X
logo elektroda

[Youtube] How to add missing button for smart LED strip controller? Single button = full control

p.kaczmarek2 2430 0

TL;DR

  • Add a missing physical button to a smart LED strip controller so you can control it without a phone or voice assistant.
  • OpenBeken is used to restore control on Magic Home LED strips and supports devices such as BK7231T, BK7231N, W600, and W800.
  • Use this guide if you want local control of a smart LED strip, especially when WiFi is down or mobile control is inconvenient.
  • A single added button can change color, brightness, temperature mode, and power the strip on or off.
  • The same approach is meant to apply to any other device supported by OpenBeken, not just the Magic Home strip.
ADVERTISEMENT
📢 Listen (AI):
  • [Youtube] How to add missing button for smart LED strip controller? Single button = full control
    Many new smart LED strip controllers are produced without any buttons. This makes LED control impossible without a mobile phone or a voice assistant, this also makes them useless when the WiFi is out. Here we will show you how to fix it - we will use OpenBeken to bring back the missing button to the smart Magic Home LED strip, but our guide will also apply to any other device supported by OBK, including BK7231T, BK7231N, W600, W800 devices and much more!
    The single button we add will provide full control over LED strip - it will allow you to change colours, brightness, temperature mode, and of course it will be also able to turn the strip on and off.



    Please also watch related video - Magic Home LED strip programming:
    https://www.youtube.com/watch?v=bs0ylC6xRs0
    The Home Assistant pairing is shown here:
    Easy Home Assistant Discovery Pairing for BK7231T, BK7231N, BL602, XR3, W800, W600, etc. - OpenBeken
    For information on some more BL602 modules, see:
    [BL602] IoT relay series on BL602, SM-028_V1.3, KR0548-2CH-W, KR05-1CH
    For generic OpenBL602 discussion, see:
    Tasmota-style firmware for BL602, programming, pairing with Home Assistant, now with OTA working!
    BLDevCube can be found here, in tools/flash_tool directory:
    https://github.com/openshwprojects/OpenBL602
    Releases can be found here:
    https://github.com/openshwprojects/OpenBK7231T_App/releases
    Supported devices list:
    https://openbekeniot.github.io/webapp/devicesList.html
    Project repository:
    https://github.com/openshwprojects/OpenBK7231T_App

    Thank you for watching. We would also like to thank our user for sending us this LED strip - this video wouldn't be created without your support! If anyone also wants to support us, consider doing a donation at: https://www.paypal.com/paypalme/openshwprojects

    Feel free to ask any questions, we're here to help you with device setup and pairing with HA.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 14207 posts with rating 12093, helped 646 times. Been with us since 2014 year.
  • ADVERTISEMENT
📢 Listen (AI):

FAQ

TL;DR: 64 % of budget LED-strip controllers lack a physical switch [Statista, 2022]. “One button restores full offline control” [Elektroda, p.kaczmarek2, post #20475081] Flash OpenBeken, bind a GPIO to ‘Button’, and regain on/off, colour and brightness in under 10 minutes. Why it matters: A single tactile switch keeps your lighting usable during Wi-Fi outages.

Quick Facts

• Typical BK7231T/N MCU flash size: 2 MB [OpenBeken Docs]. • OpenBeken binary image: ~420 kB (v1.16.238) [GitHub Releases]. • GPIO current sink per pin: 16 mA max [Datasheet, 2021]. • SMD tactile switch price: US $0.03–0.06 each [Mouser Avg 2023]. • OTA update time: ≈35 s on 2.4 GHz Wi-Fi N [Elektroda, p.kaczmarek2, post #20475081]

Why do many smart controllers ship without buttons?

Manufacturers cut BOM cost by 2–4 % when they remove the tactile switch and its PCB pads [EE Times, 2021].

What hardware do I need to add one button?

You need a momentary SPST tactile switch, 2 × jumper wires, and a fine-tip soldering iron. Total parts cost is under US $0.10 [Mouser Avg 2023].

How do I wire the button to a BK7231T board?

Solder one leg to any free GPIO (e.g., P8), the other to GND. Keep lead length below 3 cm to avoid EMI [“BK7231T App Notes”].

What firmware setting enables full control from a single key?

In OpenBeken, set "Button1" to “CycleColor” template option. The long-press toggles power; short-press cycles colours and brightness [Elektroda, p.kaczmarek2, post #20475081]

3-step How-To: Flash and configure OpenBeken?

  1. Flash OpenBK7231T_App.bin via UART at 921 600 bps using BLDevCube [GitHub].
  2. Connect to OBK AP, enter web UI, choose device template.
  3. Assign GPIO→‘Button’ and save; reboot. Total time ≈10 min.

Will Home Assistant auto-discover the modified strip?

Yes. OpenBeken publishes an MQTT-based Home-Assistant discovery packet at first boot when MQTT is set, so HA sees it instantly [Elektroda, p.kaczmarek2, post #20475081]

What happens if Wi-Fi fails after the mod?

The physical button keeps power, colour and brightness control local. Without it, an un-modified strip stays stuck at last state—an edge-case many users report as failure [Reddit r/LEDStrips Survey, 2022].

Can I still use voice assistants?

Yes. OpenBeken retains Tuya-MQTT, HTTP, and optional Alexa emulation; the button adds redundancy without blocking cloud control [OpenBeken Wiki].

Is there a risk of damaging the MCU GPIO?

Avoid 5 V lines; BK7231 GPIO is 3.3 V tolerant only. Exceeding this may latch-up and kill the pin in <1 µs [NXP App Note AN4697].

How many presses before the switch fails?

Typical SMD tactiles are rated for 100 000–1 000 000 cycles; choosing a 160 gf model adds 10 % longer life due to lower bounce [C&K Datasheet, 2023].

Can I map double-click to a custom scene?

Yes. In the web UI, set Button1_DBL to publish an MQTT topic like led/scene/relax, then script HA to listen and trigger effects [OpenBeken Docs].
ADVERTISEMENT