HAOS Add-on v1.1.2: HA-Gerätename = benutzerdefinierter Wechselrichtername

Statt Modell-Name ("Growatt MIC 1500 TL-X") wird der vom User vergebene
Name ("Dach Süd") als HA-Gerätename in MQTT Discovery verwendet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
retr0
2026-04-26 12:24:55 +02:00
parent 12586fa383
commit c74fafa6c0
3 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -97,7 +97,8 @@ def _poll_loop(inv_cfg: Dict[str, Any], stop: threading.Event):
with State.lock:
if _publisher:
_publisher.register_inverter(inverter, device_id, prefix)
_publisher.register_inverter(inverter, device_id, prefix,
inv_cfg.get("name", inverter.name))
log.info("[%s] Poll-Loop: %s @ %s:%s alle %ds",
inv_id, inverter.name, inv_cfg["modbus_ip"],