2023-07-19 10:20:07 +02:00
|
|
|
# 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
|
|
|
|
|
2023-08-01 19:17:05 +02:00
|
|
|
LOL_OPENED_CMD = """echo "opened" > /var/run/zigbee-opener/status """
|
|
|
|
LOL_CLOSED_CMD = """echo "closed" > /var/run/zigbee-opener/status """
|