homebridge-ac-freedom 1.2.2 → 1.2.3

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/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.3
4
+
5
+ - Revert to section+expandable layout (per-device collapse/expand)
6
+ - Fix floating popup bug — replace `oneOf` dropdowns with `enum` + `titleMap`
7
+ - Rename switch labels: "Comfortable Wind", "Display"
8
+
3
9
  ## 1.2.2
4
10
 
5
- - Remove unused `changelog` field from config.schema.json (HB reads CHANGELOG.md directly from GitHub)
11
+ - Remove unused `changelog` field from config.schema.json
6
12
 
7
13
  ## 1.2.1
8
14
 
@@ -28,10 +28,7 @@
28
28
  "title": "Connection Mode",
29
29
  "type": "string",
30
30
  "default": "cloud",
31
- "oneOf": [
32
- { "title": "Cloud (AUX Cloud API)", "enum": ["cloud"] },
33
- { "title": "Local (Broadlink UDP)", "enum": ["local"] }
34
- ]
31
+ "enum": ["cloud", "local"]
35
32
  },
36
33
  "cloud": {
37
34
  "type": "object",
@@ -48,12 +45,7 @@
48
45
  "title": "Region",
49
46
  "type": "string",
50
47
  "default": "eu",
51
- "oneOf": [
52
- { "title": "Europe", "enum": ["eu"] },
53
- { "title": "USA", "enum": ["usa"] },
54
- { "title": "China", "enum": ["cn"] },
55
- { "title": "Russia", "enum": ["rus"] }
56
- ]
48
+ "enum": ["eu", "usa", "cn", "rus"]
57
49
  },
58
50
  "deviceId": {
59
51
  "title": "Device ID (endpointId, leave empty for auto-detect)",
@@ -104,10 +96,7 @@
104
96
  "title": "Temperature Step",
105
97
  "type": "number",
106
98
  "default": 0.5,
107
- "oneOf": [
108
- { "title": "0.5 °C", "enum": [0.5] },
109
- { "title": "1 °C", "enum": [1] }
110
- ]
99
+ "enum": [0.5, 1]
111
100
  }
112
101
  }
113
102
  }
@@ -118,49 +107,76 @@
118
107
  { "key": "name" },
119
108
  {
120
109
  "key": "devices",
121
- "type": "tabarray",
122
- "title": "{{ value.name || 'New Device' }}",
110
+ "type": "array",
123
111
  "buttonText": "Add Device",
124
112
  "items": [
125
- { "key": "devices[].name" },
126
- { "key": "devices[].connection" },
127
- {
128
- "key": "devices[].cloud",
129
- "type": "fieldset",
130
- "title": "Cloud Settings",
131
- "condition": { "functionBody": "return model.devices[arrayIndices[0]].connection === 'cloud';" },
132
- "items": [
133
- { "key": "devices[].cloud.email" },
134
- { "key": "devices[].cloud.password" },
135
- { "key": "devices[].cloud.region" },
136
- { "key": "devices[].cloud.deviceId" }
137
- ]
138
- },
139
113
  {
140
- "key": "devices[].local",
141
- "type": "fieldset",
142
- "title": "Local Settings",
143
- "condition": { "functionBody": "return model.devices[arrayIndices[0]].connection === 'local';" },
114
+ "type": "section",
115
+ "expandable": true,
116
+ "expanded": false,
117
+ "title": "{{ value.name || 'New Device' }}",
144
118
  "items": [
145
- { "key": "devices[].local.ip" },
146
- { "key": "devices[].local.mac" }
147
- ]
148
- },
149
- {
150
- "key": "devices[].presets",
151
- "type": "fieldset",
152
- "title": "Preset Modes",
153
- "items": [
154
- { "key": "devices[].presets.sleep" },
155
- { "key": "devices[].presets.health" },
156
- { "key": "devices[].presets.eco" },
157
- { "key": "devices[].presets.clean" }
119
+ { "key": "devices[].name" },
120
+ {
121
+ "key": "devices[].connection",
122
+ "titleMap": {
123
+ "cloud": "Cloud (AUX Cloud API)",
124
+ "local": "Local (Broadlink UDP)"
125
+ }
126
+ },
127
+ {
128
+ "key": "devices[].cloud",
129
+ "type": "fieldset",
130
+ "title": "Cloud Settings",
131
+ "condition": { "functionBody": "return model.devices[arrayIndices[0]].connection === 'cloud';" },
132
+ "items": [
133
+ { "key": "devices[].cloud.email" },
134
+ { "key": "devices[].cloud.password" },
135
+ {
136
+ "key": "devices[].cloud.region",
137
+ "titleMap": {
138
+ "eu": "Europe",
139
+ "usa": "USA",
140
+ "cn": "China",
141
+ "rus": "Russia"
142
+ }
143
+ },
144
+ { "key": "devices[].cloud.deviceId" }
145
+ ]
146
+ },
147
+ {
148
+ "key": "devices[].local",
149
+ "type": "fieldset",
150
+ "title": "Local Settings",
151
+ "condition": { "functionBody": "return model.devices[arrayIndices[0]].connection === 'local';" },
152
+ "items": [
153
+ { "key": "devices[].local.ip" },
154
+ { "key": "devices[].local.mac" }
155
+ ]
156
+ },
157
+ {
158
+ "key": "devices[].presets",
159
+ "type": "fieldset",
160
+ "title": "Preset Modes",
161
+ "items": [
162
+ { "key": "devices[].presets.sleep" },
163
+ { "key": "devices[].presets.health" },
164
+ { "key": "devices[].presets.eco" },
165
+ { "key": "devices[].presets.clean" }
166
+ ]
167
+ },
168
+ { "key": "devices[].showComfWind" },
169
+ { "key": "devices[].showDisplay" },
170
+ { "key": "devices[].pollInterval" },
171
+ {
172
+ "key": "devices[].tempStep",
173
+ "titleMap": {
174
+ "0.5": "0.5 °C",
175
+ "1": "1 °C"
176
+ }
177
+ }
158
178
  ]
159
- },
160
- { "key": "devices[].showComfWind" },
161
- { "key": "devices[].showDisplay" },
162
- { "key": "devices[].pollInterval" },
163
- { "key": "devices[].tempStep" }
179
+ }
164
180
  ]
165
181
  }
166
182
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-ac-freedom",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "displayName": "AC Freedom",
5
5
  "description": "Homebridge plugin for AUX air conditioners via Broadlink (local UDP) and AUX Cloud API",
6
6
  "main": "index.js",