2024年11月24日星期日 上午1:11:45

Installing matter server docker image on a Raspberry Pi 3B+(Matter over Wi-Fi ) via Docker Run

10 个月 前
#27332 引用
Matter server in home assistant(Docker)

If you run Home Assistant in a container, you can run a Docker image of the Matter server(https://github.com/home-assistant-libs/python-matter-server). The requirements and instructions for your host setup are described on that GitHub page.

Installing matter server docker image on a Raspberry Pi

I am running this on x64 debian using docker ha on raspberry pi 3B+

my Pi doesn’t have a Thread radio, it can communicate over Wi-Fi to other Thread routers using Matter specified data.




I’m trying to set up the matter server in a docker container on a Raspberry Pi 3B+, running the latest Pi OS (Bookworm), and thus 64-bit and ARM v8. But when I try, I get

stable: Pulling from home-assistant-libs/python-matter-server


This procedure prepares the Raspberry Pi 3B+ to become a Matter Hub


My configuration Details:




Steps Taken:

Installed Matter Server Docker.
Installed Matter integration.

Add Matter device on Home Assistant Companion app



https://blog.matterxiaomi.com/blog/matter-home-assistant-part5/
0
8 个月 前
#29668 引用

Installed Matter integration
I used this url ws://localhost:5580/ws  to connect home assistant to the matter server via Matter integration.

I was able to fix the devices by going to the Matter (BETA) integration and changing the address back to the host’s IP.

The integration changed to the default setting of ws://localhost:5580/ws. By changing the integration to point to my docker host’s IP on port 5580 (ws://<my_host_ip>:5580/ws)。


Trobleshooting

multiple network interfaces

Are any of you using multiple LANs/VLANs with multiple network interfaces on the HA host?
If so then you might need to configure your routes.

macvlan driver

系统支持mDNS协议吗
Linux 一般是安装了 avahi-daemon 服务。使用指令 systemctl status avahi-daemon.service 来查看服务运行状态。
https://blog.beanbang.cn/2019/08/07/locate-hosts-using-mdns/

When communicating with Thread devices through a non-local Thread border router, your host must process ICMPv6 Router Advertisements.
0
8 个月 前
#29669 引用




docker stop  matter-server

docker restart  matter-server

docker rm  matter-server

docker logs  matter-server
0
8 个月 前
#29670 引用
# uname -m
aarch64

0
8 个月 前
#29671 引用
An official docker image is now available for both aarch64 and amd64 platforms (other architectures will not be available)!



pi@raspberrypi:~/Docker/Python Matter Server $ uname -m
aarch64
pi@raspberrypi:~/Docker/Python Matter Server $ docker-compose up -d
Pulling home-assistant-libs (ghcr.io/home-assistant-libs/python-matter-server:stable)...
stable: Pulling from home-assistant-libs/python-matter-server
ERROR: no matching manifest for linux/arm/v8 in the manifest list entries



Got it working after installing the 64-bit version of the OS on my Raspberry Pi 4.
0
8 个月 前
#29672 引用
I am running this on x64 debian using docker-compose.
Does the matter server require wifi connection or will it work over lan? Also I remembered that this PC does not have Bluetooth either. Could I use it as a matter server for devices over network connection and not for thread or adding new devices.
0
8 个月 前
#29680 引用
docker pull
docker pull ghcr.io/home-assistant-libs/python-matter-server:stable


output
stable: Pulling from home-assistant-libs/python-matter-server
2245c7c08455: Pulling fs layer
e218e0f92cd6: Download complete


or

mkdir data
docker run -d \
  --name matter-server \
  --restart=unless-stopped \
  --security-opt apparmor=unconfined \
  -v $(pwd)/data:/data \
  --network=host \
  ghcr.io/home-assistant-libs/python-matter-server:stable


other
pulling the image from GitHub  or dockerhub?

source:https://github.com/home-assistant-libs/python-matter-server
0
8 个月 前
#29681 引用
1
0
8 个月 前
#29682 引用
1
0
8 个月 前
#29683 引用
I was able to run the matter server with docker compose on my raspberry pi and was able to connect it to Home Assistant.

version: '3'
services:
  matter-server:
    container_name: matter-server
    image: ghcr.io/home-assistant-libs/python-matter-server:stable
    restart: unless-stopped
    security_opt:
      - apparmor=unconfined
    volumes:
      - ./data:/data
      - /run/dbus:/run/dbus:ro
    network_mode: host


come from:https://github.com/home-assistant-libs/python-matter-server

https://github.com/home-assistant-libs/python-matter-server/issues/308#issuecomment-1605083316
0