From 7ab47023deaa6b79908ab0886e98d7678650dd8b Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Wed, 15 Jan 2025 22:28:30 +0100 Subject: [PATCH] Version 0.12.1 --- ha_addon_rel/CHANGELOG.md | 6 ++++++ ha_addon_rel/DOCS.md | 2 +- ha_addon_rel/config.yaml | 15 ++++++++------- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ha_addon_rel/CHANGELOG.md b/ha_addon_rel/CHANGELOG.md index 380f10c..2da0b28 100644 --- a/ha_addon_rel/CHANGELOG.md +++ b/ha_addon_rel/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.12.1] - 2025-01-13 + +- addon: bump base image version to v17.1.0 +- addon: add syntax check to config parameters +- addon: bump base image version to v17.0.2 + ## [0.12.0] - 2024-12-22 - add hadolint configuration diff --git a/ha_addon_rel/DOCS.md b/ha_addon_rel/DOCS.md index 18c0aef..e4ed379 100644 --- a/ha_addon_rel/DOCS.md +++ b/ha_addon_rel/DOCS.md @@ -67,7 +67,7 @@ Example add-on configuration for GEN3PLUS inverters: ```yaml inverters: - serial: Y17000000000000 - monitor_sn: '2000000000' + monitor_sn: 2000000000 node_id: PV-Garage suggested_area: Garage modbus_polling: true diff --git a/ha_addon_rel/config.yaml b/ha_addon_rel/config.yaml index f573f30..6a90e9f 100644 --- a/ha_addon_rel/config.yaml +++ b/ha_addon_rel/config.yaml @@ -1,6 +1,6 @@ name: TSUN-Proxy description: MQTT Proxy for TSUN Photovoltaic Inverters -version: 0.12.0-rel +version: 0.12.1-rel image: ghcr.io/s-allius/tsun-gen3-addon url: https://github.com/s-allius/tsun-gen3-proxy slug: tsun-proxy @@ -31,16 +31,16 @@ ports: # parameters are available within the container as /data/options.json # and should become picked up by the proxy - current workaround as a transfer script # TODO: check again for multi hierarchie parameters -# TODO: implement direct reading of the configuration file + schema: inverters: - - serial: str + - serial: match(^(R17|Y17|Y47).{13}$) monitor_sn: int? node_id: str suggested_area: str modbus_polling: bool - client_mode.host: str? - client_mode.port: int? + client_mode.host: match(\b((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\b)? + client_mode.port: port? client_mode.forward: bool? #strings: # leider funktioniert es nicht die folgenden 3 parameter im schema aufzulisten. möglicherweise wird die verschachtelung nicht unterstützt. # - string: str @@ -62,10 +62,11 @@ schema: tsun.enabled: bool solarman.enabled: bool inverters.allow_all: bool + # optionale parameter - # TODO besser strukturieren und vervollständigen + mqtt.host: str? - mqtt.port: int? + mqtt.port: port? mqtt.user: str? mqtt.passwd: password? ha.auto_conf_prefix: str? # suggeriert optionale konfigurationsoption -> es darf jedoch kein default unter "options" angegeben werden