Skip to content

Commit

Permalink
types.ts added zone config
Browse files Browse the repository at this point in the history
added events and map extraction data.
  • Loading branch information
sca075 authored Nov 26, 2023
1 parent a0733a6 commit 4788a7f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export interface ConditionConfig {
readonly attribute?: string;
readonly value?: string;
readonly value_not?: string;
readonly topic?: string;
}

export interface CalibrationPoint {
Expand Down Expand Up @@ -282,11 +283,24 @@ export interface MapExtractorRoom {
readonly y: number | undefined;
}

export interface MapExtractorZone {
readonly zones: string | undefined;
readonly name: string | undefined;
readonly icon: string | undefined;
readonly x: number | undefined;
readonly y: number | undefined;
}

export interface RoomConfigEventData {
readonly modeIndex: number;
readonly rooms: Array<RoomConfig>;
}

export interface PredefinedZoneConfigEventData {
readonly modeIndex: number;
readonly zones: Array<PredefinedZoneConfig>;
}

export interface EntityConfig {
entity: string;
attribute?: string;
Expand Down

0 comments on commit 4788a7f

Please sign in to comment.