adding ha addon support #3

Merged
Jatus merged 1 commits from develop into main 2024-01-26 23:19:54 +01:00
4 changed files with 49 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
ARG BUILD_FROM
FROM $BUILD_FROM
COPY ./package.json ./
COPY ./package-lock.json ./
COPY ./src ./src
COPY ./tsconfig.json ./
RUN npm install
RUN npm install ts-node
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]

32
config.yml Normal file
View File

@ -0,0 +1,32 @@
name: "HA-Matter-Bridge"
version: "1.0.0"
slug: folder
description: >-
"
This project serves as a proof of concept to connect HomeAssistant devices to Voice Assistants through the Matter Protocol."
arch:
- amd64
url: "https://git.jatus.tech/Jatus/ha-matter-bridge"
ports:
5540/tcp: 5540
host_network: true
environment:
- HA_HOST=${HA_HOST}
- HA_PORT=${HA_PORT}
- HA_ACCESS_TOKEN=${HA_ACCESS_TOKEN}
map:
- config:rw
- ssl
image: repo/{arch}-my-custom-addon
options:
message: "settings"
settings:
- HA_HOST: localhost
HA_PORT: 8123
HA_ACCESS_TOKEN: "your acces token"
schema:
message: str
settings:
- HA_HOST: str
HA_PORT: int
HA_ACCESS_TOKEN: str

3
run.sh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bashio
npm run start