How to configure an open source Matter bridge at Home
Bridge Zigbee2MQTT & Shelly to Matter via Matterbridge! Install on Docker or Home Assistant, configure plugins, and add devices to any Matter platform.

Please note: This page may contain affiliate links. Read our ethics policy
If you are an Apple HomeKit user, you must have heard of the open-source project Homebridge, which is software that can bridge supported third-party devices to Apple Home locally. As Matter grows, an alternative based on Matter.js is available and well-maintained on GitHub.
This week’s project is to guide you through installing Luligu/Matterbridge on Docker and configuring Zigbee2MQTT and Shelly devices to the major Matter platforms via the Matter bridge.
Before you start, you will need:
- Internet access
- Docker on an always-powered device
- Home Assistant (Optional)
Install Docker
Docker provides a simple way to virtualize and manage software environments and is a part of Home Assistant Supervised and Home Assistant Operating System. If you already have Docker installed on a Linux environment, feel free to skip this section.
- Open Terminal and enter the following command:
curl -sSL https://get.docker.com/ | sh
Enter your password if prompted for administration permissions.
- Test the installation by running the Hello World image:
sudo docker run hello-world
This command should display a confirmation message indicating that Docker is installed correctly. You can find more instructions on installing Docker on their official documents.
Install Luligu/Matterbridge
Let's install Matterbridge now.
For Linux:
Run the following command in the terminal. Remember to replace <USER>
with your system username. You can use ls /home
to find your username.
sudo docker run --name matterbridge \
-v /home/<USER>/Matterbridge:/root/Matterbridge \
-v /home/<USER>/.matterbridge:/root/.matterbridge \
--network host --restart always -d luligu/matterbridge:latest
Wait until it's started, then visit the following URLs in your browser:
For Home Assistant:
- Access your dashboard:
- Navigate to
Settings > Add-ons > Add-on Store
.
- Navigate to
- Add Matterbridge repository:
- Click on the three-dot menu button in the top right corner.
- Select Repositories.
- Enter the following URL:
https://github.com/Luligu/matterbridge-home-assistant-addon
- Click Add.
- Install Matterbridge add-on:
- Refresh the page.
- Scroll down to find the Matterbridge add-on in your store.
- Select it and click Install (or Build).
- Home Assistant will download and build the image. Wait until the button changes from Install to Start.
- Start the add-on:
- Once fully started, click Open WebUI.
- For quick access, toggle on
Show in sidebar
. - You can enable Start on boot and Watchdog options later to ensure it runs continuously.
Configuration
The main user interface is straightforward:
- Top left: The Matter onboarding code. You can use any Matter-enabled platform to add it first, but it's recommended to do this later.
- Below the QR code: Basic information about your Matterbridge instance.
- Right grid: Contains the plugins or integrations you installed and live logs.
Installing plugins: Zigbee2MQTT and Shelly
- Access plugins:
- Click on the three-dot button next to the text box.
- A list of available plugins will appear.
Zigbee2MQTT
- Install the plugin:
- Select Zigbee2MQTT from the list.
- Click Install.
- Wait until you see a green prompt indicating success.
- Click the Restart button in the top right to complete the installation.
- Configure MQTT server:
- For Home Assistant users:
- Navigate to
Settings > Add-ons > Mosquitto broker > Configuration
. - Under the Login field, add:
- username: matterbridge password: SetYourPassword
- Ensure the format matches exactly – no extra or missing spaces.
- Click Save and allow the MQTT server to restart if prompted.
- Navigate to
- For Home Assistant users:
- Configure the Zigbee2MQTT plugin:
- Return to Matterbridge's WebUI.
- Locate the Zigbee2MQTT plugin on the main interface.
- Click the gear icon to configure it.
- Enter the MQTT account information you set earlier.
- Host: Use the IP address if Matterbridge and the MQTT server are on different devices or
localhost
if they share one.
- Host: Use the IP address if Matterbridge and the MQTT server are on different devices or
- Whitelist devices:
- Click the plus button under the Whitelist section.
- Select the devices you want to include.
- Click Confirm.
- Restart Matterbridge by clicking the Restart button in the top right.
- Finalize setup:
- Once reloaded, use your Matter-enabled app to scan the QR code and add the devices.
Shelly
- Install the plugin:
- From the Matterbridge main interface, find the Plugins section.
- Select Shelly from the plugins list by clicking the three-dot button next to the text box.
- Click Install.
- Wait for the green prompt indicating successful installation.
- Click Restart in the top right to finish the installation.
- Configure the Shelly plugin:
- Locate the newly installed Shelly plugin.
- Click the gear icon next to it to configure.
- For newer Shelly devices:
- Add them to the whitelist as they are discovered locally.
- For older Shelly devices:
- Enter your Shelly account information to retrieve them.
- Click Confirm after selecting devices.
- Restart Matterbridge by clicking the Restart button in the top right.
Add the Matterbridge to Matter platforms
- Add to Matter platforms:
- Use your phone or smart home app to scan the Matter onboarding QR code.
- If you receive a warning about uncertification, proceed anyway.
- Once added, you should see a bridge or gateway device with all child devices attached to it.
- Share with other platforms:
- Enable pair mode from a previously added platform to share the bridge with other platforms.
- Troubleshooting for Home Assistant users:
- If you're having trouble adding the device or it's stuck at connecting:
- Go to
Home Assistant Settings > System > Network
. - Find the network adapter Home Assistant is using (e.g.,
end0
) and copy its name. - Access Matterbridge WebUI, navigate to Settings, and paste the network adapter name into the mDNS Interface field.
- Restart Matterbridge.
- Go to
- Final steps:
- Set the add-on to auto boot on start.
- Enable Watchdog to ensure it restarts if it crashes.
- If you're having trouble adding the device or it's stuck at connecting:
Here's a look at it on Home Assistant. You can see that it is exposed as a bridge device, with multiple deivces I added from Zigbee2MQTT and Shelly. Usually devices like switches from Aqara would also contain temperature sensors -- such entities would also be ported to Matter via the Matterbridge. You can also set power-on states on Home Assistant like other Matter devices.
On SmartThings, some devices may miss control, but energy monitor features works on the platform like my Tuya Zigbee plug. Feel free to try out other plug-ins and all the configuration they provide, like switch or light device type maping options.
(Source: /matterbridge)
About the Author

Ward Zhou
Products Editor and Writer
Ward Zhou has been immersed in the smart home and industrial tech space throughout his career. Based in Shenzhen, the industrial hub of smart home, he began his journey with local media outlets and a prominent smart home solution provider, eWeLink, cultivating his expertise in smart home devices and industrial dynamics. Ward has contributed hundreds of review and news pieces to respected publications such as TechNode, PingWest, and Caixin Global. When he’s not covering the latest in tech, Ward enjoys coding, design, street photography, and video games.