Compare commits

...

21 Commits

Author SHA1 Message Date
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

View File

@@ -91,7 +91,7 @@ $(DST)/requirements.txt : $(SRC)/requirements.txt
@cp $< $@
$(ADDON_PATH)/%.yaml: $(TEMPL)/%.jinja $(TEMPL)/.data.json
$(JINJA) --strict --format=json $^ -o $@
$(JINJA) --strict -D AppVersion=$(VERSION) --format=json $^ -o $@
$(TEMPL)/.data.json: FORCE
rsync --checksum $(TEMPL)/$(STAGE)_data.json $@
@@ -121,7 +121,7 @@ $(repro_all_subdirs) :
mkdir -p $@
$(repro_all_templates) : $(INST_BASE)/ha_addon_%/config.yaml: $(TEMPL)/config.jinja $(TEMPL)/%_data.json $(SRC)/.version
$(JINJA) --strict -D AppVersion=$(VERSION) $< $(filter %.json,$^) -o $@
$(JINJA) --strict -D AppVersion=$(VERSION)-$* $< $(filter %.json,$^) -o $@
$(repro_root_files) : %/CHANGELOG.md : ../CHANGELOG.md
cp $< $@