Hi All,
I’ve created one sensor and one switch to arm/disarm the Woonveilig WV-1716 alarm system. Some information about the system:
- It’s a rebranded CTC-1716 by Climax Techology
- it has a web interface running on port 80, default username/password are admin / admin1234
- Can be easily programmed through web interface
- You do not need a woonveilig subscription to use the alarm system with Home Assistant.
If anyone is intersted in developing a full-fledged plugin for Home Assistant I have the API documentation as a PDF and I am willing to share it. Maybe instead of a switch someone could make it into an actual Alarm System plugin.
For now I’ve handled it by using switches and getting the history information and parsing it as text. The values returned are JSON-Ish but not valid JSON so I coulndt make it “pretty”.
Replace 192.168.1.X with the actual IP, replace the admin:admin1234 with the correct username and password if you’ve changed this.
The sensor:
sensor:
- platform: command_line
name: Alarm Status
command: “/usr/bin/curl -s -S -X GET http ://admin:[email protected]/action/historyGet | tail -n 3”
value_template: >-
{%- if ‘Disarm’ in value -%}
Disarmed
{%- elif ‘Arm’ in value -%}
Armed
{%- elif ‘Home’ in value -%}
Home
{%- elif ‘Burglary’ in value -%}
Burglary
{%- endif -%}
friendly_name: Alarm
Switch:
switch:
platform: command_line
switches:
alarm:
command_on: “/usr/bin/curl -X GET http ://admin:[email protected]/action/panelCondPost?mode=0”
command_off: “/usr/bin/curl -X GET http ://admin:[email protected]/action/panelCondPost?mode=2”
command_state: “/usr/bin/curl -s -S -X GET http ://admin:[email protected]/action/panelCondGet”
value_template: >-
{%- if ‘Disarm’ in value -%}
false
{%- elif ‘Arm’ in value -%}
true
{%- endif -%}
friendly_name: Alarm
The switch only turns the alarm on/off, the sensor detects the status and can send a push message/etc. When combined into a group it looks okayish. Can’t upload screenshots right now as I am still a “newbie”.