Skip to content

Commit 90cf1e5

Browse files
authored
Merge pull request #449 from pama87/Azzurro_Sofar_modules
new module azzurro-zcs/sofar
2 parents 8588fee + 91f26bd commit 90cf1e5

File tree

8 files changed

+274
-0
lines changed

8 files changed

+274
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_sofar-bat">
3+
<openwb-base-heading>
4+
Einstellungen für Sofar Batteriespeicher
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: "DeviceSofarBat",
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_sofar-counter">
3+
<openwb-base-heading>
4+
Einstellungen für Sofar ESS 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: "DeviceSofarCounter",
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<template>
2+
<div class="device-azzurro_sofar">
3+
<openwb-base-heading>
4+
Einstellungen für Sofar
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-number-input
17+
title="Port"
18+
required
19+
:min="1"
20+
:max="65535"
21+
:model-value="configuration.port"
22+
@update:model-value="
23+
updateConfiguration($event, 'configuration.port')
24+
"
25+
/>
26+
<openwb-base-number-input
27+
title="Modbus ID"
28+
required
29+
:model-value="configuration.modbus_id"
30+
min="1"
31+
max="255"
32+
@update:model-value="
33+
updateConfiguration($event, 'configuration.modbus_id')
34+
"
35+
/>
36+
</div>
37+
</template>
38+
39+
<script>
40+
export default {
41+
name: "DeviceSofar",
42+
emits: ["update:configuration"],
43+
props: {
44+
configuration: { type: Object, required: true },
45+
deviceId: { default: undefined },
46+
},
47+
methods: {
48+
updateConfiguration(event, path = undefined) {
49+
this.$emit("update:configuration", { value: event, object: path });
50+
},
51+
},
52+
};
53+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_sofar-inverter">
3+
<openwb-base-heading>
4+
Einstellungen für Sofar Wechselrichter
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: "DeviceSofarInverter",
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>
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_zcs">
3+
<openwb-base-heading>
4+
Einstellungen für Azzurro ZCS Batteriespeicher
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: "DeviceZCSBat",
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_zcs-counter">
3+
<openwb-base-heading>
4+
Einstellungen für Azzurro ZCS 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: "DeviceZCSCounter",
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<template>
2+
<div class="device-azzurro_zcs">
3+
<openwb-base-heading>
4+
Einstellungen für Azzurro ZCS
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-number-input
17+
title="Port"
18+
required
19+
:min="1"
20+
:max="65535"
21+
:model-value="configuration.port"
22+
@update:model-value="
23+
updateConfiguration($event, 'configuration.port')
24+
"
25+
/>
26+
<openwb-base-number-input
27+
title="Modbus ID"
28+
required
29+
:model-value="configuration.modbus_id"
30+
min="1"
31+
max="255"
32+
@update:model-value="
33+
updateConfiguration($event, 'configuration.modbus_id')
34+
"
35+
/>
36+
</div>
37+
</template>
38+
39+
<script>
40+
export default {
41+
name: "DeviceZCS",
42+
emits: ["update:configuration"],
43+
props: {
44+
configuration: { type: Object, required: true },
45+
deviceId: { default: undefined },
46+
},
47+
methods: {
48+
updateConfiguration(event, path = undefined) {
49+
this.$emit("update:configuration", { value: event, object: path });
50+
},
51+
},
52+
};
53+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div class="device-azzurro_zcs-inverter">
3+
<openwb-base-heading>
4+
Einstellungen für Azzurro ZCS Wechselrichter
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: "DeviceZCSInverter",
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>

0 commit comments

Comments
 (0)