From 4454ab5b0d6556085e3cef147cc4097eb586d179 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Tue, 2 Oct 2018 20:08:19 +0200 Subject: [PATCH] include channel type blind in working detection workaround --- nodes/ccu-connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/ccu-connection.js b/nodes/ccu-connection.js index aaba241..89d58e3 100644 --- a/nodes/ccu-connection.js +++ b/nodes/ccu-connection.js @@ -1527,14 +1527,14 @@ module.exports = function (RED) { this.logger.debug('publishEvent', JSON.stringify(params)); const msg = this.createMessage(iface, channel, datapoint, payload, {cache: false, working, direction}); - if (msg.channelType === 'DIMMER' && msg.datapoint === 'LEVEL' && !working) { + if (['DIMMER', 'BLIND'].includes(msg.channelType) && msg.datapoint === 'LEVEL' && !working) { clearTimeout(this.workingTimeout); this.workingTimeout = setTimeout(() => { const datapointName = iface + '.' + channel + '.'; msg.working = this.values[datapointName + 'WORKING'] && this.values[datapointName + 'WORKING'].working; msg.direction = this.values[datapointName + 'DIRECTION'] && this.values[datapointName + 'DIRECTION'].direction; this.callCallbacks(msg); - }, 250); + }, 300); } else { this.callCallbacks(msg); }