summaryrefslogtreecommitdiffstats
path: root/mappings.nim
blob: a0bb1ae79923bc73a3fb70fd825604e580088a3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import tables

let endpoints* = {
  "devices":          "/15001/",
  "groups":           "/15004/",
  "scenes":           "/15005/",
  "notifications":    "/15006/",
  "smart_tasks":      "/15010/"
}.toTable

let devices* = {
  "MotionSensor":     "3300",
  "Lightbulb":        "3311",
  "Plug":             "3312",
  "Blind":            "15015"
}.toTable

let parameters* = {
  "DeviceName":       "9001",
  "DeviceCreatedAt":  "9002",
  "DeviceId":         "9003",
  "DeviceAlive":      "9019",
  "DeviceLastSeen":   "9020",

  "PowerState":       "5850",
  "DimmerValue":      "5851",

  "ColorHex":         "5706",
  "Hue":              "5707",
  "Saturation":       "5708",
  "ColorX":           "5709",
  "ColorY":           "5710",
  "ColorTemperature": "5711",
  "TransitionTime":   "5712",

  "blindTrigger":     "5523",
  "BlindPosition":    "5536",
}.toTable