diff options
| author | Autumn <git@autumnfo.rest> | 2026-05-11 21:00:58 +0100 |
|---|---|---|
| committer | Autumn <git@autumnfo.rest> | 2026-05-11 21:00:58 +0100 |
| commit | 8a6e03e732f86a53459d9f7cb40ff087eab8830f (patch) | |
| tree | 5f72b0aba3975e23c412c8e8fffee05c3fd96335 /src/lib | |
| parent | ca556370259f100b3f21dd10344741fcf4d48597 (diff) | |
[config] added device types
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config/devices.types.ts | 10 |
1 files changed, 9 insertions, 1 deletions
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 |
