Skip to content

Commit 6468fda

Browse files
authored
Add Algodue meter via ModbusTCP (#582)
1 parent 834c327 commit 6468fda

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<div class="device-algodue-counter">
3+
<openwb-base-alert subtype="info">
4+
ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502.
5+
</openwb-base-alert>
6+
</div>
7+
</template>
8+
9+
<script>
10+
import ComponentConfigMixin from "../../ComponentConfigMixin.vue";
11+
12+
export default {
13+
name: "DeviceAlgodueCounter",
14+
mixins: [ComponentConfigMixin],
15+
};
16+
</script>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<template>
2+
<div class="device-carlogavazzi">
3+
<openwb-base-heading> Einstellungen für Algodue</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+
</div>
28+
</template>
29+
30+
<script>
31+
import DeviceConfigMixin from "../../DeviceConfigMixin.vue";
32+
33+
export default {
34+
name: "DeviceAlgodue",
35+
mixins: [DeviceConfigMixin],
36+
};
37+
</script>

0 commit comments

Comments
 (0)