From 014c27c59c5bd5e2828a1adf72b022b0e4631025 Mon Sep 17 00:00:00 2001 From: Martin Bosma Date: Wed, 18 Dec 2024 11:49:36 +0100 Subject: [PATCH 1/3] PageVebus: hide SoC and active input for inverters --- pages/vebusdevice/PageVeBus.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/vebusdevice/PageVeBus.qml b/pages/vebusdevice/PageVeBus.qml index c0ee2339e..373ee4d49 100644 --- a/pages/vebusdevice/PageVeBus.qml +++ b/pages/vebusdevice/PageVeBus.qml @@ -226,6 +226,7 @@ Page { } ListQuantity { + allowed: defaultAllowed && root.isMulti dataItem.uid: root.bindPrefix + "/Soc" text: CommonWords.state_of_charge unit:VenusOS.Units_Percentage @@ -238,6 +239,7 @@ Page { } ListActiveAcInput { + allowed: defaultAllowed && root.isMulti bindPrefix: root.bindPrefix } From aae751e3a994fa939193b78e55e9448cd470b710 Mon Sep 17 00:00:00 2001 From: Martin Bosma Date: Wed, 18 Dec 2024 11:50:02 +0100 Subject: [PATCH 2/3] PageVebusAdvanced: hide equalization for inverters --- pages/vebusdevice/PageVeBusAdvanced.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/vebusdevice/PageVeBusAdvanced.qml b/pages/vebusdevice/PageVeBusAdvanced.qml index 08baea3ae..61d3ddb65 100644 --- a/pages/vebusdevice/PageVeBusAdvanced.qml +++ b/pages/vebusdevice/PageVeBusAdvanced.qml @@ -116,6 +116,7 @@ Page { return qsTrId("vebus_device_press_to_start") } enabled: !isNaN(setChargerState.value) && !isNaN(vebusSubState.value) && !startTimer.running && !interruptTimer.running + allowed: defaultAllowed && root.isMulti onClicked: { if (firmwareVersion.value < 0x400) { From 260c90b95f24e911fd8c4e033a507d16cd54b8c7 Mon Sep 17 00:00:00 2001 From: Martin Bosma Date: Wed, 18 Dec 2024 11:50:38 +0100 Subject: [PATCH 3/3] VeBusAcIODisplay: hide phase data for inverters --- components/VeBusAcIODisplay.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/VeBusAcIODisplay.qml b/components/VeBusAcIODisplay.qml index dd6f68e96..c2d87b63d 100644 --- a/components/VeBusAcIODisplay.qml +++ b/components/VeBusAcIODisplay.qml @@ -12,7 +12,8 @@ Loader { property string serviceUid width: parent ? parent.width : 0 - sourceComponent: numberOfPhases.value === 1 ? singlePhaseAcInOut + sourceComponent: numberOfAcInputs.value === 0 ? null + : numberOfPhases.value === 1 ? singlePhaseAcInOut : numberOfPhases.value === 3 ? threePhaseTables : null VeQuickItem { @@ -20,6 +21,11 @@ Loader { uid: root.serviceUid + "/Ac/NumberOfPhases" } + VeQuickItem { + id: numberOfAcInputs + uid: root.serviceUid + "/Ac/NumberOfAcInputs" + } + Component { id: singlePhaseAcInOut