-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.py
More file actions
41 lines (35 loc) · 771 Bytes
/
Constants.py
File metadata and controls
41 lines (35 loc) · 771 Bytes
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
# Constants and Enums for TrumpyBear app
import enum
from enum import IntEnum
class Role(IntEnum):
unknown = 0
owner = 1
friend = 2
relative = 3
aquaintance = 4
player = 5
unwanted = 6
class State(enum.Enum):
initialized = 0
starting = 1
waitname = 2
waitface = 3
waitside = 4
waitfront = 5
waitrecog = 6
role_dispatch = 7
four_qs = 8
aborting = 9
waitrange = 10
ranger_once = 11
ranger_loop = 12
ranger_leave = 13
class Event(enum.Enum):
start = 0 # from mqtt (hubitat)
reply = 1 # tts from mycroft
pict = 2 # from mqttcamera
recog = 3 # from face_recognition server
watchdog = 5 # timer fired
ranger = 6 # from autoranger device
abort = 7 # from mqtt (hubitat)
motion = 8 # from the camera