chore: initial commit for home-assistant-matter-hub

This commit is contained in:
t0bst4r
2024-10-27 16:56:41 +01:00
commit 1f5be84c3c
8 changed files with 86 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

16
README.md Normal file
View File

@@ -0,0 +1,16 @@
# Home Assistant Addons by t0bst4r
This repository provides the following addons for Home-Assistant:
- Home-Assistant-Matter-Hub
## Installation
Simple add this repository to your Add On Store in Home-Assistant:
1. Open the UI of your Home Assistant instance
2. Go to `Settings` -> `Add-Ons` -> `Add-On Store`
3. Click the three dots in the top-right corner and select `Repositories`
4. Paste the repository URL (`https://github.com/t0bst4r/home-assistant-addons`) into the text-field and click "Add"
5. Refresh your Add-On Store and Install the Add-On

16
hamh/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/build.yaml Normal file
View File

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

24
hamh/config.yaml Normal file
View File

@@ -0,0 +1,24 @@
version: "3.0.0-alpha.7"
slug: hamh
name: Home-Assistant-Matter-Hub
description: Publish your entities from Home Assistant to any Matter-compatible controller like Alexa, Apple Home or Google Home.
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
webui: http://[HOST]:[PORT:8482]/
map:
- addon_config:rw
options:
log_level: info
disable_log_colors: false
web_port: 8482
schema:
log_level: list(debug|info|warn|error)
disable_log_colors: bool
web_port: int(1,)

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=$(bashio::config 'web_port') \
--home-assistant-url='http://supervisor/core' \
--home-assistant-access-token="$SUPERVISOR_TOKEN"

14
hamh/translations/en.yaml Normal file
View File

@@ -0,0 +1,14 @@
---
configuration:
log_level:
name: Log Level
description: |
The log level used for this addon. One of: debug, info, warn, error
disable_log_colors:
name: Disable log colors
description: |
Print the log as plain text without any colors.
web_port:
name: Web UI Port
description: |
The port to use for the Web-UI. Default: 8482

4
repository.yaml Normal file
View File

@@ -0,0 +1,4 @@
---
name: Addons by t0bst4r
url: https://github.com/t0bst4r/home-assistant-addons
maintainer: Tobias Glatthar