-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_config.py
68 lines (66 loc) · 1.66 KB
/
device_config.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
59
60
61
62
63
64
65
66
67
68
"""
ESP32 device configuration
Keys are Unique ID for the board; values are dictionaries matching the
keyword arguments of the ``PrometheusDevice`` class in ``promdevice.py``.
Within the ``pins`` list, values are dictionaries matching the keyword arguments
of the ``GpioSensor`` class in ``promdevice.py``.
"""
DEVICE_CONFIG = {
'0cb815c328dc': {
'name': 'esp32-frontdoor',
'pins': [
{
'name': 'latch',
'pin_num': 32,
'pull_up': True,
'on_value': 1
},
{
'name': 'leftmag',
'pin_num': 19,
'pull_up': True,
'on_value': 0
},
{
'name': 'rightmag',
'pin_num': 18,
'pull_up': True,
'on_value': 0
}
]
},
'0cb815c53148': {
'name': 'esp32-sidedoor',
'pins': [
{
'name': 'latch',
'pin_num': 32,
'pull_up': False,
'on_value': 0
},
{
'name': 'magnet',
'pin_num': 19,
'pull_up': True,
'on_value': 0
}
]
},
'0cb815c43a2c': {
'name': 'esp32-rollup',
'pins': [
{
'name': 'latch',
'pin_num': 32,
'pull_down': True,
'on_value': 0
},
{
'name': 'magnet',
'pin_num': 19,
'pull_up': True,
'on_value': 0
}
]
}
}