From 933c450942f74de7a9434efd4fd4456dfb9eba51 Mon Sep 17 00:00:00 2001 From: Jatus Date: Fri, 26 Jan 2024 23:19:14 +0100 Subject: [PATCH] adding ha addon support --- Dockerfile | 14 ++++++++++++++ config.yml | 9 +++++++++ dockerfile => dockerfile.standalone | 0 options.yml | 5 +++++ repository.yml | 1 + run.sh | 3 +++ schema.yml | 5 +++++ 7 files changed, 37 insertions(+) create mode 100644 Dockerfile create mode 100644 config.yml rename dockerfile => dockerfile.standalone (100%) create mode 100644 options.yml create mode 100644 repository.yml create mode 100644 run.sh create mode 100644 schema.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..481a39e --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..080e879 --- /dev/null +++ b/config.yml @@ -0,0 +1,9 @@ +name: "HA Matter Bridge" +version: "1.0.0" +slug: ha-matter-bridge +description: >- + " +This project serves as a proof of concept to connect HomeAssistant devices to Voice Assistants through the Matter Protocol." +init: false +arch: + - amd64 \ No newline at end of file diff --git a/dockerfile b/dockerfile.standalone similarity index 100% rename from dockerfile rename to dockerfile.standalone diff --git a/options.yml b/options.yml new file mode 100644 index 0000000..9aaa603 --- /dev/null +++ b/options.yml @@ -0,0 +1,5 @@ +message: "settings" + settings: + - HA_HOST: localhost + HA_PORT: 8123 + HA_ACCESS_TOKEN: "your acces token" \ No newline at end of file diff --git a/repository.yml b/repository.yml new file mode 100644 index 0000000..7cf72e7 --- /dev/null +++ b/repository.yml @@ -0,0 +1 @@ +name: ha-matter-bridge diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..b6f3dbf --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bashio + +npm run start \ No newline at end of file diff --git a/schema.yml b/schema.yml new file mode 100644 index 0000000..92c2322 --- /dev/null +++ b/schema.yml @@ -0,0 +1,5 @@ +message: str +settings: + - HA_HOST: str + HA_PORT: int + HA_ACCESS_TOKEN: str