Skip to content

Commit

Permalink
add ampere pro to UI (openWB#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrsnhs authored Dec 17, 2024
1 parent 607d125 commit 4ac1312
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/components/devices/ampere/ampere/device.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<template>
<div class="device-ampere">
<openwb-base-heading> Einstellungen für Ampere Pro</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: "DeviceAmpere",
mixins: [DeviceConfigMixin],
};
</script>

0 comments on commit 4ac1312

Please sign in to comment.