remove test actions
This commit is contained in:
parent
00a5188d05
commit
19bc5f7845
@ -217,22 +217,23 @@ void DevicePluginAwattar::guhTimer()
|
||||
DeviceManager::DeviceError DevicePluginAwattar::executeAction(Device *device, const Action &action)
|
||||
{
|
||||
Q_UNUSED(device)
|
||||
Q_UNUSED(action)
|
||||
|
||||
if (action.actionTypeId() == ledPowerActionTypeId) {
|
||||
foreach (HeatPump *pump, m_heatPumps) {
|
||||
if (!pump->reachable())
|
||||
return DeviceManager::DeviceErrorHardwareNotAvailable;
|
||||
// if (action.actionTypeId() == ledPowerActionTypeId) {
|
||||
// foreach (HeatPump *pump, m_heatPumps) {
|
||||
// if (!pump->reachable())
|
||||
// return DeviceManager::DeviceErrorHardwareNotAvailable;
|
||||
|
||||
pump->setLed(action.param("led power").value().toBool());
|
||||
}
|
||||
} else if (action.actionTypeId() == sgModeActionTypeId) {
|
||||
foreach (HeatPump *pump, m_heatPumps) {
|
||||
if (!pump->reachable())
|
||||
return DeviceManager::DeviceErrorHardwareNotAvailable;
|
||||
// pump->setLed(action.param("led power").value().toBool());
|
||||
// }
|
||||
// } else if (action.actionTypeId() == sgModeActionTypeId) {
|
||||
// foreach (HeatPump *pump, m_heatPumps) {
|
||||
// if (!pump->reachable())
|
||||
// return DeviceManager::DeviceErrorHardwareNotAvailable;
|
||||
|
||||
pump->setSgMode(action.param("sg-mode").value().toInt());
|
||||
}
|
||||
}
|
||||
// pump->setSgMode(action.param("sg-mode").value().toInt());
|
||||
// }
|
||||
// }
|
||||
|
||||
return DeviceManager::DeviceErrorNoError;
|
||||
}
|
||||
|
||||
@ -114,37 +114,6 @@
|
||||
],
|
||||
"defaultValue": "0 - Invalid"
|
||||
}
|
||||
],
|
||||
"actionTypes": [
|
||||
{
|
||||
"id": "5be2f57f-a22d-4766-856a-a31481bcf6d6",
|
||||
"idName": "ledPower",
|
||||
"name": "set led power",
|
||||
"paramTypes": [
|
||||
{
|
||||
"name": "power",
|
||||
"type": "bool"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "03af6639-a815-4291-abbb-26fc81cdf740",
|
||||
"idName": "sgMode",
|
||||
"name": "set sg-mode",
|
||||
"paramTypes": [
|
||||
{
|
||||
"name": "sg-mode",
|
||||
"type": "QString",
|
||||
"defaultValue": "1",
|
||||
"allowedValues": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user