@rfranzoi/scrypted-mqtt-securitysystem 1.0.0 → 1.0.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.
- package/README.md +11 -11
- package/dist/plugin.zip +0 -0
- package/package.json +25 -9
- /package/{out → dist}/main.nodejs.js +0 -0
package/README.md
CHANGED
|
@@ -10,16 +10,16 @@ Controlla e sincronizza un sistema Paradox via MQTT (PAI) esponendolo come **Sec
|
|
|
10
10
|
|
|
11
11
|
## Configurazione (Settings)
|
|
12
12
|
### MQTT
|
|
13
|
-
- **Broker URL** es. `mqtt://
|
|
13
|
+
- **Broker URL** es. `mqtt://0.0.0.0:1883`
|
|
14
14
|
- Username/Password (se necessari)
|
|
15
15
|
- Client ID, TLS, Reject Unauthorized
|
|
16
16
|
|
|
17
17
|
### Topics
|
|
18
|
-
- **Set Target State (publish)**: es. `
|
|
19
|
-
- **Get Target State (subscribe)**: `
|
|
20
|
-
- **Get Current State (subscribe)**: `
|
|
21
|
-
- **Get Status Tampered (subscribe)**: `
|
|
22
|
-
- **Get Online (subscribe)**: `
|
|
18
|
+
- **Set Target State (publish)**: es. `SYSTEM/control/partitions/Area_1`
|
|
19
|
+
- **Get Target State (subscribe)**: `SYSTEM/states/partitions/Area_1/target_state`
|
|
20
|
+
- **Get Current State (subscribe)**: `SYSTEM/states/partitions/Area_1/current_state`
|
|
21
|
+
- **Get Status Tampered (subscribe)**: `SYSTEM/states/system/troubles/zone_tamper_trouble`
|
|
22
|
+
- **Get Online (subscribe)**: `SYSTEM/interface/availability`
|
|
23
23
|
|
|
24
24
|
### Publish Options
|
|
25
25
|
- QoS / Retain
|
|
@@ -35,13 +35,13 @@ Controlla e sincronizza un sistema Paradox via MQTT (PAI) esponendolo come **Sec
|
|
|
35
35
|
- In uscita, puoi cambiare i payload per aderire al tuo PAI.
|
|
36
36
|
|
|
37
37
|
## Mappa consigliata per PAI (esempio)
|
|
38
|
-
- **Set**: `
|
|
38
|
+
- **Set**: `SYSTEM/control/partitions/Area_1`
|
|
39
39
|
- Disarm → `disarm`
|
|
40
40
|
- Home → `arm_home`
|
|
41
41
|
- Away → `arm_away`
|
|
42
42
|
- Night → `arm_night`
|
|
43
|
-
- **Get Target**: `
|
|
44
|
-
- **Get Current**: `
|
|
45
|
-
- **Tamper**: `
|
|
46
|
-
- **Online**: `
|
|
43
|
+
- **Get Target**: `SYSTEM/states/partitions/Area_1/target_state`
|
|
44
|
+
- **Get Current**: `SYSTEM/states/partitions/Area_1/current_state`
|
|
45
|
+
- **Tamper**: `SYSTEM/states/system/troubles/zone_tamper_trouble` (`true`/`false`)
|
|
46
|
+
- **Online**: `SYSTEM/interface/availability` (`online`/`offline`)
|
|
47
47
|
|
package/dist/plugin.zip
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rfranzoi/scrypted-mqtt-securitysystem",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Scrypted plugin: Paradox Security System via MQTT (PAI/PAI-MQTT style).",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "dist/main.nodejs.js",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "scrypted-webpack",
|
|
10
|
-
"
|
|
11
|
-
"scrypted-deploy": "scrypted-deploy",
|
|
12
|
-
"scrypted-debug": "scrypted-debug",
|
|
13
|
-
"prepublishOnly": "npm run build && test -f out/main.nodejs.js"
|
|
9
|
+
"build": "rm -rf dist && scrypted-webpack --target node || true && node -e \"const fs=require('fs'),path=require('path');const cand=['dist/main.nodejs.js','out/main.nodejs.js','main.nodejs.js'];const dest='dist/main.nodejs.js';const src=cand.find(f=>fs.existsSync(f));if(!src){console.error('main.nodejs.js non trovato (dist/out/root).');process.exit(1);}fs.mkdirSync(path.dirname(dest),{recursive:true});if(src!==dest)fs.copyFileSync(src,dest);\" && (cd dist && rm -f plugin.zip && zip -q -r plugin.zip main.nodejs.js)",
|
|
10
|
+
"prepublishOnly": "npm run build && test -f dist/plugin.zip"
|
|
14
11
|
},
|
|
15
12
|
"dependencies": {
|
|
16
13
|
"@scrypted/sdk": "^0.5.0",
|
|
@@ -20,11 +17,30 @@
|
|
|
20
17
|
"@types/node": "^20.0.0"
|
|
21
18
|
},
|
|
22
19
|
"files": [
|
|
23
|
-
"
|
|
20
|
+
"dist/plugin.zip",
|
|
24
21
|
"README.md",
|
|
25
22
|
"package.json"
|
|
26
23
|
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"mqtt",
|
|
26
|
+
"paradox",
|
|
27
|
+
"paradox-alarm",
|
|
28
|
+
"security",
|
|
29
|
+
"security-system",
|
|
30
|
+
"alarm",
|
|
31
|
+
"home-alarm",
|
|
32
|
+
"home-security",
|
|
33
|
+
"paradox-mqtt",
|
|
34
|
+
"mqtt-security"
|
|
35
|
+
],
|
|
27
36
|
"scrypted": {
|
|
28
|
-
"name": "Paradox MQTT SecuritySystem"
|
|
37
|
+
"name": "Paradox MQTT SecuritySystem",
|
|
38
|
+
"type": "Device",
|
|
39
|
+
"interfaces": [
|
|
40
|
+
"SecuritySystem",
|
|
41
|
+
"Settings",
|
|
42
|
+
"TamperSensor",
|
|
43
|
+
"Online"
|
|
44
|
+
]
|
|
29
45
|
}
|
|
30
46
|
}
|
|
File without changes
|