i thought i'd share a script i made for resetting panic mode of smoke detectors, i bet its kinda specific to my domoticz setup, but maybe this helps some ppl to make a better one.
#!/bin/bash
## Setting Variable's
Domoticz_IP=
Domoticz_Port=
# DO NOT EDIT BELOW THIS LINE
declare -a arr=(`curl 'http://'$Domoticz_IP':'$Domoticz_Port'/json.htm?type=devices' 2>/dev/null | jq '.result[] | select(.Type=="Security")' | jq '.idx'`)
for index in "${arr[@]}"
do
index="${index//\"}"
echo `curl 'http://'$Domoticz_IP':'$Domoticz_Port'/json.htm?type=command¶m=resetsecuritystatus&idx='$index'&switchcmd=Normal' 2>/dev/null | jq -r .status`
done
Domoticz Setup:
RAZBERRY.
Win 2008 Server On ESX USB Connected RFXtrx433E.
all externaly secured with a Sophos UTM firewall.
3x kaku dimmers
1x benext dimmer
3x kaku motion sensors
Eneco Toon
Kaku doorbell
This is a script u need to execute within a switch, for example when the alarm is triggered u turn on a dummy switch, and then when this switch is turned off , the off action (this script) is executed
Domoticz Setup:
RAZBERRY.
Win 2008 Server On ESX USB Connected RFXtrx433E.
all externaly secured with a Sophos UTM firewall.
3x kaku dimmers
1x benext dimmer
3x kaku motion sensors
Eneco Toon
Kaku doorbell
Kroontje wrote:Maybe a stupid question, ... but is it also possible to put smoke sensors (Fibaro) in panic mode so the siren can be used in an alarm system?
sorry for late answer, at this point i havent found a option to do so.
Domoticz Setup:
RAZBERRY.
Win 2008 Server On ESX USB Connected RFXtrx433E.
all externaly secured with a Sophos UTM firewall.
3x kaku dimmers
1x benext dimmer
3x kaku motion sensors
Eneco Toon
Kaku doorbell
ipAddress = "192.168.1.2" --IP address of the Domoticz server
port = "8080" --Port of the Domoticz server
IDX = "34" --IDX value of the alarm siren
commandArray["OpenURL"]="http://"..ipAddress..":"..port.."/json.htm?type=command¶m=resetsecuritystatus&idx="..IDX.."&switchcmd=Normal"