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