homebridge-gree-ac 2.2.2-beta.5 → 2.2.2-beta.6
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 +8 -4
- package/LICENSE +175 -175
- package/README.md +511 -500
- package/config.schema.json +520 -509
- package/dist/commands.d.ts +35 -160
- package/dist/commands.js +160 -162
- package/dist/commands.js.map +1 -1
- package/dist/crypto.d.ts +10 -11
- package/dist/crypto.js +28 -33
- package/dist/crypto.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/platform.d.ts +47 -43
- package/dist/platform.js +585 -549
- package/dist/platform.js.map +1 -1
- package/dist/platformAccessory.d.ts +108 -102
- package/dist/platformAccessory.js +1763 -1726
- package/dist/platformAccessory.js.map +1 -1
- package/dist/settings.d.ts +72 -113
- package/dist/settings.js +97 -103
- package/dist/settings.js.map +1 -1
- package/dist/tsAccessory.d.ts +32 -34
- package/dist/tsAccessory.js +69 -71
- package/dist/tsAccessory.js.map +1 -1
- package/dist/version.d.ts +1 -2
- package/dist/version.js +2 -5
- package/dist/version.js.map +1 -1
- package/greedevice.jpg +0 -0
- package/greedevinfo.jpg +0 -0
- package/greemac.jpg +0 -0
- package/ha_fan.jpg +0 -0
- package/ha_settings.jpg +0 -0
- package/package.json +56 -52
- package/uiconfig.jpg +0 -0
- package/uiconfigcustdef.jpg +0 -0
- package/uiconfigmin.jpg +0 -0
- package/dist/commands.d.ts.map +0 -1
- package/dist/crypto.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/platform.d.ts.map +0 -1
- package/dist/platformAccessory.d.ts.map +0 -1
- package/dist/settings.d.ts.map +0 -1
- package/dist/tsAccessory.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { GreeACPlatform } from './platform.js';
|
|
2
|
+
import { PLATFORM_NAME } from './settings.js';
|
|
3
|
+
/**
|
|
4
|
+
* This method registers the platform with Homebridge
|
|
5
|
+
*/
|
|
6
|
+
export default (api) => {
|
|
7
|
+
api.registerPlatform(PLATFORM_NAME, GreeACPlatform);
|
|
8
|
+
};
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,eAAe,CAAC,GAAQ,EAAE,EAAE;IAC1B,GAAG,CAAC,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC,CAAC"}
|
package/dist/platform.d.ts
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
import { API, DynamicPlatformPlugin,
|
|
2
|
-
export interface MyPlatformAccessory extends PlatformAccessory {
|
|
3
|
-
bound?: boolean;
|
|
4
|
-
registered?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* HomebridgePlatform
|
|
8
|
-
* This class is the main constructor for your plugin, this is where you should
|
|
9
|
-
* parse the user config and discover/register accessories with Homebridge.
|
|
10
|
-
*/
|
|
11
|
-
export declare class GreeACPlatform implements DynamicPlatformPlugin {
|
|
12
|
-
readonly log:
|
|
13
|
-
readonly config: PlatformConfig;
|
|
14
|
-
readonly api: API;
|
|
15
|
-
readonly Service: typeof Service;
|
|
16
|
-
readonly Characteristic: typeof Characteristic;
|
|
17
|
-
private devices;
|
|
18
|
-
private processedDevices;
|
|
19
|
-
private skippedDevices;
|
|
20
|
-
private warningShown;
|
|
21
|
-
private socket;
|
|
22
|
-
private pluginAddresses;
|
|
23
|
-
ports: number[];
|
|
24
|
-
private tempUnit;
|
|
25
|
-
constructor(log:
|
|
26
|
-
/**
|
|
27
|
-
* This function is invoked when homebridge restores cached accessories from disk at startup.
|
|
28
|
-
* It should be used to
|
|
29
|
-
*/
|
|
30
|
-
configureAccessory(accessory: MyPlatformAccessory): void;
|
|
31
|
-
/**
|
|
32
|
-
* Accessories must only be registered once, previously created accessories
|
|
33
|
-
* must not be registered again to prevent "duplicate UUID" errors.
|
|
34
|
-
*/
|
|
35
|
-
bindCallback(): void;
|
|
36
|
-
discoverDevices(): void;
|
|
37
|
-
handleMessage: (msg:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
1
|
+
import type { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge';
|
|
2
|
+
export interface MyPlatformAccessory extends PlatformAccessory {
|
|
3
|
+
bound?: boolean;
|
|
4
|
+
registered?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* HomebridgePlatform
|
|
8
|
+
* This class is the main constructor for your plugin, this is where you should
|
|
9
|
+
* parse the user config and discover/register accessories with Homebridge.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GreeACPlatform implements DynamicPlatformPlugin {
|
|
12
|
+
readonly log: Logging;
|
|
13
|
+
readonly config: PlatformConfig;
|
|
14
|
+
readonly api: API;
|
|
15
|
+
readonly Service: typeof Service;
|
|
16
|
+
readonly Characteristic: typeof Characteristic;
|
|
17
|
+
private devices;
|
|
18
|
+
private processedDevices;
|
|
19
|
+
private skippedDevices;
|
|
20
|
+
private warningShown;
|
|
21
|
+
private socket;
|
|
22
|
+
private pluginAddresses;
|
|
23
|
+
ports: number[];
|
|
24
|
+
private tempUnit;
|
|
25
|
+
constructor(log: Logging, config: PlatformConfig, api: API);
|
|
26
|
+
/**
|
|
27
|
+
* This function is invoked when homebridge restores cached accessories from disk at startup.
|
|
28
|
+
* It should be used to set up event handlers for characteristics and update respective values.
|
|
29
|
+
*/
|
|
30
|
+
configureAccessory(accessory: MyPlatformAccessory): void;
|
|
31
|
+
/**
|
|
32
|
+
* Accessories must only be registered once, previously created accessories
|
|
33
|
+
* must not be registered again to prevent "duplicate UUID" errors.
|
|
34
|
+
*/
|
|
35
|
+
bindCallback(): void;
|
|
36
|
+
discoverDevices(): void;
|
|
37
|
+
handleMessage: (msg: Buffer, rinfo: {
|
|
38
|
+
address: string;
|
|
39
|
+
family: string;
|
|
40
|
+
port: number;
|
|
41
|
+
size: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
registerDevice: (deviceInfo: any) => void;
|
|
44
|
+
sendScan(): void;
|
|
45
|
+
getNetworkAddresses(bindInterfaces: any): Record<string, string>;
|
|
46
|
+
getAccessory(mac: string): MyPlatformAccessory;
|
|
47
|
+
}
|