Skip to content

Commit

Permalink
Only optionally log condition flow card checking
Browse files Browse the repository at this point in the history
  • Loading branch information
EDelsman committed Apr 18, 2021
1 parent 8fbab2b commit 5696374
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/genericdevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,17 @@ class MotionDeviceGeneric extends Homey.Device {
let open = this.hasCapability('windowcoverings_set')
? (this.getCapabilityValue('windowcoverings_set') > 0.95)
: (this.getCapabilityValue('windowcoverings_state') == 'up');
this.log(this.getData().mac, 'check fully Opened', open);
if (this.mdriver.verbose)
this.log(this.getData().mac, 'check fully Opened', open);
return open;
}

async onFullyClosedCondition(args, state) {
let open = this.hasCapability('windowcoverings_set')
? (this.getCapabilityValue('windowcoverings_set') < 0.05)
: (this.getCapabilityValue('windowcoverings_state') == 'down');
this.log(this.getData().mac, 'check fully Closed', open);
if (this.mdriver.verbose)
this.log(this.getData().mac, 'check fully Closed', open);
return open;
}

Expand Down

0 comments on commit 5696374

Please sign in to comment.