aboutsummaryrefslogtreecommitdiff
path: root/src/lib/config/devices.types.ts
blob: abfa270ffeac083ccd6834d393a103000808f1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// ~~~ 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,
    type: DEVICE_TYPE
}

// global device config
export default interface DevicesConfig {
    [ index: string ]: DeviceConfig
}