DashboardItem[]

This commit is contained in:
proddy
2024-10-10 21:21:45 +01:00
parent 2bdd4afd23
commit faa019863b

View File

@@ -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,