Skip to content

Commit fbd5273

Browse files
committed
add UPower
1 parent 020206b commit fbd5273

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<template>
2+
<div class="device-upower">
3+
<openwb-base-heading>Einstellungen für UPower</openwb-base-heading>
4+
<openwb-base-text-input
5+
title="IP oder Hostname"
6+
subtype="host"
7+
required
8+
:model-value="device.configuration.ip_address"
9+
@update:model-value="updateConfiguration($event, 'configuration.ip_address')"
10+
/>
11+
<openwb-base-number-input
12+
title="Port"
13+
required
14+
:min="1"
15+
:max="65535"
16+
:model-value="device.configuration.port"
17+
@update:model-value="updateConfiguration($event, 'configuration.port')"
18+
/>
19+
<openwb-base-number-input
20+
title="Modbus ID"
21+
required
22+
:model-value="device.configuration.modbus_id"
23+
min="1"
24+
max="255"
25+
@update:model-value="updateConfiguration($event, 'configuration.modbus_id')"
26+
/>
27+
<openwb-base-select-input
28+
title="Generation"
29+
not-selected="Bitte auswählen"
30+
:options="[
31+
{ value: '1', text: 'Gen 1' },
32+
{ value: '2', text: 'Gen 2' },
33+
]"
34+
:model-value="device.configuration.version"
35+
required
36+
@update:model-value="updateConfiguration($event, 'configuration.version')"
37+
/>
38+
</div>
39+
</template>
40+
41+
<script>
42+
import DeviceConfigMixin from "../../DeviceConfigMixin.vue";
43+
44+
export default {
45+
name: "DeviceUPower",
46+
mixins: [DeviceConfigMixin],
47+
};
48+
</script>

0 commit comments

Comments
 (0)