1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
8c0ba51e9b doorstate: publish state on startup
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2020-06-06 21:26:59 +02:00
8b49c2f332 doorstate: automatically reconnect if mqtt broker fails
We had a bug: doorstate didn't reconnect to the broker if it temporarily
disappeared.

Fix this by using start_loop() (which starts a thread that observes the
broker and automatically reconnects) instead of the synchronous loop()
method.

Thomas Basler <github.thomas@familie-basler.net>
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-07 23:16:18 +02:00
71e55ec523 doorstate: reduce logging output
Remove unnecessary output

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-07-07 23:03:24 +02:00
07a0ac5307 doorstate: reimplement doorstate in python
Furthermore, add initial support for the alarm topic.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-23 23:17:31 +02:00
6fc923a371 doorstate: Use variable instead of constant value
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2019-06-15 22:42:01 +02:00
b9a1bfc566 Publish door state to mqtt
Assisted by nice gpio-wait helper.

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
2018-10-07 01:50:41 +02:00