s-allius / tsun-gen3-proxy

This proxy enables a reliable connection between TSUN third generation inverters (eg. TSOL MS600, MS800, MS2000) and an MQTT broker to integrate the inverter into typical home automations.
https://s-allius.github.io/tsun-gen3-proxy/
BSD 3-Clause "New" or "Revised" License
55 stars 7 forks source link

HA AddOn: The proxy should directly read the config from HA #217

Open s-allius opened 1 day ago

s-allius commented 1 day ago

Remove the config.toml creator, which runs before the. proxy is started, and read the HA proxy directly from the proxy.

Advantage: We have no config.toml inside the container and we don't store the MQTT password

Idea:

s-allius commented 17 hours ago

I will move the Config class into a sub-directory and separate the config reading in a separate class. Then we can with Decency Injection support a Config Reader for the proxy and a different one for the AddOn