homebridge-garagedooropenercloud 1.2.0 → 1.2.2

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/README.md CHANGED
@@ -23,21 +23,25 @@ text
23
23
 
24
24
  ## ⚙️ Configuración
25
25
 
26
- {
27
- "accessory": "GarageDoorOpener",
28
- "name": "Garage Door",
29
- "plugin": "homebridge-garagedooropenercloud",
30
- "deviceId": "441793a44db8",
31
- "authKey": "MTAzNDxxxxx",
32
- "channel": "0",
33
- "openTime": 20,
34
- "closeTime": 20,
35
- "polling": true,
36
- "pollInterval": 30,
37
- "debug": true
38
- }
39
-
40
- text
26
+ {
27
+ "accessory": "GarageDoorOpenerCloud",
28
+ "name": "Garaje Casa",
29
+ "deviceId": "XXXXXXXXXXXX",
30
+ "authKey": "YYYYYYYYYYYY",
31
+ "channel": "0",
32
+ "cloudBaseURL": "https://shelly-38-eu.shelly.cloud/device/relay/control",
33
+ "statusCloudURL": "https://shelly-38-eu.shelly.cloud/device/status",
34
+ "statusKey": "$.data[\"input:0\"].state",
35
+ "statusValueOpen": "false",
36
+ "statusValueClosed": "true",
37
+ "openTime": 10,
38
+ "closeTime": 10,
39
+ "polling": true,
40
+ "pollInterval": 30,
41
+ "debug": false,
42
+ "manufacturer": "yago",
43
+ "model": "GarageDoorOpenerCloud"
44
+ }
41
45
 
42
46
  ### 📱 Credenciales Shelly Cloud
43
47
 
@@ -57,18 +61,6 @@ text
57
61
  | `pollInterval` | Segundos polling | `30` |
58
62
  | `debug` | Logs detallados | `false` |
59
63
 
60
- ## 🔌 Cableado Shelly 1PM
61
-
62
- Pulsador garaje:
63
- ├── L → Fase pulsador
64
- ├── N → Neutro
65
- └── O → Pulsador (Relay)
66
-
67
- Sensor reed (SW + L):
68
- ├── SW → Terminal reed
69
- └── L → Terminal reed
70
-
71
- text
72
64
 
73
65
  ## 🎯 Funcionamiento
74
66
 
@@ -77,7 +69,6 @@ Estado → POST /device/status → input:0.state
77
69
  false → 🚪 ABIERTA
78
70
  true → 🚪 CERRADA
79
71
 
80
- text
81
72
 
82
73
  ## 🏠 Estados HomeKit
83
74
 
@@ -18,7 +18,7 @@
18
18
  "description": "Device ID from Shelly App → Settings → Cloud → Advanced"
19
19
  },
20
20
  "authKey": {
21
- "title": "Shelly Auth Key",
21
+ "title": "Shelly Auth Key",
22
22
  "type": "string",
23
23
  "required": true,
24
24
  "description": "Auth Key from Shelly App → Profile"
@@ -37,19 +37,14 @@
37
37
  },
38
38
  "statusCloudURL": {
39
39
  "title": "Cloud Status URL",
40
- "type": "string",
40
+ "type": "string",
41
41
  "default": "https://shelly-38-eu.shelly.cloud/device/status",
42
42
  "description": "Shelly Cloud status endpoint"
43
43
  },
44
- "statusKey": {
45
- "title": "Status Key",
46
- "type": "string",
47
- "default": "$.data["input:0"].state",
48
- "description": "JSONPath for door sensor"
49
- },
44
+ "statusKey": {
50
45
  "title": "Status Key",
51
46
  "type": "string",
52
- "default": "$..["input:0"].state
47
+ "default": "$.data.device_status.relays[0].ison",
53
48
  "description": "JSONPath for door sensor (input:0.state for Shelly)"
54
49
  },
55
50
  "statusValueOpen": {
@@ -60,7 +55,7 @@
60
55
  },
61
56
  "statusValueClosed": {
62
57
  "title": "Closed Status Value",
63
- "type": "string",
58
+ "type": "string",
64
59
  "default": "true",
65
60
  "description": "Sensor value when door is CLOSED"
66
61
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-garagedooropenercloud",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Homebridge plugin for garage door opener using Shelly Cloud API",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -1,18 +0,0 @@
1
- {
2
- "accessory": "GarageDoorOpener",
3
- "name": "Garage Door",
4
- "plugin": "homebridge-garagedooropenercloud",
5
- "cloudBaseURL": "https://shelly-38-eu.shelly.cloud/device/relay/control",
6
- "statusCloudURL": "https://shelly-38-eu.shelly.cloud/device/status",
7
- "deviceId": "YOUR_DEVICE_ID",
8
- "authKey": "YOUR_AUTH_KEY",
9
- "channel": "0",
10
- "statusKey": "$.data.device_status.input:0.state",
11
- "statusValueOpen": "false",
12
- "statusValueClosed": "true",
13
- "openTime": 20,
14
- "closeTime": 20,
15
- "polling": true,
16
- "pollInterval": 30,
17
- "debug": true
18
- }