Skip to content

Commit

Permalink
functions filter (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Sep 29, 2018
1 parent 9b073d0 commit 2f3ec31
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nodes/ccu-set-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ module.exports = function (RED) {
}
}

if (this.functions) {
if (!this.ccu.channelFunctions[address] || !this.ccu.channelFunctions[address].includes(this.functions)) {
return;
}
}

const psKey = this.ccu.paramsetName(iface, channel, 'VALUES');

if (this.ccu.paramsetDescriptions[psKey] && Object.keys(this.ccu.paramsetDescriptions[psKey]).includes(this.datapoint)) {
Expand Down

0 comments on commit 2f3ec31

Please sign in to comment.