@boozilla/homebridge-shome 1.0.10 → 1.0.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/README.md +10 -8
- package/config.schema.json +7 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,8 @@ Add a new platform to the `platforms` array in your Homebridge `config.json` fil
|
|
|
36
36
|
"name": "sHome",
|
|
37
37
|
"username": "YOUR_SHOME_USERNAME",
|
|
38
38
|
"password": "YOUR_SHOME_PASSWORD",
|
|
39
|
-
"deviceId": "YOUR_MOBILE_DEVICE_ID"
|
|
39
|
+
"deviceId": "YOUR_MOBILE_DEVICE_ID",
|
|
40
|
+
"pollingInterval": 3000
|
|
40
41
|
}
|
|
41
42
|
]
|
|
42
43
|
}
|
|
@@ -44,13 +45,14 @@ Add a new platform to the `platforms` array in your Homebridge `config.json` fil
|
|
|
44
45
|
|
|
45
46
|
### Configuration Fields
|
|
46
47
|
|
|
47
|
-
| Key
|
|
48
|
-
|
|
49
|
-
| `platform`
|
|
50
|
-
| `name`
|
|
51
|
-
| `username`
|
|
52
|
-
| `password`
|
|
53
|
-
| `deviceId`
|
|
48
|
+
| Key | Description | Required |
|
|
49
|
+
|:------------------|:--------------------------------------------------------------------------------------------------------------|:---------|
|
|
50
|
+
| `platform` | Must be set to **"sHome"**. | Yes |
|
|
51
|
+
| `name` | The name of the platform that will appear in the Homebridge logs (e.g., "sHome"). | Yes |
|
|
52
|
+
| `username` | Your Samsung sHome account username. | Yes |
|
|
53
|
+
| `password` | Your Samsung sHome account password. | Yes |
|
|
54
|
+
| `deviceId` | The unique ID of the mobile device where the sHome app is installed. This is required for API authentication. | Yes |
|
|
55
|
+
| `pollingInterval` | The interval in milliseconds to poll for device status updates. Set to 0 to disable. | No |
|
|
54
56
|
|
|
55
57
|
**Note:** The `deviceId` can often be found by inspecting the sHome app's internal storage or by using specific tools to
|
|
56
58
|
retrieve it. A correct value is essential for the API login to succeed.
|
package/config.schema.json
CHANGED
|
@@ -5,36 +5,32 @@
|
|
|
5
5
|
"name": {
|
|
6
6
|
"title": "Name",
|
|
7
7
|
"type": "string",
|
|
8
|
-
"default": "sHome"
|
|
9
|
-
"required": true
|
|
8
|
+
"default": "sHome"
|
|
10
9
|
},
|
|
11
10
|
"username": {
|
|
12
11
|
"title": "Username",
|
|
13
12
|
"type": "string",
|
|
14
|
-
"description": "Your Samsung sHome account username."
|
|
15
|
-
"required": true
|
|
13
|
+
"description": "Your Samsung sHome account username."
|
|
16
14
|
},
|
|
17
15
|
"password": {
|
|
18
16
|
"title": "Password",
|
|
19
17
|
"type": "string",
|
|
20
18
|
"description": "Your Samsung sHome account password.",
|
|
21
|
-
"format": "password"
|
|
22
|
-
"required": true
|
|
19
|
+
"format": "password"
|
|
23
20
|
},
|
|
24
21
|
"deviceId": {
|
|
25
22
|
"title": "Device ID",
|
|
26
23
|
"type": "string",
|
|
27
|
-
"description": "Your mobile device ID."
|
|
28
|
-
"required": true
|
|
24
|
+
"description": "Your mobile device ID."
|
|
29
25
|
},
|
|
30
26
|
"pollingInterval": {
|
|
31
27
|
"title": "Polling Interval (ms)",
|
|
32
28
|
"type": "integer",
|
|
33
29
|
"default": 3000,
|
|
34
|
-
"description": "The interval in milliseconds to poll for device status updates. Set to 0 to disable."
|
|
35
|
-
"required": false
|
|
30
|
+
"description": "The interval in milliseconds to poll for device status updates. Set to 0 to disable."
|
|
36
31
|
}
|
|
37
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"required": ["name", "username", "password", "deviceId"]
|
|
38
34
|
},
|
|
39
35
|
"pluginAlias": "sHome",
|
|
40
36
|
"pluginType": "platform"
|