Skip to article frontmatterSkip to article content

Developer Documentation

Overview

Home Assistant Matter Hub (HAMH) is an addon for Home Assistant that acts as a Matter bridge, exposing Home Assistant devices to Matter controllers (Alexa, Apple Home, Google Home) via local communication. No cloud or custom skills are required.

This documentation is intended for developers taking over or contributing to the project. It covers architecture, technologies, and key concepts, especially those related to the Matter protocol and bridging logic.


Documentation Structure


Technologies Used


Architecture

High-Level Structure

Key Backend Components


Matter Concepts & Library Usage

Matter Bridge

A bridge is a Matter node that exposes multiple endpoints (devices) to controllers. In HAMH, each bridge is backed by a Matter server node and an aggregator endpoint.

See Endpoint Management for details on how endpoints are created, updated, and synchronized.

Endpoints & Behaviors

Endpoints are created using device types from @matter/main/devices and composed with behaviors:

Example (Dimmable Light):

export const DimmableLightType = Device.with(
  IdentifyServer,
  BasicInformationServer,
  HomeAssistantEntityBehavior,
  LightOnOffServer,
  LightLevelControlServer,
);

See Behaviors for a deep dive into how behaviors work and are configured.

Server Node Configuration

Bridge server nodes are configured using createBridgeServerConfig, which sets up:

Bridge Lifecycle


Home Assistant Integration


REST API

Exposed via Express (matterApi):


Development & Handover Notes


Further Reading


Contact & Maintainer

See GitHub Discussions for handover or maintainer inquiries.