Skip to content

Commit db699bf

Browse files
authored
Merge pull request #156 from LKuemmel/dev
port and modbus id for sungrow
2 parents 0e3c0f3 + a29925c commit db699bf

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

src/components/devices/sungrow/bat.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für Sungrow Speicher
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="Geräteadresse"
9+
required
10+
:min="1"
11+
:max="255"
12+
:model-value="configuration.id"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

src/components/devices/sungrow/counter.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
updateConfiguration($event, 'configuration.version')
1616
"
1717
/>
18+
<openwb-base-number-input
19+
title="Geräteadresse"
20+
required
21+
:min="1"
22+
:max="255"
23+
:model-value="configuration.id"
24+
@update:model-value="
25+
updateConfiguration($event, 'configuration.id')
26+
"
27+
/>
1828
</div>
1929
</template>
2030

src/components/devices/sungrow/device.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
updateConfiguration($event, 'configuration.ip_address')
1414
"
1515
/>
16+
<openwb-base-number-input
17+
title="Port"
18+
required
19+
:model-value="configuration.port"
20+
@update:model-value="
21+
updateConfiguration($event, 'configuration.port')
22+
"
23+
/>
1624
</div>
1725
</template>
1826

src/components/devices/sungrow/inverter.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
Einstellungen für Sungrow Wechselrichter
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="Geräteadresse"
9+
required
10+
:min="1"
11+
:max="255"
12+
:model-value="configuration.id"
13+
@update:model-value="
14+
updateConfiguration($event, 'configuration.id')
15+
"
16+
/>
1017
</div>
1118
</template>
1219

0 commit comments

Comments
 (0)