zwave: publish

This commit is contained in:
Koushik Dutta
2023-04-12 09:47:05 -07:00
parent 386ea9a98a
commit be43d0c017
3 changed files with 566 additions and 422 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/zwave",
"version": "0.0.56",
"version": "0.1.1",
"description": "Z-Wave USB Controller for Scrypted",
"author": "Scrypted",
"license": "Apache",
@@ -37,9 +37,9 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/node": "^16.7.1"
"@types/node": "^18.15.11"
},
"optionalDependencies": {
"zwave-js": "^10.3.0"
"zwave-js": "^10.14.1"
}
}

View File

@@ -341,6 +341,9 @@ export class ZwaveControllerProvider extends ScryptedDeviceBase implements Devic
return this.devices[nativeId];
}
async releaseDevice(id: string, nativeId: string): Promise<void> {
}
_addType(scryptedDevice: ZwaveDeviceBase, instance: Endpoint, type: CommandClassInfo, valueId: ValueID) {
var interfaces = type.getInterfaces(instance.getNodeUnsafe(), valueId);
if (!interfaces) {