diff --git a/templates/definition/charger/openwb.yaml b/templates/definition/charger/openwb.yaml index e5f2adf6f..8303dfbec 100644 --- a/templates/definition/charger/openwb.yaml +++ b/templates/definition/charger/openwb.yaml @@ -10,9 +10,23 @@ requirements: uri: https://docs.evcc.io/docs/devices/chargers#openwb params: - name: host - - name: loadpointid - default: 1 + - name: connector + - name: phases1p3p + valuetype: bool + description: + en: Charger is equipped with phase switching feature + de: Phasenumschaltung vorhanden + advanced: true + default: false render: | type: openwb broker: {{ .host }} + {{- if ne .connector "1" }} + id: {{ .connector }} # loadpoint id + {{- end }} + {{- if ne .loadpointid "1" }} id: {{ .loadpointid }} # loadpoint id + {{- end }} + {{- if ne .phases1p3p "false" }} + phases: true + {{- end }} diff --git a/templates/definition/defaults.yaml b/templates/definition/defaults.yaml index ab64da538..85943fe43 100644 --- a/templates/definition/defaults.yaml +++ b/templates/definition/defaults.yaml @@ -77,7 +77,7 @@ params: mask: true - name: capacity description: - de: Akku-Kapazität in kWh + de: Akkukapazität in kWh en: Battery capacity in kWh help: de: Akku-Kapazität in kWh @@ -101,13 +101,20 @@ params: en: The maximum number of phases which can be used example: 3 valuetype: number + - name: connector + description: + de: Ladepunkt (falls >1 Ladepunkt) + en: Loadpoint (if >1 loadpoint) + advanced: true + default: 1 - name: cache description: de: Cache en: Cache help: - de: Das zeitliche Interval, in welchem Daten vom Fahrzeug neu geladen werden soll + de: Zeitintervall, in dem Daten vom Fahrzeug neu geladen werden sollen en: Time interval with when data should be reloaded from the vehicle + advanced: true example: 5m - name: cloud description: diff --git a/templates/docs/charger/openwb_0.yaml b/templates/docs/charger/openwb_0.yaml index a0b17c883..e7a74f86b 100644 --- a/templates/docs/charger/openwb_0.yaml +++ b/templates/docs/charger/openwb_0.yaml @@ -8,4 +8,10 @@ render: type: template template: openwb host: 192.0.2.2 # IP-Adresse oder Hostname - loadpointid: 1 # Optional + connector: 1 # Optional + advanced: | + type: template + template: openwb + host: 192.0.2.2 # IP-Adresse oder Hostname + connector: 1 # Optional + phases1p3p: false # Optional