Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Algodue meter via ModbusTCP #582

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/components/devices/algodue/carlo_gavazzi/counter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<div class="device-algodue-counter">
<openwb-base-alert subtype="info">
ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502.
</openwb-base-alert>
</div>
</template>

<script>
import ComponentConfigMixin from "../../ComponentConfigMixin.vue";

export default {
name: "DeviceAlgodueCounter",
mixins: [ComponentConfigMixin],
};
</script>
37 changes: 37 additions & 0 deletions src/components/devices/algodue/carlo_gavazzi/device.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<div class="device-carlogavazzi">
<openwb-base-heading> Einstellungen für Algodue</openwb-base-heading>
<openwb-base-text-input
title="IP oder Hostname"
subtype="host"
required
:model-value="device.configuration.ip_address"
@update:model-value="updateConfiguration($event, 'configuration.ip_address')"
/>
<openwb-base-number-input
title="Port"
required
:min="1"
:max="65535"
:model-value="device.configuration.port"
@update:model-value="updateConfiguration($event, 'configuration.port')"
/>
<openwb-base-number-input
title="Modbus ID"
required
:model-value="device.configuration.modbus_id"
min="1"
max="255"
@update:model-value="updateConfiguration($event, 'configuration.modbus_id')"
/>
</div>
</template>

<script>
import DeviceConfigMixin from "../../DeviceConfigMixin.vue";

export default {
name: "DeviceAlgodue",
mixins: [DeviceConfigMixin],
};
</script>