This introduces a configurable debouncing delay before which no update is sent to matrix, which avoids flooding the matrix room with updates when the door is opened and closed in quick succession. It also allows to quickly open and close the door without sending notifications. The debouncing window can be configured in config.yml, see example.
26 lines
626 B
Plaintext
26 lines
626 B
Plaintext
---
|
|
|
|
mqtt:
|
|
id: "matrix-lolopener" # has to be unique
|
|
host: mosquitto.labolyon.dn42
|
|
port: 1883
|
|
topic: "zigbee/entree"
|
|
|
|
rooms:
|
|
- "!iFCnqQcvrVIeehrjQO:chat.labolyon.fr"
|
|
|
|
debounce_delay: 10 # seconds
|
|
|
|
# username / password login
|
|
# /!\ will create a new device every time the bot starts
|
|
username: "login"
|
|
password: "password"
|
|
|
|
# alternatively, token-based login from an existing session
|
|
# See: https://spec.matrix.org/v1.19/client-server-api/#login
|
|
#user_id: "@lolopener:chat.labolyon.fr"
|
|
#device_id: "STCRDGFKWZ"
|
|
#access_token: "syt_XXXXXXXXXXXX_XXXXXXXXXXXXXXXXXXXX_XXXXXX"
|
|
|
|
homeserver_uri: "https://chat.labolyon.fr/"
|