Skip to content

Commit

Permalink
fix: categories of valueids #31
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Nov 27, 2020
1 parent eb6e6eb commit 8bb5936
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/ZwaveClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const {
InterviewStage,
extractFirmware
} = require('zwave-js')
const { applicationCCs } = require('@zwave-js/core')
const utils = reqlib('/lib/utils.js')
const EventEmitter = require('events')
const jsonStore = reqlib('/lib/jsonStore.js')
Expand Down Expand Up @@ -647,11 +648,13 @@ function updateValueMetadata (zwaveNode, zwaveValue, zwaveValueMeta) {
default: zwaveValueMeta.default
}

let genre = 'user'
let genre = ''

if (zwaveValue.commandClass === 112) {
if (applicationCCs[zwaveValue.commandClass]) {
genre = 'user'
} else if (zwaveValue.commandClass === 112) {
genre = 'config'
} else if (zwaveValue.commandClass >= 94) {
} else {
genre = 'system'
}

Expand Down

0 comments on commit 8bb5936

Please sign in to comment.