aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/config/devices.types.ts10
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