From ab3a7f324ea06240c7852a3cbdb85442092da284 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 16 Feb 2025 11:27:49 +0100 Subject: [PATCH] make monitoring_sn mandatory --- ha_addon_dev/config.yaml | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/ha_addon_dev/config.yaml b/ha_addon_dev/config.yaml index 0d1e02a..8528442 100755 --- a/ha_addon_dev/config.yaml +++ b/ha_addon_dev/config.yaml @@ -35,18 +35,13 @@ ports: schema: inverters: - serial: match(^(410|R17|Y17|Y47).{13}$) - monitor_sn: int? + monitor_sn: int 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.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 - # type: str - # manufacturer: str - # daher diese variante pv1.manufacturer: str? pv1.type: str? pv2.manufacturer: str? @@ -63,20 +58,6 @@ schema: solarman.enabled: bool inverters.allow_all: bool - batteries: - - serial: match(^(410).{13}$) - monitor_sn: int - 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.port: port? - client_mode.forward: bool? - pv1.manufacturer: str? - pv1.type: str? - pv2.manufacturer: str? - pv2.type: str? - # optionale parameter mqtt.host: str? @@ -105,6 +86,7 @@ schema: options: inverters: - serial: R17E760702080400 + monitor_sn: 0 node_id: PV-Garage suggested_area: Garage modbus_polling: false @@ -115,16 +97,5 @@ options: tsun.enabled: true # set default solarman.enabled: true # set default inverters.allow_all: false # set default - batteries: - - serial: 4100000000000000 - monitor_sn: 0 - node_id: PV-Garage - suggested_area: Garage - modbus_polling: false - pv1.manufacturer: Shinefar - pv1.type: SF-M18/144550 - pv2.manufacturer: Shinefar - pv2.type: SF-M18/144550 - gen3plus.at_acl.tsun.allow: ["AT+Z", "AT+UPURL", "AT+SUPDATE"] gen3plus.at_acl.mqtt.allow: ["AT+"] \ No newline at end of file