chore: add additional addon to test different settings

This commit is contained in:
t0bst4r
2024-11-01 10:43:51 +01:00
parent c8259d921c
commit cfae64bdb8
4 changed files with 52 additions and 0 deletions

16
hamh_test/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM ghcr.io/hassio-addons/base-nodejs:0.2.5
ENV SUPERVISOR_TOKEN ""
VOLUME /config
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ARG package_version
LABEL \
io.hass.version="$package_version" \
io.hass.type="addon" \
io.hass.arch="armhf|aarch64|i386|amd64"
RUN npm install -g home-assistant-matter-hub@$package_version
CMD /docker-entrypoint.sh

2
hamh_test/build.yaml Normal file
View File

@@ -0,0 +1,2 @@
args:
package_version: "3.0.0-alpha.13"

25
hamh_test/config.yaml Normal file
View File

@@ -0,0 +1,25 @@
version: "3.0.0-alpha.13"
slug: hamh_test
name: Home-Assistant-Matter-Hub (Test Addon // DO NOT USE)
description: THIS IS FOR TESTING PURPOSE. DO NOT USE THIS ADDON.
url: https://github.com/t0bst4r/home-assistant-matter-hub
homeassistant: 2024.1.0
homeassistant_api: true
host_network: true
init: false
arch:
- aarch64
- amd64
- armv7
ingress: true
ingress_port: 8482
map:
- addon_config:rw
options:
log_level: info
disable_log_colors: false
mdns_network_interface: ""
schema:
log_level: list(silly|debug|info|warn|error)
disable_log_colors: bool
mdns_network_interface: "str?"

View File

@@ -0,0 +1,9 @@
#!/usr/bin/with-contenv bashio
home-assistant-matter-hub start \
--log-level=$(bashio::config 'log_level') \
--disable-log-colors=$(bashio::config 'disable_log_colors') \
--storage-location=/config/data \
--web-port=8482 \
--home-assistant-url='http://supervisor/core' \
--home-assistant-access-token="$SUPERVISOR_TOKEN"