@homebridge-plugins/homebridge-smarthq 0.2.0-beta.8 → 0.2.0
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 +11 -2
- package/config.schema.json +8 -8
- package/dist/devices/device.d.ts.map +1 -1
- package/dist/devices/device.js +2 -1
- package/dist/devices/device.js.map +1 -1
- package/dist/devices/dishwasher.d.ts.map +1 -1
- package/dist/devices/dishwasher.js +1 -2
- package/dist/devices/dishwasher.js.map +1 -1
- package/dist/devices/icemaker.d.ts +12 -0
- package/dist/devices/icemaker.d.ts.map +1 -0
- package/dist/devices/icemaker.js +100 -0
- package/dist/devices/icemaker.js.map +1 -0
- package/dist/devices/oven.d.ts.map +1 -1
- package/dist/devices/oven.js +15 -18
- package/dist/devices/oven.js.map +1 -1
- package/dist/devices/refrigerator.d.ts.map +1 -1
- package/dist/devices/refrigerator.js +1 -2
- package/dist/devices/refrigerator.js.map +1 -1
- package/dist/homebridge-ui/public/index.html +2 -2
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +14 -0
- package/dist/index.test.js.map +1 -0
- package/dist/platform.d.ts +1 -0
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +151 -75
- package/dist/platform.js.map +1 -1
- package/dist/settings.d.ts +15 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +16 -0
- package/dist/settings.js.map +1 -1
- package/dist/settings.test.d.ts +2 -0
- package/dist/settings.test.d.ts.map +1 -0
- package/dist/settings.test.js +17 -0
- package/dist/settings.test.js.map +1 -0
- package/docs/assets/dmt/dmt-component-data.js +1 -0
- package/docs/assets/dmt/dmt-components.css +20 -0
- package/docs/assets/dmt/dmt-components.js +67 -0
- package/docs/assets/dmt/dmt-search.cmp +0 -0
- package/docs/assets/dmt/dmt-theme.css +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +5 -5
- package/docs/assets/style.css +1406 -1288
- package/docs/functions/default.html +2 -1
- package/docs/index.html +22 -166
- package/docs/modules.html +2 -2
- package/package.json +32 -28
- package/typedoc.json +4 -0
- package/.github/npm-version-script-esm.js +0 -85
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @homebridge-plugins/homebridge-smarthq</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-smarthq"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../assets/style.css"><link rel="stylesheet" href="../assets/highlight.css"><script defer="" src="../assets/main.js"></script><script async="" src="../assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
|
|
2
|
+
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@homebridge-plugins/homebridge-smarthq</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/homebridge-plugins/homebridge-smarthq/blob/e269e17cbe8aa7749011fdfb149b87951cbd96b6/src/index.ts#L11">index.ts:11</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@homebridge-plugins/homebridge-smarthq</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
|
package/docs/index.html
CHANGED
|
@@ -1,166 +1,22 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html class="
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<div class="field"><label for="tsd-search-field"
|
|
24
|
-
class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16"
|
|
25
|
-
viewBox="0 0 16 16" fill="none">
|
|
26
|
-
<use href="assets/icons.svg#icon-search"></use>
|
|
27
|
-
</svg></label><input type="text" id="tsd-search-field" aria-label="Search" /></div>
|
|
28
|
-
<div class="field">
|
|
29
|
-
<div id="tsd-toolbar-links"></div>
|
|
30
|
-
</div>
|
|
31
|
-
<ul class="results">
|
|
32
|
-
<li class="state loading">Preparing search index...</li>
|
|
33
|
-
<li class="state failure">The search index is not available</li>
|
|
34
|
-
</ul><a href="index.html" class="title">@homebridge-plugins/homebridge-smarthq</a>
|
|
35
|
-
</div>
|
|
36
|
-
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption"
|
|
37
|
-
data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
38
|
-
<use href="assets/icons.svg#icon-menu"></use>
|
|
39
|
-
</svg></a></div>
|
|
40
|
-
</div>
|
|
41
|
-
</header>
|
|
42
|
-
<div class="container container-main">
|
|
43
|
-
<div class="col-content">
|
|
44
|
-
<div class="tsd-page-title">
|
|
45
|
-
<h1>@homebridge-plugins/homebridge-smarthq</h1>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="tsd-panel tsd-typography"><span align="center">
|
|
48
|
-
<p><a href="https://github.com/homebridge/verified/blob/master/verified-plugins.json"><img
|
|
49
|
-
alt="homebridge-verified"
|
|
50
|
-
src="https://raw.githubusercontent.com/homebridge-plugins/homebridge-smarthq/latest/branding/Homebridge_x_SmartHQ.svg?sanitize=true"
|
|
51
|
-
width="350px"></a></p>
|
|
52
|
-
<a id="md:homebridge-smarthq" class="tsd-anchor"></a>
|
|
53
|
-
<h1 class="tsd-anchor-link">Homebridge SmartHQ<a href="#md:homebridge-smarthq"
|
|
54
|
-
aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24">
|
|
55
|
-
<use href="assets/icons.svg#icon-anchor"></use>
|
|
56
|
-
</svg></a></h1>
|
|
57
|
-
<p><a href="https://www.npmjs.com/package/@homebridge-plugins/homebridge-smarthq"><img
|
|
58
|
-
title="npm version"
|
|
59
|
-
src="https://badgen.net/npm/v/@homebridge-plugins/homebridge-smarthq?icon=npm&label"></a>
|
|
60
|
-
<a href="https://www.npmjs.com/package/@homebridge-plugins/homebridge-smarthq"><img
|
|
61
|
-
title="npm downloads"
|
|
62
|
-
src="https://badgen.net/npm/dt/@homebridge-plugins/homebridge-smarthq?label=downloads"></a>
|
|
63
|
-
<a href="https://discord.gg/8fpZA4S"><img title="discord-smarthq"
|
|
64
|
-
src="https://badgen.net/discord/online-members/8fpZA4S?icon=discord&label=discord"></a>
|
|
65
|
-
<a href="https://paypal.me/donavanbecker"><img title="donate"
|
|
66
|
-
src="https://badgen.net/badge/donate/paypal/yellow"></a>
|
|
67
|
-
</p>
|
|
68
|
-
<p>The Homebridge <a href="https://www.geappliances.com/connect">SmartHQ</a>
|
|
69
|
-
plugin allows which allows to interact with SmartHQ API.
|
|
70
|
-
</p>
|
|
71
|
-
</span>
|
|
72
|
-
<a id="md:installation" class="tsd-anchor"></a>
|
|
73
|
-
<h2 class="tsd-anchor-link">Installation<a href="#md:installation" aria-label="Permalink"
|
|
74
|
-
class="tsd-anchor-icon"><svg viewBox="0 0 24 24">
|
|
75
|
-
<use href="assets/icons.svg#icon-anchor"></use>
|
|
76
|
-
</svg></a></h2>
|
|
77
|
-
<ol>
|
|
78
|
-
<li>Search for "SmartHQ" on the plugin screen of <a
|
|
79
|
-
href="https://github.com/oznu/homebridge-config-ui-x" target="_blank"
|
|
80
|
-
class="external">Homebridge Config UI X</a>.</li>
|
|
81
|
-
<li>Click <strong>Install</strong>.</li>
|
|
82
|
-
</ol>
|
|
83
|
-
<a id="md:configuration" class="tsd-anchor"></a>
|
|
84
|
-
<h2 class="tsd-anchor-link">Configuration<a href="#md:configuration" aria-label="Permalink"
|
|
85
|
-
class="tsd-anchor-icon"><svg viewBox="0 0 24 24">
|
|
86
|
-
<use href="assets/icons.svg#icon-anchor"></use>
|
|
87
|
-
</svg></a></h2>
|
|
88
|
-
<ol>
|
|
89
|
-
<li>Input Username & Password</li>
|
|
90
|
-
<li>Click Save</li>
|
|
91
|
-
<li>Restart Homebridge</li>
|
|
92
|
-
</ol>
|
|
93
|
-
<a id="md:supported-smarthq-features" class="tsd-anchor"></a>
|
|
94
|
-
<h2 class="tsd-anchor-link">Supported SmartHQ Features<a href="#md:supported-smarthq-features"
|
|
95
|
-
aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24">
|
|
96
|
-
<use href="assets/icons.svg#icon-anchor"></use>
|
|
97
|
-
</svg></a></h2>
|
|
98
|
-
<p>This plugin is in developenet</p>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
<div class="col-sidebar">
|
|
102
|
-
<div class="page-menu">
|
|
103
|
-
<div class="tsd-navigation settings">
|
|
104
|
-
<details class="tsd-accordion">
|
|
105
|
-
<summary class="tsd-accordion-summary">
|
|
106
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none">
|
|
107
|
-
<use href="assets/icons.svg#icon-chevronDown"></use>
|
|
108
|
-
</svg>Settings</h3>
|
|
109
|
-
</summary>
|
|
110
|
-
<div class="tsd-accordion-details">
|
|
111
|
-
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
112
|
-
<ul id="tsd-filter-options">
|
|
113
|
-
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox"
|
|
114
|
-
id="tsd-filter-inherited" name="inherited" checked /><svg width="32"
|
|
115
|
-
height="32" viewBox="0 0 32 32" aria-hidden="true">
|
|
116
|
-
<rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1"
|
|
117
|
-
rx="6" fill="none"></rect>
|
|
118
|
-
<path class="tsd-checkbox-checkmark"
|
|
119
|
-
d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none"
|
|
120
|
-
stroke-width="3.5" stroke-linejoin="round" fill="none"></path>
|
|
121
|
-
</svg><span>Inherited</span></label></li>
|
|
122
|
-
</ul>
|
|
123
|
-
</div>
|
|
124
|
-
<div class="tsd-theme-toggle"><label class="settings-label"
|
|
125
|
-
for="tsd-theme">Theme</label><select id="tsd-theme">
|
|
126
|
-
<option value="os">OS</option>
|
|
127
|
-
<option value="light">Light</option>
|
|
128
|
-
<option value="dark">Dark</option>
|
|
129
|
-
</select></div>
|
|
130
|
-
</div>
|
|
131
|
-
</details>
|
|
132
|
-
</div>
|
|
133
|
-
<details open class="tsd-accordion tsd-page-navigation">
|
|
134
|
-
<summary class="tsd-accordion-summary">
|
|
135
|
-
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none">
|
|
136
|
-
<use href="assets/icons.svg#icon-chevronDown"></use>
|
|
137
|
-
</svg>On This Page</h3>
|
|
138
|
-
</summary>
|
|
139
|
-
<div class="tsd-accordion-details"><a href="#md:homebridge-smarthq"><span>Homebridge
|
|
140
|
-
<wbr/>SmartHQ</span></a>
|
|
141
|
-
<ul>
|
|
142
|
-
<li><a href="#md:installation"><span>Installation</span></a></li>
|
|
143
|
-
<li><a href="#md:configuration"><span>Configuration</span></a></li>
|
|
144
|
-
<li><a href="#md:supported-smarthq-features"><span>Supported <wbr/>SmartHQ
|
|
145
|
-
<wbr/>Features</span></a></li>
|
|
146
|
-
</ul>
|
|
147
|
-
</div>
|
|
148
|
-
</details>
|
|
149
|
-
</div>
|
|
150
|
-
<div class="site-menu">
|
|
151
|
-
<nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon"
|
|
152
|
-
viewBox="0 0 24 24">
|
|
153
|
-
<use href="assets/icons.svg#icon-1"></use>
|
|
154
|
-
</svg><span>@homebridge-plugins/homebridge-smarthq</span></a>
|
|
155
|
-
<ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".">
|
|
156
|
-
<li>Loading...</li>
|
|
157
|
-
</ul>
|
|
158
|
-
</nav>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
<footer></footer>
|
|
163
|
-
<div class="overlay"></div>
|
|
164
|
-
</body>
|
|
165
|
-
|
|
166
|
-
</html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>@homebridge-plugins/homebridge-smarthq</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-smarthq"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="assets/style.css"><link rel="stylesheet" href="assets/highlight.css"><script defer="" src="assets/main.js"></script><script async="" src="assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="assets/dmt/dmt-components.css"><link rel="stylesheet" href="assets/dmt/dmt-theme.css"><script src="assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
|
|
2
|
+
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="index.html" class="title">@homebridge-plugins/homebridge-smarthq</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><div class="dmt-title-header-flex"><h1>@homebridge-plugins/homebridge-smarthq</h1></div></div><div class="tsd-panel tsd-typography"><span align="center">
|
|
3
|
+
<p><a href="https://github.com/homebridge/verified/blob/master/verified-plugins.json"><img alt="homebridge-verified" src="https://raw.githubusercontent.com/homebridge-plugins/homebridge-smarthq/latest/branding/Homebridge_x_SmartHQ.svg?sanitize=true" width="350px"></a></p>
|
|
4
|
+
<a id="homebridge-smarthq" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Homebridge SmartHQ<a href="#homebridge-smarthq" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p><a href="https://www.npmjs.com/package/@homebridge-plugins/homebridge-smarthq"><img title="npm version" src="https://badgen.net/npm/v/@homebridge-plugins/homebridge-smarthq?icon=npm&label"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@homebridge-plugins/homebridge-smarthq"><img title="npm downloads" src="https://badgen.net/npm/dt/@homebridge-plugins/homebridge-smarthq?label=downloads"></a>
|
|
6
|
+
<a href="https://discord.gg/8fpZA4S"><img title="discord-smarthq" src="https://badgen.net/discord/online-members/8fpZA4S?icon=discord&label=discord"></a>
|
|
7
|
+
<a href="https://paypal.me/donavanbecker"><img title="donate" src="https://badgen.net/badge/donate/paypal/yellow"></a></p>
|
|
8
|
+
<p>The Homebridge <a href="https://www.geappliances.com/connect">SmartHQ</a>
|
|
9
|
+
plugin allows which allows to interact with SmartHQ API.
|
|
10
|
+
</p>
|
|
11
|
+
</span>
|
|
12
|
+
<a id="installation" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Installation<a href="#installation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><ol>
|
|
13
|
+
<li>Search for "SmartHQ" on the plugin screen of <a href="https://github.com/oznu/homebridge-config-ui-x">Homebridge Config UI X</a>.</li>
|
|
14
|
+
<li>Click <strong>Install</strong>.</li>
|
|
15
|
+
</ol>
|
|
16
|
+
<a id="configuration" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Configuration<a href="#configuration" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><ol>
|
|
17
|
+
<li>Input Username & Password</li>
|
|
18
|
+
<li>Click Save</li>
|
|
19
|
+
<li>Restart Homebridge</li>
|
|
20
|
+
</ol>
|
|
21
|
+
<a id="supported-smarthq-features" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Supported SmartHQ Features<a href="#supported-smarthq-features" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>This plugin is in developenet</p>
|
|
22
|
+
</div></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open="" class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details" tabindex="-1"><a href="#homebridge-smarthq"><span>Homebridge <wbr>SmartHQ</span></a><ul><li><a href="#installation"><span>Installation</span></a></li><li><a href="#configuration"><span>Configuration</span></a></li><li><a href="#supported-smarthq-features"><span>Supported <wbr>SmartHQ <wbr>Features</span></a></li></ul></div></details></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="modules.html">@homebridge-plugins/homebridge-smarthq</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
|
package/docs/modules.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"
|
|
2
|
-
</div></
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>@homebridge-plugins/homebridge-smarthq</title><meta name="description" content="Documentation for @homebridge-plugins/homebridge-smarthq"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="assets/style.css"><link rel="stylesheet" href="assets/highlight.css"><script defer="" src="assets/main.js"></script><script async="" src="assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="assets/dmt/dmt-components.css"><link rel="stylesheet" href="assets/dmt/dmt-theme.css"><script src="assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
|
|
2
|
+
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="index.html" class="title">@homebridge-plugins/homebridge-smarthq</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>@homebridge-plugins/homebridge-smarthq</h1></div></div><details class="tsd-panel-group tsd-member-group tsd-accordion" open=""><summary class="tsd-accordion-summary" data-key="section-Functions"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Functions</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="default" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><a href="functions/default.html">default</a><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open="" class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details" tabindex="-1"><details open="" class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Functions"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Functions</summary><div><a href="#default" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="assets/icons.svg#icon-64"></use></svg><span>default</span></a></div></details></div></details></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="modules.html" class="current">@homebridge-plugins/homebridge-smarthq</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-smarthq",
|
|
3
3
|
"displayName": "SmartHQ",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.2.0
|
|
5
|
+
"version": "0.2.0",
|
|
6
6
|
"description": "The SmartHQ plugin allows you to interact with SmartHQ Devices in HomeKit and with Siri.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "donavanbecker",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
],
|
|
38
38
|
"main": "dist/index.js",
|
|
39
39
|
"engines": {
|
|
40
|
-
"homebridge": "^1.8.5 || ^2.0.0 || ^2.0.0-beta.
|
|
40
|
+
"homebridge": "^1.8.5 || ^2.0.0 || ^2.0.0-beta.26",
|
|
41
41
|
"node": "^20 || ^22"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
@@ -47,56 +47,60 @@
|
|
|
47
47
|
"watch": "npm run build && npm run plugin-ui && npm link && nodemon",
|
|
48
48
|
"plugin-ui": "rsync ./src/homebridge-ui/public/index.html ./dist/homebridge-ui/public/",
|
|
49
49
|
"build": "npm run clean && tsc && npm run plugin-ui",
|
|
50
|
-
"prepublishOnly": "npm run lint && npm run build && npm run plugin-ui ",
|
|
51
|
-
"postpublish": "npm run clean",
|
|
50
|
+
"prepublishOnly": "npm run lint && npm run build && npm run plugin-ui && npm run docs && npm run docs:lint && npm run docs:theme",
|
|
51
|
+
"postpublish": "npm run clean && npm ci",
|
|
52
52
|
"clean": "shx rm -rf ./dist",
|
|
53
|
-
"test": "
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"test:watch": "vitest watch",
|
|
55
|
+
"test-coverage": "npm run test -- --coverage",
|
|
54
56
|
"docs": "typedoc",
|
|
55
|
-
"lint
|
|
57
|
+
"docs:lint": "typedoc --emit none --treatWarningsAsErrors",
|
|
58
|
+
"docs:theme": "typedoc --theme default-modern"
|
|
56
59
|
},
|
|
57
60
|
"publishConfig": {
|
|
58
61
|
"access": "public"
|
|
59
62
|
},
|
|
60
63
|
"dependencies": {
|
|
61
|
-
"@homebridge/plugin-ui-utils": "^
|
|
62
|
-
"axios": "^1.7.
|
|
63
|
-
"axios-cookiejar-support": "^5.0.
|
|
64
|
+
"@homebridge/plugin-ui-utils": "^2.0.1",
|
|
65
|
+
"axios": "^1.7.9",
|
|
66
|
+
"axios-cookiejar-support": "^5.0.5",
|
|
64
67
|
"axios-form-data": "^1.1.1",
|
|
65
68
|
"cheerio": "^1.0.0-rc.12",
|
|
66
69
|
"lodash": "^4.17.21",
|
|
67
|
-
"openid-client": "
|
|
68
|
-
"rxjs": "^7.8.
|
|
69
|
-
"tough-cookie": "^5.
|
|
70
|
-
"undici": "^
|
|
71
|
-
"ws": "^8.18.
|
|
70
|
+
"openid-client": "5.7.0",
|
|
71
|
+
"rxjs": "^7.8.2",
|
|
72
|
+
"tough-cookie": "^5.1.1",
|
|
73
|
+
"undici": "^7.2.0",
|
|
74
|
+
"ws": "^8.18.1"
|
|
72
75
|
},
|
|
73
76
|
"optionalDependencies": {
|
|
74
|
-
"bufferutil": "^4.0.
|
|
77
|
+
"bufferutil": "^4.0.9",
|
|
75
78
|
"utf-8-validat": "*"
|
|
76
79
|
},
|
|
77
80
|
"devDependencies": {
|
|
78
|
-
"@antfu/eslint-config": "^3.
|
|
81
|
+
"@antfu/eslint-config": "^4.3.0",
|
|
79
82
|
"@types/aes-js": "^3.1.4",
|
|
80
83
|
"@types/debug": "^4.1.12",
|
|
81
84
|
"@types/fs-extra": "^11.0.4",
|
|
82
|
-
"@types/lodash": "^4.
|
|
85
|
+
"@types/lodash": "^4.17.15",
|
|
83
86
|
"@types/mdast": "^4.0.4",
|
|
84
|
-
"@types/node": "^22.
|
|
87
|
+
"@types/node": "^22.13.5",
|
|
85
88
|
"@types/semver": "^7.5.8",
|
|
86
89
|
"@types/source-map-support": "^0.5.10",
|
|
87
|
-
"@types/ws": "^8.5.
|
|
88
|
-
"@
|
|
89
|
-
"
|
|
90
|
-
"eslint
|
|
91
|
-
"
|
|
92
|
-
"homebridge
|
|
93
|
-
"
|
|
90
|
+
"@types/ws": "^8.5.14",
|
|
91
|
+
"@typhonjs-typedoc/typedoc-theme-dmt": "^0.3.1",
|
|
92
|
+
"@vitest/coverage-v8": "^3.0.6",
|
|
93
|
+
"eslint": "^9.21.0",
|
|
94
|
+
"eslint-plugin-format": "^1.0.1",
|
|
95
|
+
"homebridge": "^1.9.0",
|
|
96
|
+
"homebridge-config-ui-x": "4.71.2",
|
|
97
|
+
"nodemon": "^3.1.9",
|
|
94
98
|
"rimraf": "^6.0.1",
|
|
95
99
|
"shx": "^0.3.4",
|
|
96
100
|
"ts-node": "^10.9.2",
|
|
97
101
|
"ts-node-dev": "^2.0.0",
|
|
98
|
-
"typedoc": "^0.
|
|
99
|
-
"typescript": "^5.
|
|
100
|
-
"vitest": "^
|
|
102
|
+
"typedoc": "^0.27.8",
|
|
103
|
+
"typescript": "^5.7.2",
|
|
104
|
+
"vitest": "^3.0.3"
|
|
101
105
|
}
|
|
102
106
|
}
|
package/typedoc.json
CHANGED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
#!/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This scripts queries the npm registry to pull out the latest version for a given tag.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import assert from 'node:assert'
|
|
8
|
-
import child_process from 'node:child_process'
|
|
9
|
-
import fs from 'node:fs'
|
|
10
|
-
import process from 'node:process'
|
|
11
|
-
|
|
12
|
-
import semver from 'semver'
|
|
13
|
-
|
|
14
|
-
const BRANCH_VERSION_PATTERN = /^([A-Z]+)-(\d+\.\d+\.\d+)$/i
|
|
15
|
-
|
|
16
|
-
// Load the contents of the package.json file
|
|
17
|
-
const packageJSON = JSON.parse(fs.readFileSync('package.json', 'utf8'))
|
|
18
|
-
|
|
19
|
-
const refArgument = process.argv[2]
|
|
20
|
-
const tagArgument = process.argv[3] || 'latest'
|
|
21
|
-
|
|
22
|
-
if (refArgument === null) {
|
|
23
|
-
console.error('ref argument is missing')
|
|
24
|
-
console.error('Usage: npm-version-script-esm.js <ref> [tag]')
|
|
25
|
-
process.exit(1)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Queries the NPM registry for the latest version for the provided tag.
|
|
30
|
-
* @param tag The tag to query for.
|
|
31
|
-
* @returns {string} Returns the version.
|
|
32
|
-
*/
|
|
33
|
-
function getTagVersionFromNpm(tag) {
|
|
34
|
-
try {
|
|
35
|
-
return child_process.execSync(`npm info ${packageJSON.name} version --tag="${tag}"`).toString('utf8').trim()
|
|
36
|
-
} catch (e) {
|
|
37
|
-
console.error(`Failed to query the npm registry for the latest version for tag: ${tag}`)
|
|
38
|
-
// throw e;
|
|
39
|
-
return '0.0.0'
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function desiredTargetVersion(ref) {
|
|
44
|
-
// ref is a GitHub action ref string
|
|
45
|
-
if (ref.startsWith('refs/pull/')) {
|
|
46
|
-
throw new Error('The version script was executed inside a PR!')
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
assert(ref.startsWith('refs/heads/'))
|
|
50
|
-
const branchName = ref.slice('refs/heads/'.length)
|
|
51
|
-
|
|
52
|
-
const results = branchName.match(BRANCH_VERSION_PATTERN)
|
|
53
|
-
if (results !== null) {
|
|
54
|
-
if (results[1] !== tagArgument) {
|
|
55
|
-
console.warn(`The base branch name (${results[1]}) differs from the tag name ${tagArgument}`)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return results[2]
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
throw new Error(`Malformed branch name for ref: ${ref}. Can't derive the base version. Use a branch name like: beta-x.x.x or alpha-x.x.x`)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// derive the base version from the branch ref
|
|
65
|
-
const baseVersion = desiredTargetVersion(refArgument)
|
|
66
|
-
|
|
67
|
-
// query the npm registry for the latest version of the provided tag name
|
|
68
|
-
const latestReleasedVersion = getTagVersionFromNpm(tagArgument) // e.g. 0.7.0-beta.12
|
|
69
|
-
const latestReleaseBase = semver.inc(latestReleasedVersion, 'patch') // will produce 0.7.0 (removing the preid, needed for the equality check below)
|
|
70
|
-
|
|
71
|
-
let publishTag
|
|
72
|
-
if (semver.eq(baseVersion, latestReleaseBase)) { // check if we are releasing another version for the latest beta or alpha
|
|
73
|
-
publishTag = latestReleasedVersion // set the current latest beta or alpha to be incremented
|
|
74
|
-
} else {
|
|
75
|
-
publishTag = baseVersion // start of with a new beta or alpha version
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// save the package.json
|
|
79
|
-
packageJSON.version = publishTag
|
|
80
|
-
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2))
|
|
81
|
-
|
|
82
|
-
// perform the same change to the package-lock.json
|
|
83
|
-
const packageLockJSON = JSON.parse(fs.readFileSync('package-lock.json', 'utf8'))
|
|
84
|
-
packageLockJSON.version = publishTag
|
|
85
|
-
fs.writeFileSync('package-lock.json', JSON.stringify(packageLockJSON, null, 2))
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE4uuVipJrShRslJKSU1LLM0pUdJRKkgsyVCyUkorzUsuyczPK9aHSulllOTmKOkoZWfmpShZmZnUxgIAM2eQvz4AAAA="
|
package/docs/assets/search.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE02PXWrDMBCE7zLPwjFpaNK9QS6QFyGKkdZEVJaCJCcFobsX+Yf0bZmd3fmmIIZXAsmCH+sN6PMk4IeJQTA8DrPLEJijA2Gcvc42+HTYNt09Tw4C2g0pcQIBVQlYb/gXVPDkmGzwIBy7j+4LAqNlZ1rcmiGgwzSxbxkm6HkZ1Wa7sc4hNvPqPvQQshfH7nI+KyXkfrvoi7C/2JQF5ckxs7muSFK+SxV8b6D93rigB5Va31hU6j+ytmtfH/bBznoGSVXrH+M2CbNDAQAA";
|