Nuki: Update to new interface definition
parent
860fbac0e8
commit
f23a4409fc
|
|
@ -232,12 +232,12 @@ void IntegrationPluginNuki::executeAction(ThingActionInfo *info)
|
||||||
return info->finish(Thing::ThingErrorHardwareNotAvailable);
|
return info->finish(Thing::ThingErrorHardwareNotAvailable);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action.actionTypeId() == nukiCloseActionTypeId) {
|
if (action.actionTypeId() == nukiLockActionTypeId) {
|
||||||
if (!nuki->executeDeviceAction(Nuki::NukiActionLock, info)) {
|
if (!nuki->executeDeviceAction(Nuki::NukiActionLock, info)) {
|
||||||
return info->finish(Thing::ThingErrorThingInUse);
|
return info->finish(Thing::ThingErrorThingInUse);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else if (action.actionTypeId() == nukiOpenActionTypeId) {
|
} else if (action.actionTypeId() == nukiUnlockActionTypeId) {
|
||||||
if (!nuki->executeDeviceAction(Nuki::NukiActionUnlock, info)) {
|
if (!nuki->executeDeviceAction(Nuki::NukiActionUnlock, info)) {
|
||||||
return info->finish(Thing::ThingErrorThingInUse);
|
return info->finish(Thing::ThingErrorThingInUse);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -131,12 +131,12 @@
|
||||||
"actionTypes": [
|
"actionTypes": [
|
||||||
{
|
{
|
||||||
"id": "55d25891-89b9-4a9f-a2b3-774eccf30183",
|
"id": "55d25891-89b9-4a9f-a2b3-774eccf30183",
|
||||||
"name": "close",
|
"name": "lock",
|
||||||
"displayName": "Lock"
|
"displayName": "Lock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "76e96738-5336-4b9a-87f7-1822307b5a39",
|
"id": "76e96738-5336-4b9a-87f7-1822307b5a39",
|
||||||
"name": "open",
|
"name": "unlock",
|
||||||
"displayName": "Unlock"
|
"displayName": "Unlock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue