Skip to content

Commit

Permalink
add INVENTORY_LEVEL_SENSOR
Browse files Browse the repository at this point in the history
  • Loading branch information
csuermann committed Jan 6, 2024
1 parent 432b8e4 commit 5477400
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions endpointTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,74 @@ export default function (asRetrievable: boolean) {
},
],
},
INVENTORY_LEVEL_SENSOR: {
endpointId: '<device.id>',
manufacturerName: 'virtual smart home',
description: 'virtual inventory level sensor',
friendlyName: '<device.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: '<device.id>',
manufacturerName: 'virtual smart home',
Expand Down

0 comments on commit 5477400

Please sign in to comment.