Skip to main content

Using websocket matter server to query/control matter-enabled lights/sensors via a HTTP GET interface.

Project description

Matter Web Controller

This document explains how the local Matter device management system works using a web interface.

System Architecture

The system separates background tasks and simplifies network rules to make it easier to use:

  1. Background Process: The app runs the standard python-matter-server as a separate background task. This keeps the heavy work away from the web server.
  2. WebSockets Connection: The web server keeps a constant connection to the background task. This updates the network data in real time without slowing things down.
  3. HTTP Setup: The web server acts as a middleman. It changes complex WebSocket data into a simple HTTP GET link. Users only need to visit a simple web address to get JSON data.

Requirements

You need Python 3.10 or newer.

Installation

Create a virtual environment and install the package using your package manager. This will automatically install required tools like aiohttp and home-assistant-chip-core.

How to Run

Start the system by typing the executable command matter-server-start. You can use the --port parameter to set the web server port. The default is 8080. The background Matter server will automatically use the next port number.

API Endpoints

Get lighting device status

  • URL: /api/lights
  • Method: GET
  • Description: Gets a list of all devices that have lighting features on the local Matter network. The data includes the Node ID, Endpoint ID, power state, and current brightness level.
  • Example: http://localhost:8080/api/lights

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matter_web_controller-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matter_web_controller-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file matter_web_controller-0.1.0.tar.gz.

File metadata

  • Download URL: matter_web_controller-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for matter_web_controller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1dce514fbb905ee907f0821e68785e3a62cbf7ea022e73d88a9d9e76d625b1c4
MD5 56cd5d45eb400733f93456e9c8307050
BLAKE2b-256 101c7f2ece36c9a03978c126c4090d8c820918d9e8d2fe50574aad8b95db2255

See more details on using hashes here.

Provenance

The following attestation bundles were made for matter_web_controller-0.1.0.tar.gz:

Publisher: python-publish.yml on dongnh/matter_webcontrol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file matter_web_controller-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matter_web_controller-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a67ff3b1bbbfa5425475713a4eb351aa18c1fc3abceaadd7b6ce57bd976223ee
MD5 711aa57d4f40cec6d9d0048eb115faea
BLAKE2b-256 f925f9b326376d1835ff545399e529c3e1803ab4b64e3910e027d3650abf992b

See more details on using hashes here.

Provenance

The following attestation bundles were made for matter_web_controller-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on dongnh/matter_webcontrol

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page