import QtQuick 1.1 import com.victron.velib 1.0 import "utils.js" as Utils MbPage { id: root property string bindPrefix function bind(path) { return Utils.path(bindPrefix, path) } MbItemText { text: qsTr("No warnings") show: _visibleCount === 0 style.isCurrentItem: true } model: VisualItemModel { id: warnings MbItemOptions { description: qsTr("BMS temperature high") bind: root.bind("/WarningFlags/TaM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("TaM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Battery temperature high") bind: root.bind("/WarningFlags/TbM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("TbM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Bus voltage low") bind: root.bind("/WarningFlags/VBm1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("VBm1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Bus voltage high") bind: root.bind("/WarningFlags/VBM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("VBM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Discharge current high") bind: root.bind("/WarningFlags/IDM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("IDM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("String voltage high") bind: root.bind("/WarningFlags/vsM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("vsM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Charge current high") bind: root.bind("/WarningFlags/iCM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("iCM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Discharge current high") bind: root.bind("/WarningFlags/iDM1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("iDM1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("String voltages unbalanced") bind: root.bind("/WarningFlags/MID1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("MID1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Not enough charging power on bus") bind: root.bind("/WarningFlags/BLPW") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("BLPW"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("String SOC low") bind: root.bind("/WarningFlags/Ah_W") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("Ah_W"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Midpoint wiring problem") bind: root.bind("/WarningFlags/MPMM") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("MPMM"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("TCMM Please enter a description!!!") bind: root.bind("/WarningFlags/TCMM") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("TCMM"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Temperature difference between strings high") bind: root.bind("/WarningFlags/TCdi") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("TCdi"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("WMTO Please insert description!!!") bind: root.bind("/WarningFlags/WMTO") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("WMTO"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Broken cells detected") bind: root.bind("/WarningFlags/CELL1") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("CELL1"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Warning_Bit44") bind: root.bind("/WarningFlags/bit44") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("Warning44"); value: true } ] show: item.value === true } MbItemOptions { description: qsTr("Warning_Bit47") bind: root.bind("/WarningFlags/bit47WarningDummy") readonly: true possibleValues: [ MbOption { description: qsTr("Ok"); value: false }, MbOption { description: qsTr("Warning47"); value: true } ] show: item.value === true } } }