Matter Bridge in Home Assistant Part2 - Install MatterBridge Connect to Home assistant

Quick start

 

I set up the matterbridge as follows:

Install the Matterbridge docker 

 

Create long-lived access tokens to allow home-assistant-matter-hub docker to interact with your Home Assistant instance.

 

Communication configure between Matterhub and Home Assistant,Matterbridge to connect to home assistant with url and token

expose  homeassistant device as a matter bridge

open http://192.168.2.125:8482/ via chrome browser

Create a new bridge,

Add device "pattern: switch.air_con" in new bridge

start it to generate a pairing QR code

Connect accessory to Apple Home

 

Install and configure

docker-compose.yml

You need to create an access token in home assistant instance and export it like this:

services:
  matter-hub:
    image: ghcr.io/t0bst4r/home-assistant-matter-hub:3.0.1
    restart: unless-stopped
    network_mode: host
    environment: # more options can be found in the configuration section
      - HAMH_HOME_ASSISTANT_URL=http://192.168.2.125:8123/
      - HAMH_HOME_ASSISTANT_ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhMzcwZDExYjM4MjE0YzFmYThmZTk3NDZjMDQyODU2NSIsImlhdCI6MTc3MTA4MTk1NSwiZXhwIjoyMDg2NDQxOTU1fQ.vhZD-KhJe4XIXd6_XvBE92y4T5W1aICSfBCbTTCvFL4
      - HAMH_LOG_LEVEL=info
      - HAMH_HTTP_PORT=8482
    volumes:
      - /datadocker/home-assistant-matter-hub:/data

 

Now you can visit it via web ui

http://192.168.2.125:8482/

 

 

 

How to Use 

expose  homeassistant device as a matter bridge

open http://192.168.2.125:8482/ 

Create a new bridge for device,home-assistant-matter-hub docker get it from home assistant via api.

type:pattern

value:light.yeelink_cn_ceiling21_s_2_light

{
  "name": "matterbridgeceilling21v2",
  "port": 5543,
  "filter": {
    "include": [
      {
        "type": "pattern",
        "value": "light.yeelink_cn_476690814_ceiling21_s_2_light"
      }
    ],
    "exclude": []
  },
  "featureFlags": {
    "coverDoNotInvertPercentage": false,
    "includeHiddenEntities": false
  }
}

 

 

 

 

Comments

Be the first to post a comment

Post a comment