Files
dpu-shared/dist/homeassistant.d.ts
2026-02-08 14:36:11 +01:00

37 lines
923 B
TypeScript

import type { TimeBetween } from "./timehelper";
export type HomeAssistantEntity = {
entity_id: string;
state: string;
attributes: {
state_class?: string;
unit_of_measurement?: string;
icon?: string;
friendly_name?: string;
[key: string]: unknown;
};
last_changed: string;
last_reported: string;
last_updated: string;
context: {
id: string;
parent_id: string | null;
user_id: string | null;
};
};
export interface HomeAssistantDeskPositionResult {
raw: HomeAssistantEntity;
as_boolean: boolean;
last_changed: TimeBetween;
}
export type API_HA_DeskPosition = {
is_standing: boolean;
last_changed: string;
last_changed_seconds: number;
};
export type HA_Update = {
entity_id: string;
state: string;
attributes: unknown;
timestamp: string;
};
//# sourceMappingURL=homeassistant.d.ts.map