Relay alarm events to MQTT instead of IRC

This commit is contained in:
polyfloyd 2025-06-04 13:21:49 +02:00
parent 00bc26baf5
commit 8bf379d3eb

View file

@ -11,10 +11,7 @@ DESCR="$3"
SIA_CODE_STR="$4" SIA_CODE_STR="$4"
SIA_CODE_DESCR="$5" SIA_CODE_DESCR="$5"
# Ignore communication tests. mqtt-simple -h mqtt.bitlair.nl -p 'bitlair/alarm/events' -m "$CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
if [[ ! "$CODE" =~ "RP" ]]; then
irc-say "Alarm event: $CODE -- $SIA_CODE_STR: $SIA_CODE_DESCR"
fi
case "$CODE" in case "$CODE" in
C[LAFJKQS]*): C[LAFJKQS]*):