This morning i managed to change the Armed status from a script using curl to post the new status (just learned the vast possibilities of curl

For now this works, more to follow...
EDIT: Added the enhanced version in the Example LUA scripts thread
EDIT2: It can now also read the current Alarmpanel state
Code: Select all
#!/bin/bash
### Woonveilig script v0.1 beta
### LOCAL PARAMETERS
PANEL_IP="192.168.1.94" # Alarm panel IP (find this in your router DHCP scope)
USERNAME="admin" # Alarm panel username (default admin)
PASSWORD="admin1234" # Alarm panel password (default admin1234)
PANEL_PORT="80" # Alarm panel IP port (default 80)
### END OF USER CONFIGURABLE PARAMETERS
### POST new Arming status to Alarm panel
### mode=0 for Armed-Not at home
### mode=1 for Armed Home
### mode=2 for Disarmed
/usr/bin/curl -d "mode=1" http://$USERNAME:$PASSWORD@$PANEL_IP:$PANEL_PORT/action/panelCondPost
### Done