From 547740053937d00f5b9023cba8aa143b707a01f5 Mon Sep 17 00:00:00 2001 From: Cornelius Suermann Date: Sat, 6 Jan 2024 12:49:07 +0100 Subject: [PATCH] add INVENTORY_LEVEL_SENSOR --- endpointTemplates.ts | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/endpointTemplates.ts b/endpointTemplates.ts index 5d50e54..343e107 100644 --- a/endpointTemplates.ts +++ b/endpointTemplates.ts @@ -896,6 +896,74 @@ export default function (asRetrievable: boolean) { }, ], }, + INVENTORY_LEVEL_SENSOR: { + endpointId: '', + manufacturerName: 'virtual smart home', + description: 'virtual inventory level sensor', + friendlyName: '', + cookie: {}, + additionalAttributes: { + manufacturer: 'virtual smart home', + model: 'virtual smart home', + serialNumber: '0000000', + firmwareVersion: '1.0.0', + softwareVersion: '1.0.0', + customIdentifier: '0000000', + }, + displayCategories: ['OTHER'], + capabilities: [ + { + type: 'AlexaInterface', + interface: 'Alexa.InventoryLevelSensor', + instance: 'Default', + version: '3', + properties: { + supported: [ + { + name: 'level', + }, + ], + retrievable: asRetrievable, + proactivelyReported: true, + }, + configuration: { + measurement: { + '@type': 'Count', + }, + }, + capabilityResources: { + friendlyNames: [ + { + '@type': 'text', + value: { + text: 'Level', + locale: 'en-US', + }, + }, + ], + }, + }, + { + type: 'AlexaInterface', + interface: 'Alexa.EndpointHealth', + version: '3', + properties: { + supported: [ + { + name: 'connectivity', + }, + ], + proactivelyReported: true, + retrievable: asRetrievable, + }, + }, + { + type: 'AlexaInterface', + interface: 'Alexa', + version: '3', + }, + ], + }, LOCK: { endpointId: '', manufacturerName: 'virtual smart home',