Initial commit

This commit is contained in:
polyfloyd 2025-04-06 12:47:07 +02:00
commit 0a36fb9729
15 changed files with 88 additions and 0 deletions

10
disarmed.d/10_log Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
PROM="$1"
CODE="$2"
DESCR="$3"
SIA_CODE_STR="$4"
SIA_CODE_DESCR="$5"
DATE=`date`
echo "$DATE: Alarm event: $PROM $CODE: $DESCR -- $SIA_CODE_STR: $SIA_CODE_DESCR" >> "/var/log/alarm.log"

View file

@ -0,0 +1,4 @@
#!/bin/bash
mqtt-simple -h mqtt.bitlair.nl -p bitlair/power/shelly/02/command/switch:0 -m on
mqtt-simple -h mqtt.bitlair.nl -p bitlair/power/shelly/04/command/switch:0 -m on

3
disarmed.d/20_statefile Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
echo -n 1 > /tmp/alarmdisarmed

3
disarmed.d/20_switch_on Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
# 48p switch with all outlets on it
apc-switch 24 on

View file

@ -0,0 +1,3 @@
#!/bin/bash
mqtt-simple -h mqtt.bitlair.nl -p "bitlair/power/trapleds/cmnd/Power1" -m "ON"

3
disarmed.d/24_bar_on Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
mqtt-simple -h mqtt.bitlair.nl -p bitlair/power/shelly/01/command/switch:0 -m on

3
disarmed.d/50_mqtt Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
/usr/local/bin/mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/alarm' -m "disarmed $2"