import QtQuick 1.1 import com.victron.velib 1.0 import "utils.js" as Utils MbPage { title: qsTr("Switching") property string bindPrefix: "com.victronenergy.settings" property VBusItem relay1Item: VBusItem { bind: "com.victronenergy.system/Relay/1/State" } property bool hasRelay1: relay1Item.valid model: VisualItemModel { MbSwitch { id: manualSwitch1 name: qsTr("Left Side Lights On") bind: "com.victronenergy.system/Relay/1/State" show: hasRelay1 } MbSwitch { id: manualSwitch2 name: qsTr("Right Side Lights On") bind: "com.victronenergy.system/Relay/2/State" show: hasRelay2 } MbSwitch { id: manualSwitch3 name: qsTr("Rear Lights On") bind: "com.victronenergy.system/Relay/3/State" show: hasRelay3 } MbSwitch { id: manualSwitch4 name: qsTr("Relay 5") bind: "com.victronenergy.system/Relay/4/State" show: hasRelay4 } MbSwitch { id: manualSwitch5 name: qsTr("Relay 6") bind: "com.victronenergy.system/Relay/5/State" show: hasRelay5 } MbSwitch { id: manualSwitch6 name: qsTr("Relay 7") bind: "com.victronenergy.system/Relay/6/State" show: hasRelay6 } MbSwitch { id: manualSwitch7 name: qsTr("Relay 8") bind: "com.victronenergy.system/Relay/7/State" show: hasRelay7 } } }