Skip to content

Commit 781da15

Browse files
committed
add possibility to change modbus id
1 parent 7167ac9 commit 781da15

File tree

8 files changed

+81
-18
lines changed

8 files changed

+81
-18
lines changed

src/components/devices/sma_sunny_boy/bat.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-alert subtype="info">
8-
Diese Komponente benötigt keine Einstellungen.
9-
</openwb-base-alert>
7+
<openwb-base-number-input
8+
title="Modbus ID"
9+
required
10+
:model-value="configuration.modbus_id"
11+
min="1"
12+
max="255"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.modbus_id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

src/components/devices/sma_sunny_boy/bat_smart_energy.vue

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@
44
Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-alert subtype="info">
8-
Diese Komponente benötigt keine Einstellungen.
9-
</openwb-base-alert>
7+
8+
<openwb-base-number-input
9+
title="Modbus ID"
10+
required
11+
:model-value="configuration.modbus_id"
12+
min="1"
13+
max="255"
14+
@update:model-value="
15+
updateConfiguration($event, 'configuration.modbus_id')
16+
"
17+
/>
1018
</div>
1119
</template>
1220

src/components/devices/sma_sunny_boy/counter.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für SMA Sunny Boy/Tripower Zähler
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-alert subtype="info">
8-
Diese Komponente benötigt keine Einstellungen.
9-
</openwb-base-alert>
7+
<openwb-base-number-input
8+
title="Modbus ID"
9+
required
10+
:model-value="configuration.modbus_id"
11+
min="1"
12+
max="255"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.modbus_id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

src/components/devices/sma_sunny_boy/inverter.vue

+17
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@
3333
updateConfiguration($event, 'configuration.version')
3434
"
3535
/>
36+
<openwb-base-number-input
37+
title="Modbus ID"
38+
required
39+
:model-value="configuration.modbus_id"
40+
min="1"
41+
max="255"
42+
@update:model-value="
43+
updateConfiguration($event, 'configuration.modbus_id')
44+
"
45+
>
46+
<template #help>
47+
Für die Standardversion ist die Standardmodbus-ID 3,
48+
für Core-2 ist sie 1 und für Data Manager/Cluster
49+
Controller 2. Wurde eine abweichende Modbus ID konfiguriert,
50+
entsprechend anpassen.
51+
</template>
52+
</openwb-base-number-input>
3653
</div>
3754
</template>
3855

src/components/devices/sma_sunny_island/bat.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für Sunny Island Batteriespeicher
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-alert subtype="info">
8-
Diese Komponente erfordert keine Einstellungen.
9-
</openwb-base-alert>
7+
<openwb-base-number-input
8+
title="Modbus ID"
9+
required
10+
:model-value="configuration.modbus_id"
11+
min="1"
12+
max="255"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.modbus_id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

src/components/devices/studer/bat.vue

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für Studer Batteriespeicher
55
<span class="small">(Modul: {{ $options.name }})</span>
66
</openwb-base-heading>
7-
<openwb-base-alert subtype="info">
8-
Diese Komponente erfordert keine Einstellungen.
9-
</openwb-base-alert>
7+
<openwb-base-number-input
8+
title="Modbus ID"
9+
required
10+
:model-value="configuration.modbus_id"
11+
min="1"
12+
max="255"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.modbus_id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

src/components/devices/sungrow/device.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"
2929
/>
3030
<openwb-base-number-input
31-
title="Geräteadresse"
31+
title="Modbus ID"
3232
required
33-
:min="1"
34-
:max="255"
3533
:model-value="configuration.modbus_id"
34+
min="1"
35+
max="255"
3636
@update:model-value="
3737
updateConfiguration($event, 'configuration.modbus_id')
3838
"

src/components/devices/varta/device.vue

+10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
updateConfiguration($event, 'configuration.port')
2424
"
2525
/>
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+
/>
2636
</div>
2737
</template>
2838

0 commit comments

Comments
 (0)