17 lines
511 B
Python
17 lines
511 B
Python
# ZigBee address of door magnet sensor
|
|
MAGNET_ADDR = "d617"
|
|
|
|
# Attribute name defning if door is opened or not
|
|
MAGNET_ATTRIBUTE = "onoff"
|
|
|
|
# Value of previous attribute that represents opened door
|
|
MAGNET_ATTRIBUTE_OPENED_VALUE = True
|
|
|
|
# Delay to wait before marking room as opened
|
|
OPENING_TRIGGER_DELAY = 30
|
|
|
|
# Delay to wait before marking room as closed
|
|
CLOSING_TRIGGER_DELAY = 5
|
|
|
|
LOL_OPENED_CMD = """/var/www/html/status/set-status.sh opened"""
|
|
LOL_CLOSED_CMD = """/var/www/html/status/set-status.sh closed""" |