@homebridge-plugins/homebridge-sharkiq 1.5.3-beta.3 → 1.5.3-beta.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/CHANGELOG.md +2 -0
- package/dist/homebridge-ui/public/index.html +78 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
10
10
|
- fix(matter): handle the home app's play, pause and dock buttons, so the vacuum responds instead of rejecting the command (#68)
|
|
11
11
|
- fix: start a whole-house clean with just the start command, so the vacuum actually leaves the dock instead of being told to clean no areas (#68)
|
|
12
12
|
- chore: log the start command and whether shark accepts it in debug mode, to diagnose a vacuum that will not leave the dock from homekit (#68)
|
|
13
|
+
- style(ui): standardise the custom ui layout and sync the support tab with the readme
|
|
14
|
+
- fix(ui): fall back to the older copy command when the clipboard api is unavailable, so the oauth url copy button works over plain http (#84)
|
|
13
15
|
|
|
14
16
|
## v1.5.2 (2026-07-22)
|
|
15
17
|
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
.dark-mode {
|
|
3
|
+
background-color: #242424;
|
|
4
|
+
color: lightgrey;
|
|
5
|
+
|
|
6
|
+
.form-control {
|
|
7
|
+
background-color: #333333 !important;
|
|
8
|
+
border: none !important;
|
|
9
|
+
color: #eeeeee !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
thead, tbody, tr {
|
|
13
|
+
border-style: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
th {
|
|
17
|
+
color: #eeeeee !important;
|
|
18
|
+
font-weight: 500 !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
</style>
|
|
1
22
|
<p class="text-center">
|
|
2
23
|
<img src="https://raw.githubusercontent.com/homebridge/plugins/latest/icons/homebridge-sharkiq.png"
|
|
3
24
|
alt="homebridge-sharkiq logo" style="width: 15%" />
|
|
@@ -14,8 +35,8 @@
|
|
|
14
35
|
</div>
|
|
15
36
|
</div>
|
|
16
37
|
<div id="menuWrapper" class="btn-group w-100 mb-0" role="group" aria-label="UI Menu" style="display: none">
|
|
17
|
-
<button type="button" class="btn btn-primary" id="menuDevices">Devices</button>
|
|
18
38
|
<button type="button" class="btn btn-primary" id="menuSettings">Settings</button>
|
|
39
|
+
<button type="button" class="btn btn-primary" id="menuDevices">My Devices</button>
|
|
19
40
|
<button type="button" class="btn btn-primary mr-0" id="menuHome">Support</button>
|
|
20
41
|
</div>
|
|
21
42
|
<div id="pageDevices" class="mt-4" style="display: none">
|
|
@@ -87,43 +108,54 @@
|
|
|
87
108
|
</div>
|
|
88
109
|
<div id="pageSupport" class="mt-4" style="display: none">
|
|
89
110
|
<p class="text-center lead">Thank you for using <strong>homebridge-sharkiq</strong></p>
|
|
90
|
-
<
|
|
91
|
-
|
|
111
|
+
<h5>Plugin Information</h5>
|
|
112
|
+
<ul>
|
|
113
|
+
<li>This plugin allows you to view and control your Shark IQ robot vacuums within HomeKit. The plugin:</li>
|
|
92
114
|
<ul>
|
|
93
|
-
<li>
|
|
94
|
-
|
|
95
|
-
</li>
|
|
96
|
-
<li>
|
|
97
|
-
<a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Configuration" target="_blank">Configuration</a>
|
|
98
|
-
</li>
|
|
99
|
-
<li>
|
|
100
|
-
<a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Beta-Version" target="_blank">Beta Version</a>
|
|
101
|
-
</li>
|
|
102
|
-
<li>
|
|
103
|
-
<a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Node-Version" target="_blank">Node Version</a>
|
|
104
|
-
</li>
|
|
105
|
-
<li>
|
|
106
|
-
<a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Uninstallation"
|
|
107
|
-
target="_blank">Uninstallation</a>
|
|
108
|
-
</li>
|
|
115
|
+
<li>connects to SharkNinja's cloud (which runs on the Ayla Networks platform) to discover and control your robots</li>
|
|
116
|
+
<li>supports both the US and EU regions</li>
|
|
117
|
+
<li>can optionally expose robots over Matter as well as HomeKit</li>
|
|
109
118
|
</ul>
|
|
110
|
-
|
|
119
|
+
</ul>
|
|
120
|
+
<h5>Prerequisites</h5>
|
|
121
|
+
<ul>
|
|
122
|
+
<li>To use this plugin, you will need to already have:</li>
|
|
111
123
|
<ul>
|
|
112
|
-
<li>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
</li>
|
|
124
|
+
<li><a href="https://nodejs.org" target="_blank">Node</a>: latest version of <code>v22</code> or <code>v24</code> - any other major version is not supported.</li>
|
|
125
|
+
<li><a href="https://homebridge.io" target="_blank">Homebridge</a>: <code>v2</code> - refer to link for more information and installation instructions.</li>
|
|
126
|
+
<li>A Shark IQ robot vacuum set up in the SharkClean app.</li>
|
|
116
127
|
</ul>
|
|
128
|
+
</ul>
|
|
129
|
+
<h5>Setup</h5>
|
|
130
|
+
<ul>
|
|
131
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Installation" target="_blank">Installation</a></li>
|
|
132
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Configuration" target="_blank">Configuration</a></li>
|
|
133
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Beta-Version" target="_blank">Beta Version</a></li>
|
|
134
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Node-Version" target="_blank">Node Version</a></li>
|
|
135
|
+
</ul>
|
|
136
|
+
<h5>Features</h5>
|
|
137
|
+
<ul>
|
|
138
|
+
<li>A switch to start and stop a clean</li>
|
|
139
|
+
<li>A fan control reflecting the robot's running state</li>
|
|
140
|
+
<li>A contact sensor that reports when the robot is docked</li>
|
|
141
|
+
</ul>
|
|
117
142
|
<h5>Help/About</h5>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
143
|
+
<ul>
|
|
144
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/wiki/Common-Errors" target="_blank">Common Errors</a></li>
|
|
145
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/issues/new/choose" target="_blank">Support Request</a></li>
|
|
146
|
+
<li><a href="https://github.com/homebridge-plugins/homebridge-sharkiq/blob/latest/CHANGELOG.md" target="_blank">Changelog</a></li>
|
|
147
|
+
<li><a href="https://github.com/sponsors/bwp91" target="_blank">About Me</a></li>
|
|
148
|
+
</ul>
|
|
149
|
+
<h5>Credits</h5>
|
|
150
|
+
<ul>
|
|
151
|
+
<li>To Bubba8291: the original creator of this plugin.</li>
|
|
152
|
+
<li>To the creators/contributors of <a href="https://homebridge.io" target="_blank">Homebridge</a> who make this plugin possible.</li>
|
|
153
|
+
</ul>
|
|
154
|
+
<h5>Disclaimer</h5>
|
|
155
|
+
<ul>
|
|
156
|
+
<li>I am in no way affiliated with SharkNinja and this plugin is a personal project that I maintain in my free time.</li>
|
|
157
|
+
<li>Use this plugin entirely at your own risk - please see licence for more information.</li>
|
|
158
|
+
</ul>
|
|
127
159
|
</div>
|
|
128
160
|
<script>
|
|
129
161
|
(async () => {
|
|
@@ -171,10 +203,21 @@
|
|
|
171
203
|
|
|
172
204
|
copyOauthUrlBtn.addEventListener('click', async () => {
|
|
173
205
|
try {
|
|
174
|
-
|
|
206
|
+
if (navigator.clipboard && window.isSecureContext) {
|
|
207
|
+
await navigator.clipboard.writeText(oauthUrlLink.value);
|
|
208
|
+
} else {
|
|
209
|
+
// The clipboard API only exists on secure (https) pages, and many
|
|
210
|
+
// local Homebridge UIs run over plain http, so fall back to
|
|
211
|
+
// selecting the text and using the older copy command.
|
|
212
|
+
oauthUrlLink.select();
|
|
213
|
+
oauthUrlLink.setSelectionRange(0, oauthUrlLink.value.length);
|
|
214
|
+
if (!document.execCommand('copy')) {
|
|
215
|
+
throw new Error('copy command rejected');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
175
218
|
homebridge.toast.success('OAuth URL copied to clipboard.', 'Copied');
|
|
176
219
|
} catch {
|
|
177
|
-
homebridge.toast.error('Unable to copy
|
|
220
|
+
homebridge.toast.error('Unable to copy automatically - please select the URL and copy it manually.', 'Error');
|
|
178
221
|
}
|
|
179
222
|
});
|
|
180
223
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-sharkiq",
|
|
3
3
|
"displayName": "SharkIQ Plugin",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.5.3-beta.
|
|
5
|
+
"version": "1.5.3-beta.5",
|
|
6
6
|
"description": "A Homebridge plugin to connect your Shark Vacuum to homebridge.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Bubba8291",
|