Page 1 of 1

Woonveilig Alarmpanel

Posted: Saturday 07 September 2013 12:13
by Keptenkurk
I own a Woonveilig Alarmpanel for some time now. From the Bwired forum i learned that these boxes have a web interface which is accessible with default passwords.
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 :o )

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

Re: Woonveilig Alarmpanel

Posted: Thursday 15 January 2015 12:45
by Keptenkurk
For the record...
Woonveilig updated the firmware somewhere around Christmas. The default login (admin/admin1234) in not valid anymore.
Instead use the username/password you use on the Woonveilig website (converted to lowercase).
/paul

Re: Woonveilig Alarmpanel

Posted: Wednesday 02 March 2016 21:26
by Rluijken
Can anybody tell me how i can integrate the http statement in domoticz without using lua script. By using the http statement itself?

Re: Woonveilig Alarmpanel

Posted: Wednesday 02 March 2016 22:08
by Rluijken
Refer to code below:

#!/bin/bash

-- Woonveilig script v0.1 beta

--- LOCAL PARAMETERS
PANEL_IP="192.168.178.17" -- Alarm panel IP (find this in your router DHCP scope)
USERNAME="xxxxxxxxx" -- Alarm panel username (default admin)
PASSWORD="xxxxx" -- 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=0" http://$USERNAME:$PASSWORD@$PANEL_IP:$PANEL_PORT/action/panelCondPost

--- Done



I keep receiving the following error running the scipt above:


2016-03-02 22:02:44.996 Error: EventSystem: ...m Files\Domoticz\scripts\lua\script_device_alarmtest.lua:16: expected near '/'
2016-03-02 22:02:44.416 (Woonveilig Switch) Lighting 1 (MASTERSWITCH)

Re: Woonveilig Alarmpanel

Posted: Wednesday 02 March 2016 22:29
by jvdz
The code you posted is a bash script, not a LUA script.

Jos

Re: Woonveilig Alarmpanel

Posted: Wednesday 02 March 2016 23:13
by Rluijken
Dear Jos,

THanks for your reply!
This would mean that I cannot run this piece of code on Domoticz running on a windows machine?
It needs to be translated?

Sorry for the NOOB questions here!

Richard

Re: Woonveilig Alarmpanel

Posted: Thursday 03 March 2016 0:03
by stlaha2007
You can if you want.
Basic understanding of bash and (Windows)dos-like scripts is needed.

There is a port of curl available on the net. Don't have a link, just google.

Then you can adjust the script a little like change /usr/bin/curl into somethink like c:\cygwin\bin\curl

Etcetera...
Cant tell you all about it, running on R-Pi's and being SysAdmin on Linux and Windows but keep them seperated and let them do what they can do best natively ;-)

Grtz,
Stephan

Re: Woonveilig Alarmpanel

Posted: Thursday 03 March 2016 9:10
by jvdz
@Richard,
There is a link in the above post which points to a LUA version of the script. I don't have your setup so don't know how it all works, but maybe that one works?
Jos

Re: Woonveilig Alarmpanel

Posted: Thursday 03 March 2016 20:16
by Rluijken
All, i will focus on the lua script and try to use an mended vesion. I have tried rhe version as posted (ofcourse with amended server details) but still to no avail. I have issues assinging the correct drive path. I will not recognise the c:PROGRAM FILES etc...

Thanks for your replies will keep you posted,

Richard

Re: Woonveilig Alarmpanel

Posted: Thursday 24 November 2016 22:35
by renebr
Hello,

I was wondering if its still possible to connect to the woonveiling system from domotiz.
i would like to have domoticz go kill all the lights in house when i enable the alarm.
Also when the alarm is triggered i would like to switch all lights on for the videosurveillance.

Is something like this possible ? and how ?

Re: Woonveilig Alarmpanel

Posted: Monday 02 January 2017 8:23
by Keptenkurk
@renebr
Sorry for the late reply. Yes: with my (old) unit (CTC-1716 1.0.26 I1716E09M) this is still possible. Cannot tell if Woonveilig changed to other hardware in the meantime.
If you can login to the device's alarmpanel webpage (on your local lan, not at the Woonveilig site) you're good.
/paul