Nuki: Update to new interface definition

master
Michael Zanetti 2022-08-08 12:29:46 +02:00
parent 860fbac0e8
commit f23a4409fc
2 changed files with 4 additions and 4 deletions

View File

@ -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);
} }

View File

@ -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"
}, },
{ {