|
| 1 | +<template> |
| 2 | + <div class="device-studer-inverter"> |
| 3 | + <openwb-base-heading> |
| 4 | + Einstellungen für Studer Wechselrichter |
| 5 | + <span class="small">(Modul: {{ $options.name }})</span> |
| 6 | + </openwb-base-heading> |
| 7 | + <openwb-base-button-group-input |
| 8 | + title="Typ der MPPT Solarladeregler" |
| 9 | + :buttons="[ |
| 10 | + { buttonValue: 'VT', text: 'VT' }, |
| 11 | + { buttonValue: 'VS', text: 'VS' }, |
| 12 | + ]" |
| 13 | + :model-value="configuration.vc_type" |
| 14 | + @update:model-value=" |
| 15 | + updateConfiguration($event, 'configuration.vc_type') |
| 16 | + " |
| 17 | + > |
| 18 | + <template #help>Hilfetext</template> |
| 19 | + </openwb-base-button-group-input> |
| 20 | + <openwb-base-number-input |
| 21 | + title="Anzahl MPPT Solarladeregler" |
| 22 | + :model-value="configuration.vc_count" |
| 23 | + min="1" |
| 24 | + max="9" |
| 25 | + @update:model-value=" |
| 26 | + updateConfiguration($event, 'configuration.vc_count') |
| 27 | + " |
| 28 | + /> |
| 29 | + </div> |
| 30 | +</template> |
| 31 | + |
| 32 | +<script> |
| 33 | +export default { |
| 34 | + name: "DeviceStuderInverter", |
| 35 | + emits: ["update:configuration"], |
| 36 | + props: { |
| 37 | + configuration: { type: Object, required: true }, |
| 38 | + deviceId: { default: undefined }, |
| 39 | + componentId: { required: true }, |
| 40 | + }, |
| 41 | + methods: { |
| 42 | + updateConfiguration(event, path = undefined) { |
| 43 | + this.$emit("update:configuration", { value: event, object: path }); |
| 44 | + }, |
| 45 | + }, |
| 46 | +}; |
| 47 | +</script> |
0 commit comments