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 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/master/docs/homebridge-tydom_small.png" height="320" alt="Homebridge Tydom Logo" />
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
- Being able to *see* a house is not the same as holding its credentials. A house attached to your account but registered by someone else's comes back from the lookup without a password, and the plugin will tell you so rather than pretend the MAC is wrong:
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 account can see that house
126
- but does not hold its credentials — sign in with the account that registered the gateway,
127
- or set "password" to the gateway password directly and leave "email" out.
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 const _default: (homebridge: API) => void;
3
+ declare function _default(homebridge: API): void;
5
4
  //#endregion
6
5
  export { _default as default };
7
6
  //# sourceMappingURL=index.d.mts.map