|
1 | 1 | {
|
2 |
| - "pluginAlias": "GarageDoorSwitch", |
3 |
| - "pluginType": "accessory", |
4 |
| - "singular": false, |
| 2 | + "pluginAlias": "GarageDoorOpenerHomebridgePlugin", |
| 3 | + "pluginType": "platform", |
| 4 | + "singular": true, |
5 | 5 | "schema": {
|
6 | 6 | "type": "object",
|
7 | 7 | "properties": {
|
|
35 | 35 | "required": false,
|
36 | 36 | "description": "MQTT Client ID (optional, default: HomeBridge)"
|
37 | 37 | },
|
38 |
| - "setTopic": { |
| 38 | + "targetTopic": { |
39 | 39 | "type": "string",
|
40 |
| - "title": "SET topic", |
41 |
| - "placeholder": "garage/door/set", |
42 |
| - "description": "MQTT Topic to trigger the garage door motor" |
| 40 | + "title": "TARGET door state topic", |
| 41 | + "placeholder": "garage/door/target", |
| 42 | + "description": "MQTT Topic to indicate the desired target door state." |
43 | 43 | },
|
44 |
| - "stateTopic": { |
| 44 | + "currentTopic": { |
45 | 45 | "type": "string",
|
46 |
| - "title": "STATE topic", |
47 |
| - "placeholder": "garage/door/state", |
48 |
| - "description": "MQTT Topic for door state subscription" |
| 46 | + "title": "CURRENT door state topic", |
| 47 | + "placeholder": "garage/door/current", |
| 48 | + "description": "MQTT Topic for the current door state" |
49 | 49 | },
|
50 | 50 | "mqttOpenMessage": {
|
51 | 51 | "type": "string",
|
52 | 52 | "title": "OPEN message",
|
53 |
| - "placeholder": "open", |
54 |
| - "description": "MQTT message payload for the `open` command" |
| 53 | + "placeholder": "0", |
| 54 | + "description": "MQTT message payload for the target door state 'open'" |
55 | 55 | },
|
56 | 56 | "mqttCloseMessage": {
|
57 | 57 | "type": "string",
|
58 | 58 | "title": "CLOSE message",
|
59 |
| - "placeholder": "close", |
60 |
| - "description": "MQTT message payload for the `close` command" |
| 59 | + "placeholder": "1", |
| 60 | + "description": "MQTT message payload for the target door state 'close'" |
61 | 61 | }
|
62 | 62 | }
|
63 | 63 | }
|
|
0 commit comments