homebridge-frontier-silicon-plugin 1.2.6 → 1.2.7
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/config.schema.json +96 -80
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -1,111 +1,127 @@
|
|
|
1
1
|
{
|
|
2
2
|
"pluginAlias": "frontier-silicon",
|
|
3
|
-
"pluginType": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"footerDisplay": "Presets must be saved on the radio first. The plugin switches between preset numbers.",
|
|
3
|
+
"pluginType": "platform",
|
|
4
|
+
"headerDisplay": "Frontier Silicon FSAPI Radios",
|
|
5
|
+
"footerDisplay": "Configure one or more Frontier Silicon based radios. Presets must be saved on the radio first.",
|
|
7
6
|
"schema": {
|
|
8
7
|
"type": "object",
|
|
9
|
-
"required": ["
|
|
8
|
+
"required": ["platform", "accessories"],
|
|
10
9
|
"properties": {
|
|
11
|
-
"
|
|
12
|
-
"title": "Name",
|
|
10
|
+
"platform": {
|
|
13
11
|
"type": "string",
|
|
14
|
-
"
|
|
15
|
-
"description": "The name shown in HomeKit."
|
|
12
|
+
"const": "frontier-silicon"
|
|
16
13
|
},
|
|
17
|
-
"
|
|
18
|
-
"title": "
|
|
19
|
-
"type": "string",
|
|
20
|
-
"default": "192.168.1.50",
|
|
21
|
-
"description": "The IP address of the radio on your network.",
|
|
22
|
-
"pattern": "^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$"
|
|
23
|
-
},
|
|
24
|
-
"pin": {
|
|
25
|
-
"title": "FSAPI PIN",
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": "1234",
|
|
28
|
-
"description": "FSAPI PIN for the radio. Default is usually 1234."
|
|
29
|
-
},
|
|
30
|
-
"pollIntervalSeconds": {
|
|
31
|
-
"title": "Poll interval (seconds)",
|
|
32
|
-
"type": "integer",
|
|
33
|
-
"default": 5,
|
|
34
|
-
"minimum": 2,
|
|
35
|
-
"maximum": 120,
|
|
36
|
-
"description": "How often to poll the device for updates."
|
|
37
|
-
},
|
|
38
|
-
"enableVolume": {
|
|
39
|
-
"title": "Enable volume control",
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": true,
|
|
42
|
-
"description": "Enable volume support."
|
|
43
|
-
},
|
|
44
|
-
"exposeSpeakerService": {
|
|
45
|
-
"title": "Expose Speaker service",
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"default": true,
|
|
48
|
-
"description": "Adds a native HomeKit Speaker service using the Volume characteristic."
|
|
49
|
-
},
|
|
50
|
-
"exposeVolumeSlider": {
|
|
51
|
-
"title": "Expose Apple Home volume slider",
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"default": true,
|
|
54
|
-
"description": "Adds a Lightbulb Brightness slider for volume control that is visible in the Apple Home app."
|
|
55
|
-
},
|
|
56
|
-
"autoPowerOnOnPreset": {
|
|
57
|
-
"title": "Power on when selecting a station",
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": true,
|
|
60
|
-
"description": "When you turn on a station switch, the radio will be powered on first."
|
|
61
|
-
},
|
|
62
|
-
"stations": {
|
|
63
|
-
"title": "Stations",
|
|
14
|
+
"accessories": {
|
|
15
|
+
"title": "Radios",
|
|
64
16
|
"type": "array",
|
|
65
|
-
"description": "List of station switches mapped to preset numbers. Save the stations to presets on the radio first.",
|
|
66
17
|
"items": {
|
|
67
18
|
"type": "object",
|
|
68
|
-
"required": ["name", "
|
|
19
|
+
"required": ["name", "ip"],
|
|
69
20
|
"properties": {
|
|
70
21
|
"name": {
|
|
71
|
-
"title": "
|
|
22
|
+
"title": "Name",
|
|
72
23
|
"type": "string",
|
|
73
|
-
"default": "Radio
|
|
24
|
+
"default": "Living Room Radio",
|
|
25
|
+
"description": "The name shown in HomeKit."
|
|
74
26
|
},
|
|
75
|
-
"
|
|
76
|
-
"title": "
|
|
27
|
+
"ip": {
|
|
28
|
+
"title": "IP Address",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "IP address of the radio on your network.",
|
|
31
|
+
"pattern": "^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$"
|
|
32
|
+
},
|
|
33
|
+
"pin": {
|
|
34
|
+
"title": "FSAPI PIN",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": "1234",
|
|
37
|
+
"description": "FSAPI PIN of the radio (default is usually 1234)."
|
|
38
|
+
},
|
|
39
|
+
"pollIntervalSeconds": {
|
|
40
|
+
"title": "Poll interval (seconds)",
|
|
77
41
|
"type": "integer",
|
|
78
|
-
"default":
|
|
79
|
-
"minimum":
|
|
80
|
-
"maximum":
|
|
42
|
+
"default": 5,
|
|
43
|
+
"minimum": 2,
|
|
44
|
+
"maximum": 120,
|
|
45
|
+
"description": "How often the radio is polled for state updates."
|
|
46
|
+
},
|
|
47
|
+
"enableVolume": {
|
|
48
|
+
"title": "Enable volume control",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": true
|
|
51
|
+
},
|
|
52
|
+
"exposeSpeakerService": {
|
|
53
|
+
"title": "Expose Speaker service",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": true,
|
|
56
|
+
"description": "Expose a native HomeKit Speaker service (may not show volume slider in Apple Home)."
|
|
57
|
+
},
|
|
58
|
+
"exposeVolumeSlider": {
|
|
59
|
+
"title": "Expose Apple Home volume slider",
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"default": true,
|
|
62
|
+
"description": "Expose a Lightbulb Brightness slider for volume control in Apple Home."
|
|
63
|
+
},
|
|
64
|
+
"autoPowerOnOnPreset": {
|
|
65
|
+
"title": "Power on when selecting a station",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true
|
|
68
|
+
},
|
|
69
|
+
"stations": {
|
|
70
|
+
"title": "Stations (presets)",
|
|
71
|
+
"type": "array",
|
|
72
|
+
"description": "Map HomeKit switches to radio preset numbers. Presets must be saved on the radio first.",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": ["name", "preset"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"name": {
|
|
78
|
+
"title": "Station name",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"default": "Radio 2"
|
|
81
|
+
},
|
|
82
|
+
"preset": {
|
|
83
|
+
"title": "Preset number",
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"minimum": 1,
|
|
86
|
+
"description": "Preset number as shown on the radio (starting at 1)."
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"default": []
|
|
81
91
|
}
|
|
82
92
|
}
|
|
83
|
-
}
|
|
84
|
-
"default": []
|
|
93
|
+
}
|
|
85
94
|
}
|
|
86
95
|
}
|
|
87
96
|
},
|
|
88
97
|
"form": [
|
|
89
|
-
"name",
|
|
90
|
-
"ip",
|
|
91
|
-
"pin",
|
|
92
|
-
"pollIntervalSeconds",
|
|
93
|
-
"enableVolume",
|
|
94
|
-
"exposeSpeakerService",
|
|
95
|
-
"exposeVolumeSlider",
|
|
96
|
-
"autoPowerOnOnPreset",
|
|
97
98
|
{
|
|
98
|
-
"key": "
|
|
99
|
+
"key": "accessories",
|
|
99
100
|
"type": "array",
|
|
100
|
-
"title": "
|
|
101
|
+
"title": "Radios",
|
|
101
102
|
"items": [
|
|
102
|
-
"
|
|
103
|
-
"
|
|
103
|
+
"accessories[].name",
|
|
104
|
+
"accessories[].ip",
|
|
105
|
+
"accessories[].pin",
|
|
106
|
+
"accessories[].pollIntervalSeconds",
|
|
107
|
+
"accessories[].enableVolume",
|
|
108
|
+
"accessories[].exposeSpeakerService",
|
|
109
|
+
"accessories[].exposeVolumeSlider",
|
|
110
|
+
"accessories[].autoPowerOnOnPreset",
|
|
111
|
+
{
|
|
112
|
+
"key": "accessories[].stations",
|
|
113
|
+
"type": "array",
|
|
114
|
+
"title": "Stations",
|
|
115
|
+
"items": [
|
|
116
|
+
"accessories[].stations[].name",
|
|
117
|
+
"accessories[].stations[].preset"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
104
120
|
]
|
|
105
121
|
}
|
|
106
122
|
],
|
|
107
123
|
"display": {
|
|
108
124
|
"name": "Frontier Silicon Radio",
|
|
109
|
-
"description": "Control power, volume
|
|
125
|
+
"description": "Control Frontier Silicon / FSAPI based radios including power, volume and presets."
|
|
110
126
|
}
|
|
111
127
|
}
|
package/package.json
CHANGED