Skip to content

Commit

Permalink
throttle boost propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Jan 12, 2019
1 parent fba2f7c commit dc76cbe
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions homematic-devices/hm-tc-it-wm-w-eu.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,14 @@ module.exports = class HmTcItWmWEu extends Accessory {
dp = 'AUTO_MODE';
value = true;
}
this.ccuSetValue(config.iface + '.' + config.description.ADDRESS + ':2.' + dp, value, callback);
links.forEach(link => {
const linkedDevice = link.split(':')[0];
this.ccuSetValue(config.iface + '.' + linkedDevice + ':4.' + dp, value);
this.ccuSetValue(config.iface + '.' + config.description.ADDRESS + ':2.' + dp, value, res => {
links.forEach((link, i) => {
const linkedDevice = link.split(':')[0];
setTimeout(() => {
this.ccuSetValue(config.iface + '.' + linkedDevice + ':4.' + dp, value);
}, i * 3000);
});
callback(res);
});
})
.get('On', config.deviceAddress + ':2.CONTROL_MODE', value => {
Expand Down

0 comments on commit dc76cbe

Please sign in to comment.