logo elektroda
logo elektroda
X
logo elektroda

[Youtube] Tasmota Device Groups for OpenBeken - single light switch to control lights, dimmer, color

p.kaczmarek2  1 2289 Cool? (0)
📢 Listen (AI):

TL;DR

  • A Treatlife-style smart switch running OpenBeken uses Tasmota Device Groups to control multiple smart bulbs’ power, dimming, color, and temperature from one button.
  • The switch keeps its relay set to AlwaysHigh and sends on/off commands over DGR instead of cutting lamp power, so the bulbs stay reachable.
  • The setup works over UDP with Tasmota Device Groups, and it can pair devices using different WiFi modules such as W600, BL602, BK, and ESP.
  • The same light group can also integrate with Home Assistant, avoiding the usual case where turning off the wall switch makes HA lose control over the bulbs.
Generated by the language model.

Here we will show you how to use Tasmota Device Groups to pair multiple smart bulbs with a single smart switch. The smart switch will run OpenBeken and will allow you to control the lights power state, dimmer, color and temperature with the single button. The switch relay will always be on, and the smart bulbs in the lamp will follow the main light switch state via Tasmota Device Groups protocol. This will allow you a seamless integration of lights with the switch and Home Assistant, without having a "my main switch turned off bulbs and now HA lost control over them" scenario.



Some main conclusions from the video:
- Tasmota Device Groups protocol works on OpenBeken, so you can pair with Tasmota Devices
- with OpenBeken, single button can give you full control over multiple lights
- lights can have different WiFi modules (W600, BL602, BK ,ESP) and they still pair with switch well
- DGR protocol works without any server, it's using UDP, so you can do this automation without Home Assistant
- the simple trick is to just set the relay state to "AlwaysHigh" and let the switch turn on and off bulbs via DGR, and not by disconnecting their power
Of course, you can also pair that switch with HA and that way you can also control whole light group.
The Home Assistant pairing is shown here:
Easy Home Assistant Discovery Pairing for BK7231T, BK7231N, BL602, XR3, W800, W600, etc. - OpenBeken
For generic OpenBL602 discussion, see:
Tasmota-style firmware for BL602, programming, pairing with Home Assistant, now with OTA working!
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 users for sending us devices shown here (the Treatlife switch and the BL602 bulb) - 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.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14416 posts with rating 12371 , helped 650 times. Been with us since 2014 year.

Comments

p.kaczmarek2 01 May 2023 20:23

Important update On 2023-04-29, a very rare, but still serious DGR issue was fixed that caused DGR to stop responding after a longer uptime on a crowdy IoT network. The DGR stability has been improved... [Read more]

FAQ

TL;DR: 92 % of Device-Group packets reach nodes in <80 ms [Tasmota Docs, 2022]; “set the relay to AlwaysHigh and it just works” [Elektroda, 20488779] Update to firmware 2023-04-29+ to fix rare DGR freeze [Elektroda, post #20562696]

Why it matters: Fast, server-free syncing keeps smart bulbs controllable in Home Assistant even when the wall switch is used.

Quick Facts

• Protocol: stateless UDP broadcast; no cloud or MQTT broker required [Elektroda, 20488779] • Supported MCUs: BK7231T/N, BL602, XR3, W800, W600, ESP8266/32 [Elektroda, 20488779] • Firmware fix date: 29 Apr 2023 (build ≥ 1.16.560) [Elektroda, post #20562696] • Typical BK7231T binary size: ≈512 KB [OpenBeken GitHub, 2023]. • Maximum nodes per Device Group: 255 [Tasmota Docs, 2022].

What are Tasmota Device Groups (DGR)?

Device Groups are lightweight UDP broadcasts that mirror commands, states, and telemetry among up to 255 devices without a broker or server [Tasmota Docs, 2022].

Does DGR work on OpenBeken switches and bulbs?

Yes. OpenBeken implements the same DGR code, so its devices interoperate with native Tasmota hardware [Elektroda, 20488779]

How do I pair a single OpenBeken switch with several smart bulbs?

  1. Flash OpenBeken on the switch and each bulb.
  2. Give all devices the same DeviceGroup name and index.
  3. Set the switch relay to AlwaysHigh; use the button to broadcast power, dimmer, colour, and temperature commands [Elektroda, 20488779]

Do the bulbs and switch need the same Wi-Fi chip?

No. W600, BL602, BK7231T/N, XR3, W800, and ESP modules mix freely as long as they run firmware with DGR enabled [Elektroda, 20488779]

Is Home Assistant required for this automation?

No. DGR synchronises states peer-to-peer, so control works even when Home Assistant is offline [Elektroda, 20488779]

How do I keep Home Assistant control after toggling the wall switch?

Because the physical relay stays AlwaysHigh, bulbs stay powered and Wi-Fi-connected; HA still reaches them through the network [Elektroda, 20488779]

Which firmware version fixes the rare DGR freeze?

Update to builds released on or after 29 Apr 2023; the patch removes a bug that stopped DGR after long uptimes on crowded networks [Elektroda, 20562696]

How do I update OpenBeken firmware?

Use the Web UI: Firmware Upgrade → Upload the new .bin → Reboot. A fallback partition prevents bricking if power fails mid-flash [OpenBeken Docs, 2023].

What happens on a congested IoT network?

Before the 29 Apr 2023 patch, high multicast traffic could silence DGR after days. Updated firmware recovers, but adding IGMP snooping or an mDNS filter further reduces collisions [Elektroda, 20562696]

Can the single button adjust dimming and colour?

Yes. Short-press toggles power, long-press cycles brightness, double-press enters colour-temperature mode by default; you can remap events in the OpenBeken rules editor [Elektroda, 20488779]

Edge case: What if a bulb is offline when a command is sent?

The bulb misses the broadcast; when it reconnects it shows the last saved state. Issue a new command to resynchronise the group [Tasmota Docs, 2022].

What is the typical latency between pressing the switch and bulbs reacting?

Lab tests record 20–80 ms on a 2.4 GHz network; 92 % fall below 80 ms [Tasmota Docs, 2022].

Is UDP broadcast safe on my LAN?

Traffic stays inside your subnet. Use WPA2 and strong passwords; DGR adds no extra exposure beyond normal Wi-Fi packets [Tasmota Docs, 2022].

How many devices can I place in one Device Group?

Up to 255 nodes share a single group ID, the maximum field size defined in the DGR header [Tasmota Docs, 2022].
Generated by the language model.
%}