-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.