Skip to content

Commit e38c7cb

Browse files
authored
Merge pull request #76 from benderl/dev
add more device and component configuration pages
2 parents b3cf02a + 5281b6e commit e38c7cb

File tree

10 files changed

+314
-0
lines changed

10 files changed

+314
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="device-smahm-counter">
3+
<openwb-base-heading>
4+
Einstellungen für SMA-HM/EM Zähler
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-text-input
8+
title="Seriennummer"
9+
:model-value="configuration.serials"
10+
@update:model-value="
11+
updateConfiguration($event, 'configuration.serials')
12+
"
13+
/>
14+
</div>
15+
</template>
16+
17+
<script>
18+
export default {
19+
name: "DeviceSmahmCounter",
20+
emits: ["update:configuration"],
21+
props: {
22+
configuration: { type: Object, required: true },
23+
deviceId: { default: undefined },
24+
componentId: { required: true },
25+
},
26+
methods: {
27+
updateConfiguration(event, path = undefined) {
28+
this.$emit("update:configuration", { value: event, object: path });
29+
},
30+
},
31+
};
32+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<div class="device-smahm">
3+
<openwb-base-heading>
4+
Einstellungen für SMA Home Manager / Energy Meter
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Dieses Gerät benötigt keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceSmaHm",
16+
emits: ["update:configuration"],
17+
props: {
18+
configuration: { type: Object, required: true },
19+
deviceId: { default: undefined },
20+
},
21+
methods: {
22+
updateConfiguration(event, path = undefined) {
23+
this.$emit("update:configuration", { value: event, object: path });
24+
},
25+
},
26+
};
27+
</script>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="device-smahm-inverter">
3+
<openwb-base-heading>
4+
Einstellungen für SMA-HM/EM Wechselrichter
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-text-input
8+
title="Seriennummer"
9+
:model-value="configuration.serials"
10+
@update:model-value="
11+
updateConfiguration($event, 'configuration.serials')
12+
"
13+
/>
14+
</div>
15+
</template>
16+
17+
<script>
18+
export default {
19+
name: "DeviceSmahmInverter",
20+
emits: ["update:configuration"],
21+
props: {
22+
configuration: { type: Object, required: true },
23+
deviceId: { default: undefined },
24+
componentId: { required: true },
25+
},
26+
methods: {
27+
updateConfiguration(event, path = undefined) {
28+
this.$emit("update:configuration", { value: event, object: path });
29+
},
30+
},
31+
};
32+
</script>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-solax-bat">
3+
<openwb-base-heading>
4+
Einstellungen für Solax Batteriespeicher
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Diese Komponente erfordert keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceSolaxBat",
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>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-solax-counter">
3+
<openwb-base-heading>
4+
Einstellungen für Solax Zähler
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Diese Komponente erfordert keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceSolaxCounter",
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>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="device-solax">
3+
<openwb-base-heading>
4+
Einstellungen für Solax
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+
:model-value="configuration.ip_address"
11+
@update:model-value="
12+
updateConfiguration($event, 'configuration.ip_address')
13+
"
14+
/>
15+
</div>
16+
</template>
17+
18+
<script>
19+
export default {
20+
name: "DeviceSolax",
21+
emits: ["update:configuration"],
22+
props: {
23+
configuration: { type: Object, required: true },
24+
componentId: { required: true },
25+
},
26+
methods: {
27+
updateConfiguration(event, path = undefined) {
28+
this.$emit("update:configuration", { value: event, object: path });
29+
},
30+
},
31+
};
32+
</script>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-solax-inverter">
3+
<openwb-base-heading>
4+
Einstellungen für Solax Wechselrichter
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Diese Komponente erfordert keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceSolaxInverter",
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>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-studer-bat">
3+
<openwb-base-heading>
4+
Einstellungen für Studer Batteriespeicher
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-alert subtype="info">
8+
Diese Komponente erfordert keine Einstellungen.
9+
</openwb-base-alert>
10+
</div>
11+
</template>
12+
13+
<script>
14+
export default {
15+
name: "DeviceStuderBat",
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>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<div class="device-studer">
3+
<openwb-base-heading>
4+
Einstellungen für Studer
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+
:model-value="configuration.ip_address"
11+
@update:model-value="
12+
updateConfiguration($event, 'configuration.ip_address')
13+
"
14+
/>
15+
</div>
16+
</template>
17+
18+
<script>
19+
export default {
20+
name: "DeviceStuder",
21+
emits: ["update:configuration"],
22+
props: {
23+
configuration: { type: Object, required: true },
24+
componentId: { required: true },
25+
},
26+
methods: {
27+
updateConfiguration(event, path = undefined) {
28+
this.$emit("update:configuration", { value: event, object: path });
29+
},
30+
},
31+
};
32+
</script>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<template>
2+
<div class="device-studer-inverter">
3+
<openwb-base-heading>
4+
Einstellungen für Studer Wechselrichter
5+
<span class="small">(Modul: {{ $options.name }})</span>
6+
</openwb-base-heading>
7+
<openwb-base-button-group-input
8+
title="Typ der MPPT Solarladeregler"
9+
:buttons="[
10+
{ buttonValue: 'VT', text: 'VT' },
11+
{ buttonValue: 'VS', text: 'VS' },
12+
]"
13+
:model-value="configuration.vc_type"
14+
@update:model-value="
15+
updateConfiguration($event, 'configuration.vc_type')
16+
"
17+
>
18+
<template #help>Hilfetext</template>
19+
</openwb-base-button-group-input>
20+
<openwb-base-number-input
21+
title="Anzahl MPPT Solarladeregler"
22+
:model-value="configuration.vc_count"
23+
min="1"
24+
max="9"
25+
@update:model-value="
26+
updateConfiguration($event, 'configuration.vc_count')
27+
"
28+
/>
29+
</div>
30+
</template>
31+
32+
<script>
33+
export default {
34+
name: "DeviceStuderInverter",
35+
emits: ["update:configuration"],
36+
props: {
37+
configuration: { type: Object, required: true },
38+
deviceId: { default: undefined },
39+
componentId: { required: true },
40+
},
41+
methods: {
42+
updateConfiguration(event, path = undefined) {
43+
this.$emit("update:configuration", { value: event, object: path });
44+
},
45+
},
46+
};
47+
</script>

0 commit comments

Comments
 (0)