Merge PR #795: Small ventilation interfaces fixes
This commit is contained in:
commit
cf391fea5c
@ -292,6 +292,7 @@ Interfaces::Interfaces(QObject *parent) : QAbstractListModel(parent)
|
|||||||
addStateType("thermostat", "targetTemperature", QVariant::Double, true, tr("Target temperature"), tr("Target temperature changed"), tr("Set target temperature"));
|
addStateType("thermostat", "targetTemperature", QVariant::Double, true, tr("Target temperature"), tr("Target temperature changed"), tr("Set target temperature"));
|
||||||
|
|
||||||
addInterface("ventilation", tr("Ventilation"), {"power"});
|
addInterface("ventilation", tr("Ventilation"), {"power"});
|
||||||
|
addStateType("ventilation", "flowRate", QVariant::Int, true, tr("Air flow rate"), tr("Air flow rate changed"), tr("Set air flow rate"));
|
||||||
|
|
||||||
addInterface("volumecontroller", tr("Speakers"));
|
addInterface("volumecontroller", tr("Speakers"));
|
||||||
addStateType("volumecontroller", "mute", QVariant::Bool, true, tr("Mute"), tr("Muted"), tr("Mute"));
|
addStateType("volumecontroller", "mute", QVariant::Bool, true, tr("Mute"), tr("Muted"), tr("Mute"));
|
||||||
|
|||||||
@ -192,7 +192,7 @@
|
|||||||
<file>ui/components/SettingsPageSectionHeader.qml</file>
|
<file>ui/components/SettingsPageSectionHeader.qml</file>
|
||||||
<file>ui/grouping/GroupInterfacesPage.qml</file>
|
<file>ui/grouping/GroupInterfacesPage.qml</file>
|
||||||
<file>ui/connection/CertificateErrorDialog.qml</file>
|
<file>ui/connection/CertificateErrorDialog.qml</file>
|
||||||
<file>ui/devicepages/VentilationDevicePage.qml</file>
|
<file>ui/devicepages/VentilationThingPage.qml</file>
|
||||||
<file>ui/thingconfiguration/ThingClassDetailsPage.qml</file>
|
<file>ui/thingconfiguration/ThingClassDetailsPage.qml</file>
|
||||||
<file>ui/components/ClosablesControlLarge.qml</file>
|
<file>ui/components/ClosablesControlLarge.qml</file>
|
||||||
<file>ui/devicepages/BarcodeScannerThingPage.qml</file>
|
<file>ui/devicepages/BarcodeScannerThingPage.qml</file>
|
||||||
|
|||||||
@ -62,7 +62,7 @@ Item {
|
|||||||
} else if (interfaceList.indexOf("irrigation") >= 0) {
|
} else if (interfaceList.indexOf("irrigation") >= 0) {
|
||||||
page = "IrrigationDevicePage.qml";
|
page = "IrrigationDevicePage.qml";
|
||||||
} else if (interfaceList.indexOf("ventilation") >= 0) {
|
} else if (interfaceList.indexOf("ventilation") >= 0) {
|
||||||
page = "VentilationDevicePage.qml";
|
page = "VentilationThingPage.qml";
|
||||||
} else if (interfaceList.indexOf("barcodescanner") >= 0) {
|
} else if (interfaceList.indexOf("barcodescanner") >= 0) {
|
||||||
page = "BarcodeScannerThingPage.qml";
|
page = "BarcodeScannerThingPage.qml";
|
||||||
} else if (interfaceList.indexOf("cleaningrobot") >= 0) {
|
} else if (interfaceList.indexOf("cleaningrobot") >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user