-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconst.py
58 lines (44 loc) · 1.36 KB
/
const.py
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
class Actions:
# Note that Bond Action "Stop" instructs the Bond Bridge to stop sending.
# There are other actions such as "Hold" that send a message to stop the
# controlled-device's current action
STOP = "Stop"
# Relating to Generic Device (GX)
TURN_ON = "TurnOn"
TURN_OFF = "TurnOff"
TOGGLE_POWER = "TogglePower"
# Relating to Motorized Shades (MS), Dimmers and Garage Doors
OPEN = "Open"
TOGGLE_OPEN = "ToggleOpen"
CLOSE = "Close"
HOLD = "Hold"
PAIR = "Pair"
PRESET = "Preset"
# Relating to Ceiling Fan (CF)
SET_SPEED = "SetSpeed"
INCREASE_SPEED = "IncreaseSpeed"
DECREASE_SPEED = "DecreaseSpeed"
TURN_LIGHT_ON = "TurnLightOn"
TURN_LIGHT_OFF = "TurnLightOff"
TOGGLE_LIGHT = "ToggleLight"
SET_BRIGHTNESS = "SetBrightness"
SET_DIRECTION = "SetDirection"
TOGGLE_DIRECTION = "ToggleDirection"
START_DIMMER = "StartDimmer"
START_UP_LIGHT_DIMMER = "StartUpLightDimmer"
START_DOWN_LIGHT_DIMMER = "StartDownLightDimmer"
# Relating to Fireplace (FP)
SET_FLAME = "SetFlame"
INCREASE_FLAME = "IncreaseFlame"
DECREASE_FLAME = "DecreaseFlame"
class DeviceTypes:
CEILING_FAN = "CF"
FIREPLACE = "FP"
MOTORIZED_SHADES = "MS"
GENERIC_DEVICE = "GX"
class Directions:
FORWARD = 1
REVERSE = -1
class Brightness:
MIN = 1
MAX = 100