homebridge-homeassistant-garagedoor 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -67,7 +67,10 @@ class HomeAssistantGarageDoor {
67
67
  );
68
68
 
69
69
  const haState = response.data.state;
70
- const doorState = haState === 'on' ? 'OPEN' : 'CLOSED';
70
+ this.log(`[${this.name}] Poll: ALWAYS CLOSED (forced)`);
71
+ this.currentState = 'CLOSED';
72
+ this.service.setCharacteristic(this.Characteristic.CurrentDoorState, this.Characteristic.CurrentDoorState.CLOSED);
73
+ return;
71
74
 
72
75
  if (this.currentState !== doorState) {
73
76
  this.currentState = doorState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-homeassistant-garagedoor",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "displayName": "HA Garage Door",
5
5
  "description": "Homebridge plugin to control Home Assistant switches as Garage Doors",
6
6
  "main": "index.js",