You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[SMA/Speedwire Plugin](#speedwire) - Plugin speziell für SMA Geräte, die mit dem Speedwire Protokoll kommunizieren können.
29
29
-[JavaScript Plugin](#javascript) - Plugin, das Werte in über ein JavaScript Skript bereitstellt oder entgegennimmt.
30
30
-[Shell Plugin](#shell) - Plugin, das ein Shell Skript ausführen kann, um Daten zu extrahieren oder schreibend entgegennimmt.
31
+
-[Meter Plugin](#meter-plugin) - Plugin um ein anderes Messgerät als Datenquelle zu verwenden.
31
32
32
33
Neben diesen Integrations-Plugins, gibt es noch Helfer-Plugins, die Zusatzfunktionen bereit stellt:
33
34
@@ -154,25 +155,63 @@ Neben den Attributen, die Plugins zur lesenden Auswertung bereitstellen, werden
154
155
| limitsoc | int | nein | `battery` | Setze Ladeziel für Batterie in %. Das Ladeziel wird aus den konfigurierten `MinSoc`, `MaxSoc` und dem aktuellen Ladestand (Attribut `soc`) berechnet. |
155
156
| batterymode | int | nein | `battery` | Setze Lademodus direkt (1: normal, 2: hold, 3: charge) |
156
157
157
-
### Charger
158
+
### Charger {#charger}
158
159
159
160
Wallboxen und Ladegeräte haben folgende Attribute die ausgelesen werden können:
| heating | Behandelt das Gerät als Heizung (z. B. Wärmepumpe, Heizstab). Beeinflusst die Darstellung in der Benutzeroberfläche. |
196
+
| integrateddevice | Gerät ohne Ladesitzungen und ohne angeschlossenes Fahrzeug (z. B. Smartes Schalter, fest installierte Verbraucher). |
197
+
| coarsecurrent | Ladestrom kann nur in 1 A Schritten eingestellt werden (wird in der Regelung berücksichtigt). |
198
+
| welcomecharge | Aktiviert Welcome Charge Funktion. Ladegerät liefert beim Anschließen kurz Strom, damit das Fahrzeug erkennt, dass der Charger funktioniert. |
199
+
200
+
**Beispiel mit Features**:
201
+
202
+
```yaml
203
+
chargers:
204
+
- name: heizstab
205
+
type: custom
206
+
features:
207
+
- heating
208
+
- integrateddevice
209
+
icon: heater
210
+
status:
211
+
source: mqtt
212
+
topic: heater/status
213
+
# ... weitere Attribute
214
+
```
176
215
177
216
**Beispiel**
178
217
@@ -203,6 +242,7 @@ Neben den read-only Werten können über Plugins auch Aktionen getriggert oder K
Im folgenden Beispiel wird die aktuelle Reichweite des Fahrzeugs aus MQTT Nachrichten gelesen:
240
290
241
291
```yaml
242
292
vehicles:
243
-
- name: Mazda
293
+
- name: mazda
244
294
type: custom
295
+
title: Grüner Mazda
296
+
capacity: 50
245
297
range:
246
298
source: mqtt
247
299
topic: mazda2mqtt/c53/chargeInfo/drivingRangeKm
@@ -377,8 +429,7 @@ insecure: false # set to true to trust self-signed certificates
377
429
jq: .data.tuples[0][1] # parse response json
378
430
scale: 0.001 # factor applied to result, e.g. for kW to W conversion
379
431
cache: 60s # response cache duration
380
-
timeout: 10s # timeout in golang duration format,
381
-
# see https://golang.org/pkg/time/#ParseDuration
432
+
timeout: 10s # timeout in golang duration format, see https://golang.org/pkg/time/#ParseDuration
382
433
```
383
434
384
435
```yaml
@@ -579,3 +630,42 @@ value:
579
630
580
631
In diesem Beispiel wird der Wert nur verwendet, wenn das `valid` Topic `true` zurückgibt.
581
632
Wenn es `false` zurückgibt, wird der Wert als nicht verfügbar markiert.
633
+
634
+
### Meter <Tag label="lesen" category="read" /> {#meter-plugin}
635
+
636
+
Das `meter` Plugin ermöglicht es, ein anderes Messgerät als Datenquelle zu verwenden.
637
+
Dies ist nützlich, wenn man ein bestehendes Gerät für mehrere Messwerte verwenden möchte oder wenn man verschiedene Methoden eines Geräts für unterschiedliche Attribute nutzen will.
638
+
639
+
Die `config` Sektion enthält dabei die vollständige Template-Konfiguration des einzubettenden Messgeräts.
640
+
641
+
**Beispiel Lesen**:
642
+
643
+
```yaml
644
+
meters:
645
+
- name: battery
646
+
type: custom
647
+
power:
648
+
source: meter
649
+
config:
650
+
type: template
651
+
template: shelly-1pm
652
+
host: 192.168.178.21
653
+
channel: 0
654
+
method: power
655
+
scale: -1
656
+
energy:
657
+
source: meter
658
+
config:
659
+
type: template
660
+
template: shelly-1pm
661
+
host: 192.168.178.21
662
+
channel: 0
663
+
method: energy
664
+
soc:
665
+
source: mqtt
666
+
topic: Haus/Batterie
667
+
jq: .soc
668
+
timeout: 60s
669
+
```
670
+
671
+
In diesem Beispiel wird ein Shelly 1PM Gerät als Datenquelle für Leistung und Energie einer Batterie verwendet, während der Ladestand (SoC) über MQTT abgerufen wird.
@@ -28,6 +28,7 @@ evcc offers the following plugins:
28
28
-[SMA/Speedwire Plugin](#speedwire) - Plugin specifically for SMA devices that can communicate with the Speedwire protocol.
29
29
-[JavaScript Plugin](#javascript) - Plugin that provides or receives values via a JavaScript script.
30
30
-[Shell Plugin](#shell) - Plugin that can execute a shell script to extract data or receive data for writing.
31
+
-[Meter Plugin](#meter-plugin) - Plugin to use another meter as a data source.
31
32
32
33
In addition to these integration plugins, there are also helper plugins that provide additional functions:
33
34
@@ -154,25 +155,63 @@ In addition to the attributes that plugins provide for reading evaluation, the f
154
155
| limitsoc | int | no | `battery` | Set charging target for battery in %. The charging target is calculated from the configured `MinSoc`, `MaxSoc` and the current state of charge (attribute `soc`). |
155
156
| batterymode | int | no | `battery` | Set charging mode directly (1: normal, 2: hold, 3: charge) |
156
157
157
-
### Charger
158
+
### Charger {#charger}
158
159
159
160
Wallboxes and chargers have the following attributes that can be read:
| heating | Treat device as heating (e.g. heat pump, heating rod). Affects display in the user interface. |
196
+
| integrateddevice | Device without charging sessions and without connected vehicle (e.g. smart switch, permanently installed consumers). |
197
+
| coarsecurrent | Charging current can only be set in 1 A steps (considered in the control logic). |
198
+
| welcomecharge | Enable Welcome Charge function. Charger briefly supplies power when connecting, so the vehicle recognises that the charger is working. |
199
+
200
+
**Example with Features**:
201
+
202
+
```yaml
203
+
chargers:
204
+
- name: heating-rod
205
+
type: custom
206
+
features:
207
+
- heating
208
+
- integrateddevice
209
+
icon: heater
210
+
status:
211
+
source: mqtt
212
+
topic: heater/status
213
+
# ... additional attributes
214
+
```
176
215
177
216
**Example**
178
217
@@ -203,6 +242,7 @@ In addition to read-only values, actions can also be triggered or configuration
203
242
| phases1p3p | int | no | Perform phase switching (requires `tos: true`) |
204
243
| wakeup | bool | no | Wake up vehicle |
205
244
| setmode | int | no | Change SG-Ready mode (1: reduced, 2: normal, 3: boost) |
245
+
| setmaxpower | int | no | Set maximum heating power in W (heating) |
206
246
207
247
**Example**
208
248
@@ -219,7 +259,7 @@ chargers:
219
259
payload: ON
220
260
```
221
261
222
-
### Vehicle
262
+
### Vehicle {#vehicle}
223
263
224
264
Vehicle parameters can also be read via plugins.
225
265
@@ -234,14 +274,26 @@ Vehicle parameters can also be read via plugins.
234
274
| getmaxcurrent | float | no | Maximum charging current in A |
235
275
| finishtime | string | no | Planned charging end (RFC3339) |
236
276
277
+
#### General Configuration Options {#vehicle-config}
278
+
279
+
The following configuration options can be set directly on the vehicle:
| title | string | no | Display name of the vehicle in the user interface |
284
+
| icon | string | no | Icon for display in the user interface |
285
+
| capacity | float | no | Battery capacity in kWh |
286
+
237
287
**Example**
238
288
239
289
In the following example, the current range of the vehicle is read from MQTT messages:
240
290
241
291
```yaml
242
292
vehicles:
243
-
- name: Mazda
293
+
- name: mazda
244
294
type: custom
295
+
title: Green Mazda
296
+
capacity: 50
245
297
range:
246
298
source: mqtt
247
299
topic: mazda2mqtt/c53/chargeInfo/drivingRangeKm
@@ -377,8 +429,7 @@ insecure: false # set to true to trust self-signed certificates
377
429
jq: .data.tuples[0][1] # parse response json
378
430
scale: 0.001 # factor applied to result, e.g. for kW to W conversion
379
431
cache: 60s # response cache duration
380
-
timeout: 10s # timeout in golang duration format,
381
-
# see https://golang.org/pkg/time/#ParseDuration
432
+
timeout: 10s # timeout in golang duration format, see https://golang.org/pkg/time/#ParseDuration
382
433
```
383
434
384
435
```yaml
@@ -579,3 +630,42 @@ value:
579
630
580
631
In this example, the value is only used when the `valid` topic returns `true`.
581
632
If it returns `false`, the value is marked as unavailable.
633
+
634
+
### Meter <Tag label="read" category="read" /> {#meter-plugin}
635
+
636
+
The `meter` plugin allows using another meter as a data source.
637
+
This is useful when you want to use an existing device for multiple measurements or when you need different methods of a device for different attributes.
638
+
639
+
The `config` section contains the complete template configuration of the meter to be embedded.
640
+
641
+
**Reading Example**:
642
+
643
+
```yaml
644
+
meters:
645
+
- name: battery
646
+
type: custom
647
+
power:
648
+
source: meter
649
+
config:
650
+
type: template
651
+
template: shelly-1pm
652
+
host: 192.168.178.21
653
+
channel: 0
654
+
method: power
655
+
scale: -1
656
+
energy:
657
+
source: meter
658
+
config:
659
+
type: template
660
+
template: shelly-1pm
661
+
host: 192.168.178.21
662
+
channel: 0
663
+
method: energy
664
+
soc:
665
+
source: mqtt
666
+
topic: Haus/Batterie
667
+
jq: .soc
668
+
timeout: 60s
669
+
```
670
+
671
+
In this example, a Shelly 1PM device is used as a data source for power and energy of a battery, while the state of charge (SoC) is retrieved via MQTT.
0 commit comments