Home Assistant and Zigbee2MQTT: Migrate Four Apps to Local Control

Home Assistant and Zigbee2MQTT: Migrate Four Apps to Local Control

Four different apps were no longer needed when a user moved her smart home to Home Assistant and Zigbee2MQTT. The change replaced fragmented control with a local installation on the home network, although it required checking device compatibility and rebuilding routines.

The experience, published by XDA, serves as a practical guide, not a universal recipe: reset and pairing steps depend on the manufacturer and model. The goal here is to reproduce the architecture and an example automation without assuming that all Zigbee devices offer the same features.

What changes when you remove the apps

The local setup has four components: Zigbee devices send messages to the coordinator, Zigbee2MQTT translates and publishes them to MQTT, and Home Assistant consumes those messages to display entities and run automations. Control does not need the manufacturer's servers when devices use a compatible local integration.

flowchart LR
    A["Dispositivo Zigbee"] --> B["Coordinador"]
    B --> C["Zigbee2MQTT"]
    C --> D["Broker MQTT"]
    D --> E["Home Assistant"]
    E --> F["Automatizacion local"]

Home Assistant confirms that it can continue working without internet on local hardware. That does not automatically turn the whole home into an offline installation: devices that only communicate with the manufacturer's cloud become inaccessible if the internet goes down, and some Home Assistant features also depend on the connection.

The installation described by XDA uses a mini PC as the host, a Zigbee coordinator connected via USB, and an MQTT broker, with Eclipse Mosquitto as an example. A USB extension can help reduce radio-frequency noise that USB 3 may introduce near the coordinator. It's also worth having reliable storage to keep the system and its updates running.

1. Set up Zigbee2MQTT and MQTT

Before pairing devices, install and configure the MQTT broker and the MQTT integration in Home Assistant. The specific broker configuration depends on how you host it; the essentials for automatic discovery are to enable Home Assistant in Zigbee2MQTT and have the MQTT integration enabled in Home Assistant.

# En la configuración de Zigbee2MQTT
homeassistant: true

Zigbee2MQTT documentation recommends MQTT discovery: when enabled, devices can be added to Home Assistant automatically. In the Home Assistant interface, check that the MQTT integration is configured before expecting entities to appear.

2. Strengthen the mesh before migrating

Start with mains-powered devices. In a Zigbee mesh, smart plugs, wired switches, and some bulbs can relay packets; battery-powered sensors typically sleep to save energy and rely on routes being available. A weak mesh complicates communication with more distant nodes.

Remove the apps and migrate devices one at a time, rather than resetting the whole house at once. Before buying or pairing a device, check the Zigbee2MQTT supported devices catalog: it lists the exposed entities and model-specific instructions. Basic compatibility does not guarantee that secondary features such as energy monitoring or tamper alerts will be available.

For each compatible device, follow the manufacturer's factory reset procedure and put it back into pairing mode. Then let Zigbee2MQTT interview it and check which entities appear in Home Assistant. Some devices may require more than one interview cycle to expose them correctly; an incomplete pairing does not, by itself, prove that the device is incompatible.

3. Add a button automation

Once the device has been discovered, replace its routines from the previous app with Home Assistant automations. The visual interface lets you build them with triggers, conditions, and actions; for a YAML example, Zigbee2MQTT documentation shows an MQTT device trigger that toggles a light when a button is pressed.

automation:
  - alias: "Alternar luz con el boton"
    triggers:
      - trigger: device
        domain: mqtt
        device_id: ad44cabee4c646f493814306aa6446e1
        type: action
        subtype: arrow_left_click
    actions:
      - action: light.toggle
        target:
          entity_id: light.bedroom

The device ID and light entity in the example must be replaced with those from your installation; they are not universal values. For Home Assistant to discover the available actions, press each physical button at least once. You can then choose the MQTT device trigger in the visual editor or adapt the YAML.

When moving a routine, verify its result on the local network before permanently removing the old app. The intended benefit is for the automation to respond even if the WAN connection goes down; the practical test is to check the device and routine behavior without relying on external servers.

4. Use clear names and bring controls together

Home Assistant's device registry lets you change the display name and entity ID of devices discovered via MQTT without restarting Home Assistant. Zigbee2MQTT also supports customizing the name used in Home Assistant from the device-specific configuration:

devices:
  '0x12345678':
    friendly_name: salon/temperatura
    homeassistant:
      name: Sensor de temperatura del salon

The Zigbee ID in the block is illustrative: replace it with the device's actual ID. A readable name makes it easier to find later in automations and dashboards. To bring controls together in an entities card, you can start with this configuration and replace the entities with those discovered by your installation:

title: Zigbee2MQTT
type: entities
show_header_toggle: false
entities:
  - entity: binary_sensor.zigbee2mqtt_bridge_connection_state
  - entity: sensor.zigbee2mqtt_bridge_version
  - entity: sensor.zigbee2mqtt_bridge_coordinator_version
  - type: divider
  - entity: switch.zigbee2mqtt_bridge_permit_join

The dashboard names must exist in your installation; the sample configuration does not create those entities by itself. Once you've brought daily controls together, routines no longer need to be split across four different interfaces.

Common issues to anticipate

Not all plugs are compatible. In XDA's experience, the energy-monitoring plug was not listed as compatible in the catalog and had to be replaced with a compatible Zigbee option. Also check which attributes the specific model exposes; don't assume that all the original app's features will be available.

Another pitfall is expecting every feature to survive the change in architecture. A device that only offers a cloud API may fall outside local control. And although Zigbee2MQTT supports wireless firmware updates for compatible devices when configured, its default firmware source requires internet; a completely offline installation needs a local source. Some manufacturer updates or features may still require their tools or manual intervention.

Home Assistant and Zigbee2MQTT also don't turn migration into a one-click change. XDA presents this approach for people who are already comfortable with Home Assistant OS; anyone prioritizing a maintenance-free setup may prefer to stick with commercial hubs and third-party apps. The practical first step is to check one device, its entities, and its automation before moving the rest of the home.

Sources: XDA, KhanList, Home Assistant, Zigbee2MQTT