homebridge-tydom 0.31.1 → 0.32.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/LICENSE +21 -0
- package/README.md +5 -5
- package/dist/env-B2-Dw8C2.mjs +18 -0
- package/dist/env-B2-Dw8C2.mjs.map +1 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +3 -5382
- package/dist/index.mjs.map +1 -1
- package/dist/platform-DmVGk0po.mjs +5607 -0
- package/dist/platform-DmVGk0po.mjs.map +1 -0
- package/package.json +18 -13
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Olivier Louvignes <olivier@mgcrea.io>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<a href="https://github.com/mgcrea/homebridge-tydom">
|
|
7
|
-
<img src="https://raw.githubusercontent.com/mgcrea/homebridge-tydom/
|
|
7
|
+
<img src="https://raw.githubusercontent.com/mgcrea/homebridge-tydom/main/docs/homebridge-tydom_small.png" height="320" alt="Homebridge Tydom Logo" />
|
|
8
8
|
</a>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
@@ -119,12 +119,12 @@ Chalet -> 001A25 CCCCCC
|
|
|
119
119
|
|
|
120
120
|
Pick the one you want and put it in `username`. Note that the account only ever *confirms* a gateway you name — there is no public Delta Dore API that lists the houses on an account, and the lookup carries no house name either, so the home ID from the app is how you tell them apart.
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
A correct MAC is not the same as access to that house. The lookup resolves any real gateway by MAC, and only the *credentials* are gated on what your account may reach — so a house you have no access to still comes back, just stripped of its password. The plugin says so rather than pretending the MAC is wrong:
|
|
123
123
|
|
|
124
124
|
```text
|
|
125
|
-
Delta Dore returned no password for gateway 001A25XXXXXX. The
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
Delta Dore returned no password for gateway 001A25XXXXXX. The gateway exists, but this
|
|
126
|
+
account has no access to that house — sign in with an account that does, or set "password"
|
|
127
|
+
to the gateway password directly and leave "email" out.
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
As that says, the fallback is to drop `email` and give that house's gateway password directly.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/config/env.ts
|
|
2
|
+
const PLUGIN_NAME = "homebridge-tydom";
|
|
3
|
+
const PLATFORM_NAME = "Tydom";
|
|
4
|
+
/**
|
|
5
|
+
* The plugin and platform names.
|
|
6
|
+
*
|
|
7
|
+
* Both are frozen: PLATFORM_NAME is the `"platform"` key in every installed
|
|
8
|
+
* user's config.json, and PLUGIN_NAME identifies cached accessories.
|
|
9
|
+
*
|
|
10
|
+
* The HOMEBRIDGE_TYDOM_* environment variables that used to be destructured
|
|
11
|
+
* here are read by parseConfig instead, so they can be tested and so they are
|
|
12
|
+
* resolved after Homebridge has read the config rather than at import time.
|
|
13
|
+
*/
|
|
14
|
+
const { DEBUG } = process.env;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { PLUGIN_NAME as n, PLATFORM_NAME as t };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=env-B2-Dw8C2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-B2-Dw8C2.mjs","names":[],"sources":["../src/config/env.ts"],"sourcesContent":["export const PLUGIN_NAME = \"homebridge-tydom\";\nexport const PLATFORM_NAME = \"Tydom\";\n/**\n * The plugin and platform names.\n *\n * Both are frozen: PLATFORM_NAME is the `\"platform\"` key in every installed\n * user's config.json, and PLUGIN_NAME identifies cached accessories.\n *\n * The HOMEBRIDGE_TYDOM_* environment variables that used to be destructured\n * here are read by parseConfig instead, so they can be tested and so they are\n * resolved after Homebridge has read the config rather than at import time.\n */\nexport const { DEBUG } = process.env;\n"],"mappings":";AAAA,MAAa,cAAc;AAC3B,MAAa,gBAAgB;;;;;;;;;;;AAW7B,MAAa,EAAE,UAAU,QAAQ"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "source-map-support/register.js";
|
|
2
1
|
import { API } from "homebridge";
|
|
3
2
|
//#region src/index.d.ts
|
|
4
|
-
declare
|
|
3
|
+
declare function _default(homebridge: API): void;
|
|
5
4
|
//#endregion
|
|
6
5
|
export { _default as default };
|
|
7
6
|
//# sourceMappingURL=index.d.mts.map
|