Commit Graph
12 Commits
Author SHA1 Message Date
mirsal 38f849e323 Implement sensor status debouncing
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.
2026-10-07 20:17:49 +00:00
mirsal 233a0944c7 Revert "Implement sensor status debouncing"
This reverts commit 0ed1871042.
2026-10-07 13:27:55 +00:00
mirsal 0ed1871042 Implement sensor status debouncing
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.
2026-10-07 10:52:14 +00:00
mirsal 19877c0ac4 Update matrix_sdk to v0.18.0 and implement message pinning 2026-09-17 11:22:29 +00:00
mirsal 9d0490ec01 src: main: Implement commandline arguments parsing
Use clap for argument parsing, read the config file path from the
commandline and implement basic help and version options
2026-09-16 10:21:37 +00:00
mirsal 682ca3d38b src: main: Document a potential panic condition 2026-09-14 17:38:00 +00:00
mirsal d4b16451b9 src: main: Do not send a matrix message on duplicate status updates
Keep track of the last status update and post to the matrix room only if
it changes.
2026-09-14 16:54:56 +00:00
mirsal e392067042 src: main: Remove useless type conversion 2026-09-14 16:02:04 +00:00
mirsal b343536032 src: main: Remove useless return statement 2026-09-14 16:01:40 +00:00
mirsal 57b0760c99 src: main: Remove redundant closure call 2026-09-14 16:00:52 +00:00
mirsal ae1cfa4666 src: Fix comment headers so that clippy is happy 2026-09-14 15:57:21 +00:00
mirsal aa47e38536 Initial release
This is a matrix bot which announces the lol hackerspace's
open / closed state to a list of matrix rooms, it is based
on rumqtt and matrix-rust-sdk. The bot connects to the
configured matrix homeserver and an MQTT broker broadcasting
changes in the door sensor state
2026-09-14 09:18:54 +00:00