mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 02:14:26 +01:00
scripts: simplify mqtt
Only publish door status topic, rest will be done by the opennhab server. Username, password and mqtt's hostname are stored in user's local .config. Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
This commit is contained in:
parent
9ae9304551
commit
020ac1b38b
@ -1,8 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Send command twice
|
||||
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""
|
||||
mosquitto_pub -h sushi.binary.kitchen -t kitchen/shutdown -m ""
|
||||
|
||||
# Send lock to Christians Node Red for Twitter sink
|
||||
mosquitto_pub -h sushi.binary.kitchen -t kitchen/frontdoor/status -m "locked"
|
||||
mosquitto_pub -t kitchen/frontdoor/status -m "locked"
|
||||
|
@ -1,11 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set blue moodlights
|
||||
mosquitto_pub -h sushi.binary.kitchen -t "kitchen/moodlights/set/a" -m "#0000ff"
|
||||
mosquitto_pub -h sushi.binary.kitchen -t "kitchen/moodlights/set/a" -m "#0000ff"
|
||||
|
||||
# Send lock to Christians Node Red for Twitter sink
|
||||
mosquitto_pub -h sushi.binary.kitchen -t kitchen/frontdoor/status -m "unlocked"
|
||||
mosquitto_pub -t kitchen/frontdoor/status -m "unlocked"
|
||||
|
||||
# Wakeup cashdesk
|
||||
wol -i 172.23.2.44 00:0b:ca:94:13:f1
|
||||
|
Loading…
Reference in New Issue
Block a user