Skip to content

Commit ec70c90

Browse files
authored
Merge branch 'main' into Phasenumschaltung
2 parents 86784fc + fbee272 commit ec70c90

File tree

8 files changed

+273
-7
lines changed

8 files changed

+273
-7
lines changed

src/components/devices/openwb_evu_kit/counter.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
title="Zählermodell"
99
notSelected="Bitte auswählen"
1010
:options="[
11-
{ value: 0, text: 'MPM3PM' },
11+
{ value: 3, text: 'B23' },
1212
{ value: 1, text: 'Lovato' },
13+
{ value: 0, text: 'MPM3PM' },
1314
{ value: 2, text: 'SDM630/SDM72D-M' },
1415
]"
1516
:model-value="configuration.version"

src/components/devices/openwb_flex/counter.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
77
<openwb-base-alert subtype="info">
8-
Bei saldierenden Zählern (MPM3PM) werden die Zählerstände für
8+
Bei saldierenden Zählern (MPM3PM, B23) werden die Zählerstände für
99
Einspeisung und Bezug aus dem Zähler ausgelesen. Bei Zählern, die
1010
nicht saldierend arbeiten (Lovato, SDM630, SDM72D-M), werden die
1111
Zählerstände von der openWB berechnet.
@@ -14,8 +14,9 @@
1414
title="Zählermodell"
1515
notSelected="Bitte auswählen"
1616
:options="[
17-
{ value: 0, text: 'MPM3PM' },
17+
{ value: 3, text: 'B23' },
1818
{ value: 1, text: 'Lovato' },
19+
{ value: 0, text: 'MPM3PM' },
1920
{ value: 2, text: 'SDM630/SDM72D-M' },
2021
]"
2122
:model-value="configuration.version"
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-tasmota-counter">
3+
<openwb-base-heading>
4+
Einstellungen für Tasmota Zähler
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Diese Komponente benötigt keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceTasmotaCounter",
16+
emits: ["update:configuration"],
17+
props: {
18+
configuration: { type: Object, required: true },
19+
deviceId: { default: undefined },
20+
componentId: { required: true },
21+
},
22+
methods: {
23+
updateConfiguration(event, path = undefined) {
24+
this.$emit("update:configuration", { value: event, object: path });
25+
},
26+
},
27+
};
28+
</script>
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<template>
2+
<div class="device-tasmota">
3+
<openwb-base-heading>
4+
Einstellungen für Tasmota
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-text-input
8+
title="IP oder Hostname"
9+
subtype="host"
10+
required
11+
:model-value="configuration.ip_address"
12+
@update:model-value="
13+
updateConfiguration($event, 'configuration.ip_address')
14+
"
15+
/>
16+
<openwb-base-select-input
17+
title="Phase"
18+
notSelected="Bitte auswählen"
19+
:options="[
20+
{ value: 1, text: '1' },
21+
{ value: 2, text: '2' },
22+
{ value: 3, text: '3' },
23+
]"
24+
:model-value="configuration.phase"
25+
@update:model-value="
26+
updateConfiguration($event, 'configuration.phase')
27+
"
28+
/>
29+
</div>
30+
</template>
31+
32+
<script>
33+
export default {
34+
name: "DeviceTasmota",
35+
emits: ["update:configuration"],
36+
props: {
37+
configuration: { type: Object, required: true },
38+
deviceId: { default: undefined },
39+
},
40+
methods: {
41+
updateConfiguration(event, path = undefined) {
42+
this.$emit("update:configuration", { value: event, object: path });
43+
},
44+
},
45+
};
46+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<template>
2+
<div class="electricity-tariff-energycharts">
3+
<openwb-base-alert subtype="info">
4+
Börsenstrompreise von Energy Charts (energy-charts.info)<br />
5+
Die Rohdaten werden von Wissenschaftlern des Fraunhofer-Institut
6+
für Solare Energiesysteme ISE aus zahlreichen Quellen stündlich
7+
oder täglich abgerufen und für die Darstellung aufbereitet.
8+
</openwb-base-alert>
9+
<openwb-base-select-input
10+
title="Land"
11+
notSelected="Bitte auswählen"
12+
:options="[
13+
{ value: 'DE-LU', text: 'Deutschland' },
14+
{ value: 'AT', text: 'Österreich' },
15+
{ value: 'CH', text: 'Schweiz' },
16+
]"
17+
:model-value="electricityTariff.configuration.country"
18+
@update:model-value="
19+
updateConfiguration($event, 'configuration.country')
20+
"
21+
/>
22+
<openwb-base-number-input
23+
title="Aufschlag zum Börsenstrompreis"
24+
:min=0
25+
:step="0.001"
26+
:precision="3"
27+
unit="ct/kWh"
28+
:model-value="electricityTariff.configuration.surcharge"
29+
@update:model-value="
30+
updateConfiguration(parseFloat(($event).toFixed(3)), 'configuration.surcharge')
31+
"
32+
>
33+
<template #help>
34+
Die Auswahl (Energy-Charts) kann für alle Stromanbieter ausgewählt werden,
35+
die die Börsenstrompreise in einem variablen/dynamischen Tarif an die Kunden
36+
weitergeben. Das Modul soll es ermöglichen, dass zu tagesaktuellen Strompreisen
37+
unter Berücksichtigung eines Aufschlags zu günstigen Zeiten automatisch geladen
38+
werden kann und somit die Preisschwankungen an der Börse optimal ausgenutzt werden.
39+
</template>
40+
</openwb-base-number-input>
41+
</div>
42+
</template>
43+
44+
<script>
45+
import ComponentState from "/src/components/mixins/ComponentState.vue";
46+
export default {
47+
name: "ElectricityTariffEnergyCharts",
48+
mixins: [ComponentState],
49+
emits: ["update:configuration"],
50+
props: {
51+
electricityTariff: { type: Object, required: true },
52+
},
53+
data() {
54+
return {
55+
};
56+
},
57+
methods: {
58+
updateConfiguration(event, path = undefined) {
59+
this.$emit("update:configuration", { value: event, object: path });
60+
},
61+
},
62+
};
63+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<template>
2+
<div class="electricity-tariff-rabot">
3+
<openwb-base-alert subtype="info">
4+
Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret)
5+
erhalten Sie direkt von Rabot. Behandeln Sie diese Daten wie ein
6+
Passwort, da sich darüber auch persönliche Daten aus Ihrem
7+
Rabot-Account abfragen lassen!
8+
</openwb-base-alert>
9+
<openwb-base-text-input
10+
title="Client-ID"
11+
subtype="user"
12+
required
13+
:model-value="electricityTariff.configuration.client_id"
14+
@update:model-value="
15+
updateConfiguration($event, 'configuration.client_id')
16+
"
17+
/>
18+
<openwb-base-text-input
19+
title="Client-Secret"
20+
subtype="password"
21+
required
22+
:model-value="electricityTariff.configuration.client_secret"
23+
@update:model-value="
24+
updateConfiguration($event, 'configuration.client_secret')
25+
"
26+
/>
27+
</div>
28+
</template>
29+
30+
<script>
31+
export default {
32+
name: "ElectricityTariffRabot",
33+
emits: ["update:configuration"],
34+
props: {
35+
electricityTariff: { type: Object, required: true },
36+
},
37+
data() {
38+
return {};
39+
},
40+
methods: {
41+
updateConfiguration(event, path = undefined) {
42+
this.$emit("update:configuration", { value: event, object: path });
43+
},
44+
},
45+
};
46+
</script>
+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<template>
2+
<div class="vehicle-soc-bmwbc">
3+
<openwb-base-text-input
4+
title="Benutzername"
5+
required
6+
subtype="user"
7+
:model-value="vehicle.configuration.user_id"
8+
@update:model-value="
9+
updateConfiguration($event, 'configuration.user_id')
10+
"
11+
>
12+
<template #help>
13+
Der Benutzername für die Anmeldung an den BMW-Servern.
14+
</template>
15+
</openwb-base-text-input>
16+
<openwb-base-text-input
17+
title="Kennwort"
18+
required
19+
subtype="password"
20+
:model-value="vehicle.configuration.password"
21+
@update:model-value="
22+
updateConfiguration($event, 'configuration.password')
23+
"
24+
>
25+
<template #help>
26+
Das Passwort für die Anmeldung an den BMW-Servern.
27+
</template>
28+
</openwb-base-text-input>
29+
<openwb-base-text-input
30+
title="VIN"
31+
required
32+
:model-value="vehicle.configuration.vin"
33+
@update:model-value="
34+
updateConfiguration($event, 'configuration.vin')
35+
"
36+
>
37+
<template #help> Die Fahrgestellnummer des Fahrzeugs. </template>
38+
</openwb-base-text-input>
39+
<openwb-base-button-group-input
40+
title="SoC während der Ladung berechnen"
41+
:buttons="[
42+
{
43+
buttonValue: false,
44+
text: 'Nein',
45+
class: 'btn-outline-danger',
46+
},
47+
{
48+
buttonValue: true,
49+
text: 'Ja',
50+
class: 'btn-outline-success',
51+
},
52+
]"
53+
:model-value="vehicle.configuration.calculate_soc"
54+
@update:model-value="
55+
updateConfiguration($event, 'configuration.calculate_soc')
56+
"
57+
>
58+
<template #help>
59+
Berechnet den Ladestand (SoC) während der Ladung. <br />
60+
Die Berechnung erfolgt über die Ladeleistung und die Ladedauer. <br />
61+
</template>
62+
</openwb-base-button-group-input>
63+
</div>
64+
</template>
65+
66+
<script>
67+
export default {
68+
name: "VehicleSocBmw-bimmer_connected",
69+
emits: ["update:configuration"],
70+
props: {
71+
vehicleId: { required: true, type: Number },
72+
vehicle: { required: true, type: Object },
73+
},
74+
data() {
75+
return {};
76+
},
77+
methods: {
78+
updateConfiguration(event, path = undefined) {
79+
this.$emit("update:configuration", { value: event, object: path });
80+
},
81+
},
82+
};
83+
</script>

src/views/OptionalComponents.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@
5151
"
5252
>
5353
<openwb-base-alert subtype="info" class="mb-1">
54-
Die ID-Tags, die an dem jeweiligen Ladepunkt gültig
55-
sind, müssen in dem Ladepunkt-Profil hinterlegt werden.
56-
Die ID-Tags müssen auch in den Einstellungen der
57-
Fahrzeuge diesen zugeordnet werden.<br />
54+
Die ID-Tags müssen in den Einstellungen der Fahrzeuge
55+
diesen zugeordnet werden.<br />
5856
Es kann zuerst das Fahrzeug angesteckt und dann der
5957
ID-Tag erfasst werden oder anders herum. Im letzten Fall
6058
muss innerhalb von 5 Minuten ein Fahrzeug angesteckt

0 commit comments

Comments
 (0)