Woonveilig Alarmpanel

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Woonveilig Alarmpanel

Post 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
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Re: Woonveilig Alarmpanel

Post 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
Rluijken
Posts: 4
Joined: Tuesday 01 December 2015 8:06
Target OS: Windows
Domoticz version:
Contact:

Re: Woonveilig Alarmpanel

Post 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?
Rluijken
Posts: 4
Joined: Tuesday 01 December 2015 8:06
Target OS: Windows
Domoticz version:
Contact:

Re: Woonveilig Alarmpanel

Post 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)
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Woonveilig Alarmpanel

Post by jvdz »

The code you posted is a bash script, not a LUA script.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Rluijken
Posts: 4
Joined: Tuesday 01 December 2015 8:06
Target OS: Windows
Domoticz version:
Contact:

Re: Woonveilig Alarmpanel

Post 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
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: Woonveilig Alarmpanel

Post 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
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Woonveilig Alarmpanel

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Rluijken
Posts: 4
Joined: Tuesday 01 December 2015 8:06
Target OS: Windows
Domoticz version:
Contact:

Re: Woonveilig Alarmpanel

Post 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
renebr
Posts: 1
Joined: Thursday 24 November 2016 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Holland
Contact:

Re: Woonveilig Alarmpanel

Post 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 ?
User avatar
Keptenkurk
Posts: 103
Joined: Wednesday 21 August 2013 17:24
Target OS: -
Domoticz version:
Location: Waalre, The Netherlands
Contact:

Re: Woonveilig Alarmpanel

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest