adds code


Tasmota is best known for turning cheap ESP8266 and ESP32 switches into local Wi-Fi devices, but it pairs surprisingly well with Zigbee lighting too. In this tutorial, digiblurDIY shows how to control Zigbee smart bulbs directly from Tasmota-flashed switches — no Home Assistant, no Node-RED, nothing sitting in the middle.

Quick answer: Flash your wall switches with Tasmota, run a Zigbee coordinator with Zigbee2MQTT (or Tasmota's built-in Zigbee support on an ESP32 bridge), and use Tasmota rules to publish button events straight to the bulbs' MQTT topics. The switches become the entire control layer; a full home automation platform is optional.

How Tasmota talks to Zigbee bulbs without a hub controller

Zigbee bulbs do not speak Wi-Fi, so something has to bridge the two networks. There are two common ways to build that bridge with Tasmota in the picture:

  • Zigbee2MQTT as the coordinator. A USB Zigbee coordinator such as the CC2652 runs Zigbee2MQTT on any always-on machine. It joins the bulbs to the network and exposes each one as an MQTT topic. Tasmota switches then publish to those topics directly — a button press becomes an MQTT message, and the bulb reacts. No automation platform translates anything.
  • Tasmota Zigbee (Z2T) on the bridge itself. Tasmota can run Zigbee coordinator firmware on an ESP32 with an attached CC2530 or CC2652 radio. The bridge pairs the bulbs itself and exposes them over MQTT, so one small device handles both the switch side and the Zigbee side.

The glue in both setups is Tasmota's rules engine. Rules map button presses, holds, and multi-presses to MQTT payloads such as zigbee2mqtt/<bulb>/set with brightness or color values, which is how the video gets single-button dimming and color control working.

What do you need before starting?

Three things: Tasmota-flashed switches (Martin Jerry, Linkind, and Athom switches are popular candidates), a Zigbee coordinator, and bulbs that actually speak Zigbee. Whichever bridge you run, the bulbs themselves must actually speak Zigbee — many "smart" bulbs are Wi-Fi-only, so check the radio in the specs before buying. Our smart bulbs compared on verified specs page makes that check easy.

If you buy through links on the sites we recommend, we may earn a small commission.

When should you add Node-RED or Home Assistant?

The whole point of this setup is that you don't have to — but "no hub controller" is not the same as "no automation forever." Add Node-RED when you want flows that span devices: scenes that mix Zigbee bulbs with non-Zigbee gear, time-of-day logic, or sequences that would turn your Tasmota rules into unreadable spaghetti. Add Home Assistant when you want a dashboard, device discovery, and history in one place. Both plug into the same MQTT broker your Tasmota switches already use, so you can start hub-free and grow into a platform later without rewiring the switches.

One practical tip: let the switch do the dimming

Instead of reaching for your phone, load Tasmota's one-button dimming rules on the switch itself. A short press toggles, holding the button ramps brightness up and down by publishing repeated level commands, and double-presses can shift color temperature. Because the logic lives on the switch, dimming stays instant and keeps working even if the machine running Zigbee2MQTT reboots — the switch simply retries over MQTT. If you are new to Zigbee networks in general, the Zigbee coordinator getting-started guide covers choosing a radio, and the local smart home dashboard guide shows what an MQTT-first setup can grow into.

Full write-up and rule files: digiblur.com.

Previous Post Next Post