Relay alarm events to MQTT instead of IRC
This commit is contained in:
parent
00bc26baf5
commit
8bf379d3eb
1 changed files with 1 additions and 4 deletions
|
@ -11,10 +11,7 @@ DESCR="$3"
|
|||
SIA_CODE_STR="$4"
|
||||
SIA_CODE_DESCR="$5"
|
||||
|
||||
# Ignore communication tests.
|
||||
if [[ ! "$CODE" =~ "RP" ]]; then
|
||||
irc-say "Alarm event: $CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
|
||||
fi
|
||||
mqtt-simple -h mqtt.bitlair.nl -p 'bitlair/alarm/events' -m "$CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
|
||||
|
||||
case "$CODE" in
|
||||
C[LAFJKQS]*):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue