Initial commit
This commit is contained in:
commit
0a36fb9729
15 changed files with 88 additions and 0 deletions
10
disarmed.d/10_log
Executable file
10
disarmed.d/10_log
Executable 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"
|
4
disarmed.d/20_entrance_logos_on
Executable file
4
disarmed.d/20_entrance_logos_on
Executable 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
3
disarmed.d/20_statefile
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo -n 1 > /tmp/alarmdisarmed
|
3
disarmed.d/20_switch_on
Executable file
3
disarmed.d/20_switch_on
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
# 48p switch with all outlets on it
|
||||
apc-switch 24 on
|
3
disarmed.d/20_trap_leds_poweron
Normal file
3
disarmed.d/20_trap_leds_poweron
Normal 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
3
disarmed.d/24_bar_on
Executable 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
3
disarmed.d/50_mqtt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/usr/local/bin/mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/alarm' -m "disarmed $2"
|
Loading…
Add table
Add a link
Reference in a new issue