homebridge-syntex-webhooks
Advanced tools
Comparing version 2.3.8 to 2.3.9-b1
{ | ||
"name": "homebridge-syntex-webhooks", | ||
"version": "2.3.8", | ||
"version": "2.3.9-b1", | ||
"description": "A webhook plugin for HTTP devices", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"color-convert": "^1.5.0", | ||
"homebridge-syntex-dynamic-platform": "1.0.8-b42", | ||
"homebridge-syntex-dynamic-platform": "1.0.8-b43", | ||
"json-fs-store": "^1.0.1" | ||
@@ -18,0 +18,0 @@ }, |
@@ -36,3 +36,3 @@ const { BlindService } = require('homebridge-syntex-dynamic-platform'); | ||
super.setTargetPosition(value, () => callback(this.updatePosition(value)), true); | ||
super.setTargetPosition(value, () => callback(this.updateTarget(value)), true); | ||
@@ -55,20 +55,20 @@ this.AutomationSystem.LogikEngine.runAutomation(this, { value }); | ||
{ | ||
callback(null, this.position); | ||
callback(null, this.mode); | ||
} | ||
updatePosition(value) | ||
updateTarget(value) | ||
{ | ||
this.position = value > 0 ? this.Characteristic.PositionState.INCREASING : this.Characteristic.PositionState.DECREASING; | ||
this.mode = value > 0 ? this.Characteristic.PositionState.INCREASING : this.Characteristic.PositionState.DECREASING; | ||
this.service.getCharacteristic(this.Characteristic.TargetPosition).updateValue(value); | ||
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.position); | ||
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.mode); | ||
super.setPositionState(this.position, () => setTimeout(() => { | ||
super.setPositionState(this.mode, () => setTimeout(() => { | ||
this.position = this.Characteristic.PositionState.STOPPED; | ||
this.mode = this.Characteristic.PositionState.STOPPED; | ||
this.service.getCharacteristic(this.Characteristic.CurrentPosition).updateValue(this.value); | ||
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.position); | ||
this.service.getCharacteristic(this.Characteristic.PositionState).updateValue(this.mode); | ||
super.setPositionState(this.position, () => {}); | ||
super.setPositionState(this.mode, () => {}); | ||
@@ -75,0 +75,0 @@ }, value > 0 ? this.timeDelayUp : this.timeDelayDown)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54640
1
+ Addedhomebridge-syntex-dynamic-platform@1.0.8-b43(transitive)
- Removedhomebridge-syntex-dynamic-platform@1.0.8-b42(transitive)