@homebridge-wyze-node24/homebridge-wyze-node24 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -497,7 +497,14 @@ module.exports = class WyzeCamera extends WyzeAccessory {
|
|
|
497
497
|
this.plugin.log(
|
|
498
498
|
`[Camera Garage Door] Setting Target State for ${this.mac} (${this.display_name}) to ${value}`
|
|
499
499
|
);
|
|
500
|
-
|
|
500
|
+
try {
|
|
501
|
+
await this.plugin.client.garageDoor(this.mac, this.product_model);
|
|
502
|
+
} catch (error) {
|
|
503
|
+
this.plugin.log.error(
|
|
504
|
+
`[Camera Garage Door] Error setting target state for ${this.mac}: ${error.message}`
|
|
505
|
+
);
|
|
506
|
+
throw new this.plugin.api.hap.HapStatusError(this.plugin.api.hap.HAPStatus.SERVICE_COMMUNICATION_FAILURE);
|
|
507
|
+
}
|
|
501
508
|
if (value == 0) {
|
|
502
509
|
this.garageDoorService
|
|
503
510
|
.getCharacteristic(Characteristic.CurrentDoorState)
|