mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
DashboardItem[]
This commit is contained in:
@@ -122,14 +122,10 @@ export interface DashboardItem {
|
|||||||
nodes?: DashboardItem[]; // children nodes, optional
|
nodes?: DashboardItem[]; // children nodes, optional
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DashboardData {
|
|
||||||
nodes: DashboardItem[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DeviceValue {
|
export interface DeviceValue {
|
||||||
id: string; // index, contains mask+name
|
id: string; // index, contains mask+name
|
||||||
v: unknown; // value, Number or String
|
v?: unknown; // value, Number, String or Boolean - can be undefined
|
||||||
u: number; // uom
|
u?: number; // uom, optional
|
||||||
c?: string; // command, optional
|
c?: string; // command, optional
|
||||||
l?: string[]; // list, optional
|
l?: string[]; // list, optional
|
||||||
h?: string; // help text, optional
|
h?: string; // help text, optional
|
||||||
@@ -312,7 +308,7 @@ export interface ScheduleItem {
|
|||||||
time: string; // also used for Condition and On Change
|
time: string; // also used for Condition and On Change
|
||||||
cmd: string;
|
cmd: string;
|
||||||
value: string;
|
value: string;
|
||||||
name: string; // is optional
|
name: string; // can be empty
|
||||||
o_id?: number;
|
o_id?: number;
|
||||||
o_active?: boolean;
|
o_active?: boolean;
|
||||||
o_deleted?: boolean;
|
o_deleted?: boolean;
|
||||||
@@ -395,10 +391,10 @@ export interface Entities {
|
|||||||
// matches emsdevice.h DeviceType
|
// matches emsdevice.h DeviceType
|
||||||
export const enum DeviceType {
|
export const enum DeviceType {
|
||||||
SYSTEM = 0,
|
SYSTEM = 0,
|
||||||
TEMPERATURESENSOR,
|
TEMPERATURESENSOR = 1,
|
||||||
ANALOGSENSOR,
|
ANALOGSENSOR = 2,
|
||||||
SCHEDULER,
|
SCHEDULER = 3,
|
||||||
CUSTOM,
|
CUSTOM = 4,
|
||||||
BOILER,
|
BOILER,
|
||||||
THERMOSTAT,
|
THERMOSTAT,
|
||||||
MIXER,
|
MIXER,
|
||||||
|
|||||||
Reference in New Issue
Block a user