From 8a6e03e732f86a53459d9f7cb40ff087eab8830f Mon Sep 17 00:00:00 2001 From: Autumn Date: Mon, 11 May 2026 21:00:58 +0100 Subject: [config] added device types --- src/lib/config/devices.types.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/config/devices.types.ts b/src/lib/config/devices.types.ts index d960f7e..abfa270 100644 --- a/src/lib/config/devices.types.ts +++ b/src/lib/config/devices.types.ts @@ -2,10 +2,18 @@ // ~~~ device config types // +// device types +export enum DEVICE_TYPE { + LIGHT = "light" + MOTION = "motion" + BUTTON = "button" +} + // individual device configs export interface DeviceConfig { name: string, - mqtt: string + mqtt: string, + type: DEVICE_TYPE } // global device config -- cgit v1.3