matterbridge
Pythonic API for creating a Matter bridge, registering devices/endpoints, and processing events.
Requirements
- Python 3.8+ (abi3)
- zeroconf runtime dependency (required for mDNS)
Installation
pip install matterbridge
Quick start
from matterbridge import Bridge, DeviceConfigBuilder, EndpointPreset, device_type, cluster
bridge = Bridge("/tmp/matterbridge-py")
endpoint = EndpointPreset(device_type("on_off_light"))
endpoint.cluster_list([cluster("on_off")])
endpoint.node_label("light-1")
cfg = DeviceConfigBuilder("light-1")
cfg.vendor_name("Bridge")
cfg.product_name("On/Off Light")
cfg.serial_number("LIGHT-0001")
cfg.endpoint(endpoint)
dev = bridge.add_device(cfg.build())
if not bridge.is_commissioned():
bridge.open_commissioning_window_qr()
events, _runner = bridge.start()
while True:
evt = events.recv_timeout(100)
if evt is not None:
print(evt)
Examples
Check out the examples/ directory for common usage scenarios:
- light.py - Basic On/Off, Dimmable, and Extended Color Light implementation.
- plugpower.py - Smart Plug with electrical energy and power measurement.
- sensors.py - Multi-sensor suite (Temperature, Humidity, Pressure, Light, Occupancy, Contact).
- fan.py - Fan Control with multi-speed support and mode sequencing.
- thermostat.py - Thermostat with setpoints and local temperature updates.
- curtain.py - Window Covering (Curtain) control with position management.
- doorlock.py - Door Lock with security command handling.
Threading notes
EventStreamis a single-consumer stream; avoid reading from multiple threads at once.- All other binding APIs are thread-safe; operations are marshaled to a single worker thread.
Metadata
Release files for matterbridge 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matterbridge-0.0.4-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for matterbridge-0.0.4-cp38-abi3-win_amd64.whl |
| matterbridge-0.0.4-cp38-abi3-manylinux_2_28_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ x86-64 | Details for matterbridge-0.0.4-cp38-abi3-manylinux_2_28_x86_64.whl |
| matterbridge-0.0.4-cp38-abi3-manylinux_2_28_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.28+ ARM64 | Details for matterbridge-0.0.4-cp38-abi3-manylinux_2_28_aarch64.whl |
Total release size: 11.2 MB
Release files / matterbridge-0.0.4-cp38-abi3-win_amd64.whl
| Download URL | matterbridge-0.0.4-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
161784dce21a8c4026c30ce2136524f44bedaff73d5ecc4134212796b492efe3
|
|
BLAKE2b-256 checksum How to use checksums |
d9dd3c3a5256eaba2eb5169d206b200e206ddd630d50b37463214595c8abdcf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logRelease files / matterbridge-0.0.4-cp38-abi3-manylinux_2_28_x86_64.whl
| Download URL | matterbridge-0.0.4-cp38-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
92f27c095e04a9b416c81ebe40663c1f4b7ce290560039ce286e6f89f1ddce7e
|
|
BLAKE2b-256 checksum How to use checksums |
aa0891900bfdf45421ba1f848fcd4362bf6f310f467d61f78cde7717cdbe6a65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logRelease files / matterbridge-0.0.4-cp38-abi3-manylinux_2_28_aarch64.whl
| Download URL | matterbridge-0.0.4-cp38-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
81155fa107eef9491e5964b6ea7406958c1ad89e92d22ff3c890be0a78bc7c94
|
|
BLAKE2b-256 checksum How to use checksums |
be9481896b9bc01712bdea3b1df9dbf4d7ef7fc2f8af7b238eb33a3bafc2c032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logSecurity for matterbridge 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 3 files in this release have been uploaded with provenance metadata.
Attestation for matterbridge-0.0.4-cp38-abi3-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.