corrected rlt and mtt ranges
parent
9070a2b878
commit
475fde87cf
|
|
@ -82,7 +82,7 @@ void IntegrationPluginGaradget::postSetupThing(Thing *thing)
|
|||
}
|
||||
name = name + "/command";
|
||||
qCDebug(dcGaradget) << "inside m_pluginTimer with" << name ;
|
||||
uint updatetime = 10;
|
||||
uint updatetime = 30;
|
||||
m_pluginTimer = hardwareManager()->pluginTimerManager()->registerTimer(updatetime);
|
||||
connect(m_pluginTimer, &PluginTimer::timeout, this, [=](){
|
||||
foreach (Thing *thing, myThings()) {
|
||||
|
|
@ -150,7 +150,7 @@ void IntegrationPluginGaradget::executeAction(ThingActionInfo *info)
|
|||
}
|
||||
}
|
||||
if (action.actionTypeId() == garadgetMttActionTypeId) {
|
||||
if ( (action.paramValue( garadgetMttActionMttParamTypeId).toInt() > 0) and (action.paramValue( garadgetMttActionMttParamTypeId).toInt() < 121) ){
|
||||
if ( (action.paramValue( garadgetMttActionMttParamTypeId).toInt() > 4) and (action.paramValue( garadgetMttActionMttParamTypeId).toInt() < 61) ){
|
||||
actint = action.paramValue( garadgetMttActionMttParamTypeId).toInt() * 1000;
|
||||
conftype = "mtt";
|
||||
} else {
|
||||
|
|
@ -160,8 +160,8 @@ void IntegrationPluginGaradget::executeAction(ThingActionInfo *info)
|
|||
}
|
||||
if (action.actionTypeId() == garadgetRltActionTypeId) {
|
||||
if ( (action.paramValue( garadgetRltActionRltParamTypeId).toInt() > 9) and (action.paramValue( garadgetRltActionRltParamTypeId).toInt() < 2001) ){
|
||||
actint = action.paramValue(garadgetRltActionRltParamTypeId).toInt() * 1000;
|
||||
conftype = "mtt";
|
||||
actint = action.paramValue(garadgetRltActionRltParamTypeId).toInt();
|
||||
conftype = "rlt";
|
||||
} else {
|
||||
name = name + "/command";
|
||||
act = "get-config";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"id": "e808b8ae-7608-41ce-8444-892f0648a4d3",
|
||||
"setupMethod": "JustAdd",
|
||||
"createMethods": ["User"],
|
||||
"interfaces": ["statefulgaragedoor", "inputtrigger", "wirelessconnectable"],
|
||||
"interfaces": ["statefulgaragedoor", "wirelessconnectable"],
|
||||
"paramTypes": [
|
||||
{
|
||||
"id": "54a11a17-fc37-4316-891f-001c55e38220",
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
{
|
||||
"id": "acda9268-4663-46d1-a409-231d648e6fc8" ,
|
||||
"name": "mtt",
|
||||
"displayName": "Door Moving Time in 1-120 Sec",
|
||||
"displayName": "Door Moving Time in 5-60 Sec",
|
||||
"displayNameEvent": "Door Moving Time changed",
|
||||
"displayNameAction": "Set Door Moving Time value",
|
||||
"type": "int",
|
||||
|
|
|
|||
Loading…
Reference in New Issue