Compare commits

...

32 Commits

Author SHA1 Message Date
metzi
446a0d88f0 270 ha addon add syntax check to config parameters (#274)
* fixed requirement status of client mode host

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
2025-01-15 12:42:15 +01:00
Stefan Allius
ae4565238b addon: bump base image version to v17.1.0 2025-01-14 17:47:51 +01:00
Stefan Allius
abdbdefc18 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.12 2025-01-14 17:46:40 +01:00
Stefan Allius
4ffe8a395e version 0.12.1 2025-01-13 20:43:12 +01:00
Stefan Allius
868d3ef312 add rc version 2025-01-13 20:30:58 +01:00
Stefan Allius
ce050e8ab5 add initial version for release candidates 2025-01-13 20:21:59 +01:00
Stefan Allius
354c204ce6 bump version to 0.12.1 2025-01-13 19:59:38 +01:00
Stefan Allius
d8200b5a35 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.12 2025-01-13 19:57:22 +01:00
Stefan Allius
20503b46ab fix wiki pathss 2024-12-24 14:16:11 +01:00
Stefan Allius
a93368336a set image path using jinja template 2024-12-23 13:03:31 +01:00
Stefan Allius
772da4fa96 copy the run.sh scripts into the add-on repros 2024-12-23 11:07:46 +01:00
Stefan Allius
3f4997a0fd Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy 2024-12-22 23:55:11 +01:00
Stefan Allius
2220517b55 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.12 2024-12-22 22:44:29 +01:00
Stefan Allius
b28792a654 update changelog version 0.12 2024-12-22 21:51:10 +01:00
Stefan Allius
d4ecbfe2b3 disable test coverage for __main__ 2024-12-22 20:39:14 +01:00
Stefan Allius
84dfd17d7b Merge branch 'dev-0.12' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.12 2024-12-22 20:33:46 +01:00
Stefan Allius
7067977d78 rename "ConfigErr" to match naming convention 2024-12-22 20:33:13 +01:00
Stefan Allius
f227faa16e fix client_mode configuration block (#252)
* fix client_mode block

* add client mode

* fix tests with client_mode values

* log client_mode configuration

* add forward flag for client_mode

* improve startup logging

* added client_mode example

* adjusted translation files

* AT commands added

* typo

* missing "PLUS"

* link to config details

* improve log msg for config problems

* improve log msg on config errors

* improve log msg for config problems

* copy CHANGELOG.md into add-on repro

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
2024-12-22 20:16:46 +01:00
Stefan Allius
9572fbf609 avoid forwarding to a private (lokal) IP addr (#256)
* avoid forwarding to a private (lokal) IP addr

* test DNS resolver issues

* increase test coverage

* update changelog
2024-12-22 19:44:36 +01:00
Stefan Allius
3fddbe9456 pin version of base image 2024-12-22 02:55:49 +01:00
Stefan Allius
34c09edb07 move global startup code into main methdod 2024-12-22 02:54:43 +01:00
Stefan Allius
ef3ed5d287 fix return type get_extra_info in FakeWriter 2024-12-22 02:51:21 +01:00
Stefan Allius
7878c54ecc add german language file (#253) 2024-12-18 20:31:42 +01:00
Stefan Allius
097e0d2104 Update README.md (#251)
install `https://github.com/s-allius/ha-addons` as repro for our add-on
2024-12-17 22:52:13 +01:00
Stefan Allius
181a22c369 configure log path and max number of daily log files (#243)
* configure log path and max number of daily log files

* don't use a subfolder for configs

* use make instead of a build script

* mount /homeassistant/tsun-proxy

* Add venv to base image

* give write access to mounted folder

* intial checkin, ignore SC1091

* set advanced and stage value in config.yaml

* fix typo

* added watchdog and removed Port 8127 from mapping

* fixed typo and use new add-on repro

- change the install button to install from
 https://github.com/s-allius/ha-addons

* add addon-rel target

* disable watchdog due to exceptions in the ha supervisor

* update changelog

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
2024-12-17 22:09:51 +01:00
Stefan Allius
89ab2eea3f S allius/issue7 (#248)
* report alarm and fault bitfield to ha

* define the alarm and fault names
2024-12-17 20:47:32 +01:00
Stefan Allius
264e09651f ignore inverter replays which a older than 1 day (#246) 2024-12-16 21:09:32 +01:00
Stefan Allius
3bb360d359 238 ha addon repository check (#244)
* move Makefile and bake file into parent folder

* build config.yaml from template

* use Makefile instead of build shell script

* ignore temporary or created files

* add rules for building the add-on repository

* add rel version of add-on

* add  jinja2-cli
2024-12-15 17:16:26 +01:00
Stefan Allius
8731d1bae3 Issue220 ha addon dokumentation update (#245)
* revised config disclaimer

* add newline at end of file to fix linter warning

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
2024-12-15 16:52:13 +01:00
Stefan Allius
4f0918ef83 S allius/issue216 (#235)
* improve docker run

- establish multistage Dockerfile
- build a python wheel for all needed packages
- remove unneeded tools like apk for runtime

* pin versions, fix hadolint warnings

* merge from dev-0.12

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
2024-12-13 23:54:17 +01:00
metzi
5501288b51 Issue220 ha addon dokumentation update (#232)
* initial DOCS.md for Addon

* links to Mosquitto and Adguard

* replaced _ by . for PV-Strings

* mentioned add-on installation method in README.md

* fix most of the markdown linter warnings

* add missing alt texts

* added nice add repository to my Home Assistant badges

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
Co-authored-by: Stefan Allius <stefan.allius@t-online.de>
2024-12-13 23:35:40 +01:00
Stefan Allius
851122515e add ha_addons repository to cscode workspace 2024-12-11 00:25:56 +01:00
5 changed files with 21 additions and 3 deletions

View File

@@ -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

View File

@@ -1 +1 @@
0.12.0
0.12.1

View File

@@ -108,7 +108,7 @@ repro_files = DOCS.md icon.png logo.png translations/de.yaml translations/en.yam
repro_root = CHANGELOG.md
repro_templates = config.yaml
repro_subdirs = translations rootfs
repro_vers = debug dev rel
repro_vers = debug dev rc rel
repro_all_files := $(foreach dir,$(repro_vers), $(foreach file,$(repro_files),$(INST_BASE)/ha_addon_$(dir)/$(file)))
repro_root_files := $(foreach dir,$(repro_vers), $(foreach file,$(repro_root),$(INST_BASE)/ha_addon_$(dir)/$(file)))
@@ -130,6 +130,8 @@ $(filter $(INST_BASE)/ha_addon_debug/%,$(repro_all_files)) : $(INST_BASE)/ha_add
cp $< $@
$(filter $(INST_BASE)/ha_addon_dev/%,$(repro_all_files)) : $(INST_BASE)/ha_addon_dev/% : ha_addon/%
cp $< $@
$(filter $(INST_BASE)/ha_addon_rc/%,$(repro_all_files)) : $(INST_BASE)/ha_addon_rc/% : ha_addon/%
cp $< $@
$(filter $(INST_BASE)/ha_addon_rel/%,$(repro_all_files)) : $(INST_BASE)/ha_addon_rel/% : ha_addon/%
cp $< $@

View File

@@ -39,7 +39,7 @@ schema:
node_id: str
suggested_area: str
modbus_polling: bool
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.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.

View File

@@ -0,0 +1,10 @@
{
"name": "TSUN-Proxy (Release Candidate)",
"description": "MQTT Proxy for TSUN Photovoltaic Inverters",
"version": "rc",
"image": "ghcr.io/s-allius/tsun-gen3-addon",
"slug": "tsun-proxy-rc",
"advanced": true,
"stage": "experimental"
}