-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.py
41 lines (22 loc) · 1016 Bytes
/
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
# Please set all your variables here
################ Required !!! ##################################
# mac address of device to track (Required)
bleAddr = "00:A0:C9:14:C8:29"
# detection threshold to classify device as away (number of times device has to be scanned as away)
threshold = 3
# number of seconds to sleep between scans in seconds
scan_sleep_time = 5
################################################################
################ Optional ######################################
## set to True if you want to enable extra feature
# the ability to use the botton on itag bluetooth tracker
# to control a home assistant endpoint
itag = True
### Only need to fill in if itag is set to True
# the url you want to call if itag button is pressed
url = "https://homeass.duckdns.org/api/services/light/toggle"
# the entity_id you want to call
entity_id = "light.bedroom"
# your hass password
hassPasswd = "password"
################################################################