@switchbot/homebridge-switchbot 5.0.0-beta.110 → 5.0.0-beta.111
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/.github/copilot-instructions.md +39 -0
- package/dist/homebridge-ui/endpoints/devices.d.ts.map +1 -1
- package/dist/homebridge-ui/endpoints/devices.js +10 -1
- package/dist/homebridge-ui/endpoints/devices.js.map +1 -1
- package/dist/homebridge-ui/public/js/api.d.ts +5 -1
- package/dist/homebridge-ui/public/js/api.d.ts.map +1 -1
- package/dist/homebridge-ui/public/js/api.js +13 -3
- package/dist/homebridge-ui/public/js/api.js.map +1 -1
- package/dist/homebridge-ui/public/js/api.ts +13 -3
- package/dist/homebridge-ui/public/js/app.js +245 -11
- package/dist/homebridge-ui/public/js/app.js.map +3 -3
- package/dist/homebridge-ui/public/js/devices.d.ts.map +1 -1
- package/dist/homebridge-ui/public/js/devices.js +12 -3
- package/dist/homebridge-ui/public/js/devices.js.map +1 -1
- package/dist/homebridge-ui/public/js/devices.ts +13 -3
- package/dist/homebridge-ui/public/js/discovery.d.ts.map +1 -1
- package/dist/homebridge-ui/public/js/discovery.js +13 -2
- package/dist/homebridge-ui/public/js/discovery.js.map +1 -1
- package/dist/homebridge-ui/public/js/discovery.ts +14 -1
- package/dist/homebridge-ui/public/js/modals.d.ts +5 -0
- package/dist/homebridge-ui/public/js/modals.d.ts.map +1 -1
- package/dist/homebridge-ui/public/js/modals.js +146 -0
- package/dist/homebridge-ui/public/js/modals.js.map +1 -1
- package/dist/homebridge-ui/public/js/modals.ts +167 -0
- package/dist/homebridge-ui/public/js/render.d.ts +3 -1
- package/dist/homebridge-ui/public/js/render.d.ts.map +1 -1
- package/dist/homebridge-ui/public/js/render.js +62 -2
- package/dist/homebridge-ui/public/js/render.js.map +1 -1
- package/dist/homebridge-ui/public/js/render.ts +71 -2
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +63 -103
- package/dist/platform.js.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -1
- package/dist/utils.js.map +1 -1
- package/docs/variables/default.html +1 -1
- package/package.json +1 -1
- package/src/homebridge-ui/endpoints/devices.ts +5 -2
- package/src/homebridge-ui/public/js/api.ts +13 -3
- package/src/homebridge-ui/public/js/devices.ts +13 -3
- package/src/homebridge-ui/public/js/discovery.ts +14 -1
- package/src/homebridge-ui/public/js/modals.ts +167 -0
- package/src/homebridge-ui/public/js/render.ts +71 -2
- package/src/platform.ts +76 -103
- package/src/utils.ts +2 -1
- package/test/matter-childbridge.spec.ts +5 -1
- package/test/matter-integration.spec.ts +41 -0
- package/test/utils.spec.ts +18 -2
- package/todo/COMPLETED.md +40 -0
- package/todo/TODO.md +13 -42
package/todo/TODO.md
CHANGED
|
@@ -4,19 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Bug Fixes (Priority: Critical)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- [ ] **Fix Matter window covering Drapery enum validation error**
|
|
10
|
-
- [ ] **Issue:** Matter accessory registration fails for Curtain devices
|
|
11
|
-
- [ ] **Error:** `Conformance "LF & !TL": Matter does not allow enum value Drapery (ID 4) here`
|
|
12
|
-
- [ ] **Root Cause:** windowCovering.state.type is set to "Drapery" but Matter spec requires "LF & !TL" conformance (Lift Fail without Tilt)
|
|
13
|
-
- [ ] **Solution:** Need to validate/correct window covering type mappings for Matter compatibility
|
|
14
|
-
- [ ] **Affected Devices:** Curtain-type devices (e.g., "Master Bathroom Left Curtain")
|
|
15
|
-
- [ ] **Steps to Fix:**
|
|
16
|
-
- [ ] Check Matter window covering specification for valid type combinations
|
|
17
|
-
- [ ] Update device type mapping to use compliant enum values
|
|
18
|
-
- [ ] Validate conformance rules for Lift/Tilt combinations
|
|
19
|
-
- [ ] Test with Curtain, Curtain3, and Roller Shade devices
|
|
7
|
+
- No active critical bug fixes right now.
|
|
20
8
|
|
|
21
9
|
---
|
|
22
10
|
|
|
@@ -24,21 +12,7 @@
|
|
|
24
12
|
|
|
25
13
|
### Quick Wins (Priority: High)
|
|
26
14
|
|
|
27
|
-
#### 1.
|
|
28
|
-
|
|
29
|
-
- [ ] Add "Add to Config" button next to each discovered device
|
|
30
|
-
- [ ] Implement auto-populate device configuration modal with discovered values
|
|
31
|
-
- [ ] Pre-fill MAC address for BLE devices to enable direct connection
|
|
32
|
-
- [ ] Add confirmation toast message on successful import
|
|
33
|
-
|
|
34
|
-
#### 2. Duplicate Detection
|
|
35
|
-
|
|
36
|
-
- [ ] Check if discovered device ID already exists in config
|
|
37
|
-
- [ ] Show badge: "✓ Already Added" (green) or "➕ New Device" (blue)
|
|
38
|
-
- [ ] Disable/hide "Add" button for already-added devices
|
|
39
|
-
- [ ] Add "View in Config" link for existing devices
|
|
40
|
-
|
|
41
|
-
#### 3. Better Loading States
|
|
15
|
+
#### 1. Better Loading States
|
|
42
16
|
|
|
43
17
|
- [ ] Show progress indicator: "Scanning BLE... (5s)" → "Fetching OpenAPI..." → "Complete"
|
|
44
18
|
- [ ] Add progress bar or spinner for each discovery phase
|
|
@@ -48,7 +22,7 @@
|
|
|
48
22
|
|
|
49
23
|
### Medium Effort (Priority: Medium)
|
|
50
24
|
|
|
51
|
-
####
|
|
25
|
+
#### 2. Device Grouping
|
|
52
26
|
|
|
53
27
|
- [ ] Implement grouping by Hub (show which devices are on which hub)
|
|
54
28
|
- [ ] Implement grouping by Connection Type
|
|
@@ -56,14 +30,14 @@
|
|
|
56
30
|
- [ ] Show device count per group
|
|
57
31
|
- [ ] Remember expanded/collapsed state
|
|
58
32
|
|
|
59
|
-
####
|
|
33
|
+
#### 3. Connection Recommendations
|
|
60
34
|
|
|
61
35
|
- [ ] Add badge: "⚡ Recommended: BLE" for devices with strong signal (> -70 dBm)
|
|
62
36
|
- [ ] Add badge: "☁️ Recommended: API" for hub-dependent devices
|
|
63
37
|
- [ ] Show tooltip explaining why recommendation is made
|
|
64
38
|
- [ ] Consider device type (some work better with BLE vs API)
|
|
65
39
|
|
|
66
|
-
####
|
|
40
|
+
#### 4. Configurable BLE Scan
|
|
67
41
|
|
|
68
42
|
- [ ] Add settings panel with scan duration options (3s/5s/10s/15s)
|
|
69
43
|
- [ ] Add option to disable BLE scanning if no Bluetooth adapter
|
|
@@ -71,7 +45,7 @@
|
|
|
71
45
|
- [ ] Remember user preferences in localStorage
|
|
72
46
|
- [ ] Show system Bluetooth availability status
|
|
73
47
|
|
|
74
|
-
####
|
|
48
|
+
#### 5. Discovery History/Cache
|
|
75
49
|
|
|
76
50
|
- [ ] Cache last discovery results for 5 minutes
|
|
77
51
|
- [ ] Show "Last scanned: X minutes ago" with timestamp
|
|
@@ -79,7 +53,7 @@
|
|
|
79
53
|
- [ ] Show cached results immediately on page load
|
|
80
54
|
- [ ] Auto-refresh option with configurable interval
|
|
81
55
|
|
|
82
|
-
####
|
|
56
|
+
#### 6. Detailed Device Info Panel
|
|
83
57
|
|
|
84
58
|
- [ ] Add click-to-expand device details panel
|
|
85
59
|
- [ ] Show extended information:
|
|
@@ -93,14 +67,14 @@
|
|
|
93
67
|
|
|
94
68
|
### Advanced Features (Priority: Low)
|
|
95
69
|
|
|
96
|
-
####
|
|
70
|
+
#### 7. Real-Time BLE Scanning
|
|
97
71
|
|
|
98
72
|
- [ ] Show devices as they're discovered (streaming results)
|
|
99
73
|
- [ ] Add animated "pulsing" indicator for active BLE scan
|
|
100
74
|
- [ ] Update RSSI values in real-time during scan
|
|
101
75
|
- [ ] Show "X devices found..." counter during scan
|
|
102
76
|
|
|
103
|
-
####
|
|
77
|
+
#### 8. Connection Testing
|
|
104
78
|
|
|
105
79
|
- [ ] Add "Test Connection" button per device
|
|
106
80
|
- [ ] Attempt to connect and read basic device status
|
|
@@ -108,7 +82,7 @@
|
|
|
108
82
|
- [ ] Display connection latency
|
|
109
83
|
- [ ] Show which connection method succeeded (BLE/API)
|
|
110
84
|
|
|
111
|
-
####
|
|
85
|
+
#### 9. Batch Import
|
|
112
86
|
|
|
113
87
|
- [ ] Add checkboxes to select multiple devices
|
|
114
88
|
- [ ] Add "Add Selected to Config" button
|
|
@@ -116,7 +90,7 @@
|
|
|
116
90
|
- [ ] Show progress for batch operations
|
|
117
91
|
- [ ] Allow batch enable/disable of devices
|
|
118
92
|
|
|
119
|
-
####
|
|
93
|
+
#### 10. Device Health Dashboard
|
|
120
94
|
|
|
121
95
|
- [ ] Show battery warnings (< 20%) with yellow/red indicators
|
|
122
96
|
- [ ] Show firmware update available indicators
|
|
@@ -124,7 +98,7 @@
|
|
|
124
98
|
- [ ] Add "Needs Attention" section at top
|
|
125
99
|
- [ ] Implement battery level trending (if historical data available)
|
|
126
100
|
|
|
127
|
-
####
|
|
101
|
+
#### 11. Export/Import Discovery
|
|
128
102
|
|
|
129
103
|
- [ ] Add "Export Results" button (JSON format)
|
|
130
104
|
- [ ] Add "Import Results" for comparison or troubleshooting
|
|
@@ -172,10 +146,7 @@
|
|
|
172
146
|
|
|
173
147
|
### Must Do (Next Release)
|
|
174
148
|
|
|
175
|
-
1.
|
|
176
|
-
2. One-Click Device Import
|
|
177
|
-
3. Duplicate Detection
|
|
178
|
-
4. Better Loading States
|
|
149
|
+
1. Better Loading States
|
|
179
150
|
|
|
180
151
|
### Should Do (Soon)
|
|
181
152
|
|