From 8058fda3263942d8d17848be37c9ce1711834ab4 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Mon, 21 May 2018 13:10:28 +0200 Subject: [PATCH] Send lock/unlock messages using retain flag --- scripts/post_lock | 2 +- scripts/post_unlock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/post_lock b/scripts/post_lock index ac6f825..bcb1e3e 100755 --- a/scripts/post_lock +++ b/scripts/post_lock @@ -1,3 +1,3 @@ #!/bin/bash -mosquitto_pub -t kitchen/frontdoor/status -m "locked" +mosquitto_pub -r -t kitchen/frontdoor/status -m "locked" diff --git a/scripts/post_unlock b/scripts/post_unlock index 0d27616..ac2af3c 100755 --- a/scripts/post_unlock +++ b/scripts/post_unlock @@ -1,6 +1,6 @@ #!/bin/bash -mosquitto_pub -t kitchen/frontdoor/status -m "unlocked" +mosquitto_pub -r -t kitchen/frontdoor/status -m "unlocked" # Wakeup cashdesk wol -i 172.23.2.44 00:0b:ca:94:13:f1