Squashed commit of the following:
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
commit93132ab868
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:40:00 2021 -0400 excluding publishing on PRs commit496dd42cfd
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:38:37 2021 -0400 Only publishing master branch commit57e82789fb
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:36:16 2021 -0400 WIP commitecc54ad3c3
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:35:29 2021 -0400 WIP commit6d3cd651be
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:30:18 2021 -0400 Attempting to use drone commit in preid commitc60387a987
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:16:46 2021 -0400 Adding sequence file commitd8a5e7541d
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:16:11 2021 -0400 Prettier commit34fcc1df1a
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:14:33 2021 -0400 Updating pre-release command commit6c8ce21164
Author: Brandon Watson <watsonb8133@gmail.com> Date: Mon Jun 7 20:03:41 2021 -0400 Updating drone config commitb6d9317a1e
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:58:35 2021 -0400 Revert "Using email alias" This reverts commitd1a3b80293
. commitd1a3b80293
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:57:22 2021 -0400 Using email alias commit027d1711ad
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:36:07 2021 -0400 Removing bash_profile commited06d7ecd0
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:23:46 2021 -0400 WIP commitd3c37b18b9
Author: Brandon Watson <watsonb8133@gmail.com> Date: Wed Jun 2 21:22:35 2021 -0400 Updating registry path
This commit is contained in:
@ -2,19 +2,21 @@ import { IMatrix } from "./IMatrix";
|
||||
import { IActivity } from "./IActivity";
|
||||
import { IDeviceButton } from "./IDeviceButton";
|
||||
import { IDeviceConfig } from "./IDeviceConfig";
|
||||
import { IHub } from './IHub';
|
||||
import { IHub } from "./IHub";
|
||||
import { ISequence } from "./ISequence";
|
||||
|
||||
export interface IControlUnit {
|
||||
DisplayName: string;
|
||||
Activities: Array<IActivity>;
|
||||
DisplayName: string;
|
||||
Activities: Array<IActivity>;
|
||||
}
|
||||
|
||||
export interface IConfig {
|
||||
hubIp: string;
|
||||
EmitDevicesOnStartup: boolean;
|
||||
Matrix: IMatrix;
|
||||
ControlUnits: Array<IControlUnit>;
|
||||
DeviceButtons: Array<IDeviceButton>;
|
||||
Devices: Array<IDeviceConfig>;
|
||||
Hubs: Array<IHub>;
|
||||
}
|
||||
hubIp: string;
|
||||
EmitDevicesOnStartup: boolean;
|
||||
Matrix: IMatrix;
|
||||
ControlUnits: Array<IControlUnit>;
|
||||
DeviceButtons: Array<IDeviceButton>;
|
||||
Sequences: Array<ISequence>;
|
||||
Devices: Array<IDeviceConfig>;
|
||||
Hubs: Array<IHub>;
|
||||
}
|
||||
|
10
src/Models/Config/ISequence.ts
Normal file
10
src/Models/Config/ISequence.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export interface ISequence {
|
||||
name: string;
|
||||
steps: Array<IStep>;
|
||||
}
|
||||
|
||||
export interface IStep {
|
||||
deviceName: string;
|
||||
deviceCommand: string;
|
||||
delay: number;
|
||||
}
|
@ -22,7 +22,7 @@ export class Platform implements DynamicPlatformPlugin {
|
||||
) {
|
||||
this.log.debug("Finished initializing platform:", config.name);
|
||||
|
||||
this.config = (config as unknown) as IConfig;
|
||||
this.config = config as unknown as IConfig;
|
||||
//construct data provider
|
||||
const dataProvider = new HarmonyDataProvider({
|
||||
hubs: this.config.Hubs,
|
||||
@ -70,8 +70,8 @@ export class Platform implements DynamicPlatformPlugin {
|
||||
}
|
||||
|
||||
public readonly Service: typeof Service = this.api.hap.Service;
|
||||
public readonly Characteristic: typeof Characteristic = this.api.hap
|
||||
.Characteristic;
|
||||
public readonly Characteristic: typeof Characteristic =
|
||||
this.api.hap.Characteristic;
|
||||
|
||||
// this is used to track restored cached accessories
|
||||
public readonly accessories: PlatformAccessory[] = [];
|
||||
|
Reference in New Issue
Block a user