homebridge-homeassistant-garagedoor 1.1.1 → 1.1.3

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 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -97,6 +97,10 @@ class HomeAssistantGarageDoor {
97
97
  this.log(`[${this.name}] Target state: ${newState}`);
98
98
  this.targetState = newState;
99
99
  this.sendHACommand(newState);
100
+ this.service.setCharacteristic(this.Characteristic.CurrentDoorState,
101
+ newState === 'OPEN' ?
102
+ this.Characteristic.CurrentDoorState.OPEN :
103
+ this.Characteristic.CurrentDoorState.CLOSED);
100
104
  callback();
101
105
  });
102
106
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-homeassistant-garagedoor",
3
- "version": "1.1.1",
4
- "displayName": "Home Assistant Garage Door",
3
+ "version": "1.1.3",
4
+ "displayName": "HA Garage Door",
5
5
  "description": "Homebridge plugin to control Home Assistant switches as Garage Doors",
6
6
  "main": "index.js",
7
7
  "keywords": [
@@ -17,7 +17,7 @@
17
17
  "axios": "^1.6.0"
18
18
  },
19
19
  "homebridge": {
20
- "pluginAlias": "Home Assistant Garage Door",
20
+ "pluginAlias": "HomeAssistantGarageDoor",
21
21
  "pluginConfigSchema": {
22
22
  "$schema": "http://json-schema.org/draft-07/schema#",
23
23
  "type": "object",