Skip to content

Commit

Permalink
create initial values object of PRESS_* datapoints but don't call cal…
Browse files Browse the repository at this point in the history
…lbacks (#76)
  • Loading branch information
hobbyquaker committed Apr 13, 2019
1 parent f1116c6 commit 6ba0778
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nodes/ccu-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,10 +673,12 @@ module.exports = function (RED) {
res.forEach(dp => {
const ts = (new Date(dp.ts + ' UTC+' + (d.getTimezoneOffset() / -60))).getTime();
const [iface, channel, datapoint] = dp.name.split('.');
if (this.enabledIfaces.includes(iface) && datapoint && !datapoint.startsWith('PRESS_')) {
if (this.enabledIfaces.includes(iface) && datapoint) {
const msg = this.createMessage(iface, channel, datapoint, dp.value, {cache: true, change: false, working: false, ts, lc: ts});
this.values[msg.datapointName] = msg;
this.callCallbacks(msg);
if (!datapoint.startsWith('PRESS_')) {
this.callCallbacks(msg);
}
}
});
this.cachedValuesReceived = true;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-ccu",
"version": "2.0.10",
"version": "2.0.11",
"description": "Node-RED Nodes for the Homematic CCU",
"repository": "https://github.com/rdmtc/node-red-contrib-ccu",
"keywords": [
Expand Down

0 comments on commit 6ba0778

Please sign in to comment.