FHEM venetian blinds - first delayed cmd gets deleted
Opened this issue · 0 comments
ctc commented
When TargetHorizontalTiltAngle and TargetPosition is send from homebridge to fhem, the first delayed cmd will be deleted.
Happens in line 2461 in index.js:
delayed: function(mapping,value,delay) {
if( !this.delayed_timers )
this.delayed_timers = {};
if( typeof delay !== 'numeric' )
delay = 1000;
if( delay < 500 )
delay = 500;
var timer = this.delayed_timers[mapping];
if( timer ) {
//this.log(this.name + ' delayed: removing old command ' + mapping.characteristic_type);
clearTimeout( timer );
}
How to avoid this or how could the clearTimeout be avoided and do not harm other use cases?