Jablotron Alarm network interface to Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
joepurlings
Posts: 2
Joined: Saturday 02 September 2017 20:17
Target OS: Raspberry Pi
Domoticz version:
Contact:

Jablotron Alarm network interface to Domoticz

Post by joepurlings » Monday 04 September 2017 20:26

Hello,

I was trying to interface my Jabloton Profi 60 series alarm to Domoticz.
Since the alarm is supplied with a network card, I'm trying to use no additional hardware.

I wrote a very tiny python script, that enables me to send a code to lock or unlock, like I would do using the keypad:

Code: Select all

#!/usr/bin/env python
import requests
r = requests.get('http://alarmIP/menu7.html?__SQ=1234&submit=Submit+Sequence', auth=('login', 'verysecretpassword'))
alarmIP is the IP address of the alarm interface, 1234 is the code being entered, login and verysecretpassword are the credentials for the web interface.

So far, so good, that works!
Now I try to retreive the alarm status Armed/Disarmed.

In menu7.html, line 19 switches between:
<tr><td width=100px><b>ARMED </b></td><td><table class="usr_table1">
and
<tr><td width=100px><b>DISARMED </b></td><td><table class="usr_table1">

Does anybody have a clue how I could easily translate this from HTML to a dummy switch in Domoticz?
I could think of a few ways, but they all seem pretty bloated to me.

Also, does anybody know if and how I could read my Joblatron 433Mhz sensors using RFlink? It would be nice if I could give the alarm motion sensors a second use to turn on lights or such.

Thanks in advance!
Joep Urlings

joepurlings
Posts: 2
Joined: Saturday 02 September 2017 20:17
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Jablotron Alarm network interface to Domoticz

Post by joepurlings » Thursday 12 October 2017 11:56

Hello,

Sorry for kicking my own topic, could someone please take a look and help me further?

I think I've already got to a point where the integration of this alarm system is quite usable, but status feedback would be very nice to have.

Kind regards,
Joep

User avatar
emme
Posts: 625
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Jablotron Alarm network interface to Domoticz

Post by emme » Thursday 12 October 2017 12:46

I'm not really a python programmer rather than an entusiastic :P :P

try with regex:

Code: Select all

import re
re.sub('<[^>]*>', '', r)
this would return only ARMED and DISARMED as string... then with a simple if you can switch on of off the device
ciao
M
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

Post Reply

Who is online

Users browsing this forum: BakSeeDaa and 11 guests