Skip to content

Commit

Permalink
1.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
asednev committed Mar 12, 2021
1 parent b76e447 commit 7769351
Show file tree
Hide file tree
Showing 24 changed files with 325 additions and 20 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Ignore compiled code
dist

# ------------- Defaults ------------- #

# Logs
Expand Down Expand Up @@ -86,7 +83,6 @@ web_modules/

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Govee H5xxx Thermometer Hygrometer plugin for Homebrige. Exposes current humidit
* Govee H5075
* Govee H5101
* Govee H5102

* Govee H5179
## Prerequisites

* Compatible bluetooth module for macOS / Windows / Linux (see [prerequisites for noble](https://github.com/abandonware/noble#prerequisites)).
Expand Down
6 changes: 6 additions & 0 deletions dist/deviceContext.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export declare type DeviceContext = {
address: string;
model: string;
uuid: string;
};
//# sourceMappingURL=deviceContext.d.ts.map
1 change: 1 addition & 0 deletions dist/deviceContext.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/deviceContext.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/deviceContext.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { API } from "homebridge";
declare const _default: (api: API) => void;
/**
* This method registers the platform with Homebridge
*/
export = _default;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions dist/platform.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from "homebridge";
/**
* HomebridgePlatform
* This class is the main constructor for your plugin, this is where you should
* parse the user config and discover/register accessories with Homebridge.
*/
export declare class GoveeHomebridgePlatform implements DynamicPlatformPlugin {
readonly log: Logger;
readonly config: PlatformConfig;
readonly api: API;
readonly Service: typeof Service;
readonly Characteristic: typeof Characteristic;
readonly accessories: PlatformAccessory[];
constructor(log: Logger, config: PlatformConfig, api: API);
/**
* This function is invoked when homebridge restores cached accessories from disk at startup.
* It should be used to setup event handlers for characteristics and update respective values.
*/
configureAccessory(accessory: PlatformAccessory): void;
/**
* This is an example method showing how to register discovered accessories.
* Accessories must only be registered once, previously created accessories
* must not be registered again to prevent "duplicate UUID" errors.
*/
discoverDevices(): void;
private sanitize;
}
//# sourceMappingURL=platform.d.ts.map
1 change: 1 addition & 0 deletions dist/platform.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

122 changes: 122 additions & 0 deletions dist/platform.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/platform.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions dist/platformAccessory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { PlatformAccessory, CharacteristicGetCallback } from "homebridge";
import { GoveeHomebridgePlatform } from "./platform";
import { GoveeReading } from "govee-bt-client";
/**
* Platform Accessory
* An instance of this class is created for each accessory your platform registers
* Each accessory may expose multiple services of different service types.
*/
export declare class GoveePlatformAccessory {
private readonly platform;
private readonly accessory;
private readonly reading;
private LOW_BATTERY_THRESHOLD;
private HUMIDITY_OFFSET;
private humiditySensor;
private temperatureSensor;
private lastReading;
constructor(platform: GoveeHomebridgePlatform, accessory: PlatformAccessory, reading: GoveeReading);
getCurrentRelativeHumidity(callback: CharacteristicGetCallback): void;
getStatusLowBattery(callback: CharacteristicGetCallback): void;
getCurrentTemperature(callback: CharacteristicGetCallback): void;
updateReading(reading: GoveeReading): void;
}
//# sourceMappingURL=platformAccessory.d.ts.map
1 change: 1 addition & 0 deletions dist/platformAccessory.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7769351

Please sign in to comment.