Page 1 of 2

Multi-partition

PostPosted: Wed Aug 21, 2013 6:52 am
by wbresee
Apologies if I am doing this wrong. I am a new poster. First of all thanks for building this great plugin. How do we contribute to the effort?

I have:
- Indigo 6.0.1 Pro
- EnvisaLink 3
- DSC Alarm
- 2 Partitions

The plugin is working for partition 1. Partition 2 activity is showing in the event log but when used in a control page does not show Partition two status correctly and does not allow arming of partition 2. My guess is that it is assuming partition 1 even when configured for partition 2. The event log is showing Partition 2 activity correctly. Is there a plan to enable the plugin to work in a multi-partition house?

Thanks,
Bill

Re: Multi-partition

PostPosted: Thu Aug 22, 2013 8:24 am
by travisc
Hi Bill,

I haven't coded support for 2 partitions yet. Up till now I don't think anyone's needed that so it hasn't been a problem.

I'll try and get that added next time I'm in the code. :)

Travis

Re: Multi-partition

PostPosted: Thu Aug 22, 2013 8:51 am
by durosity
+1 on this if it's not too difficult.. i'd find it quite handy in the not too distant future :)

Re: Multi-partition

PostPosted: Thu Aug 22, 2013 9:10 am
by wbresee
Thanks Travis,

Let me know if I can do anything to help the effort.

Bill

Re: Multi-partition

PostPosted: Fri Dec 12, 2014 5:23 am
by fraggler
Hi, first of all:
Travis i really like your plugin, thx for all the work you have done!

Second: Is there any news about the plan on programming for a second partition?


Regards
:inus

Re: Multi-partition

PostPosted: Wed Dec 17, 2014 2:01 pm
by travisc
Hi fraggler,

I'll have a peek at that next time I'm in the code. From what I recall it shouldn't be that hard to add.

Glad you like the plugin! :)

Travis

Re: Multi-partition

PostPosted: Sun Dec 21, 2014 2:49 am
by fraggler
thanks! Sounds great :)

Re: Multi-partition

PostPosted: Sun Mar 08, 2015 1:01 pm
by brettmil
Hi Travis,

Firstly just to echo the thanks for this plugin. It is great!

Is there any progress on the multi-partition support?

Thanks!

Re: Multi-partition

PostPosted: Sun Mar 08, 2015 8:53 pm
by travisc
brettmil wrote:
Hi Travis,

Firstly just to echo the thanks for this plugin. It is great!

Is there any progress on the multi-partition support?

Thanks!


Hi brettmil,

Sorry, nothing yet. Wish I had more time to work on it at the moment. I've been prepping for a trade show for the past two months. Once that's over and done in about a month I'll have more time for the fun stuff.

Glad you're liking it. :)

Re: Multi-partition

PostPosted: Mon Mar 09, 2015 2:19 pm
by brettmil
Ok no worries.

I have worked out a workaround for now which works for my needs.

I checked the source html of the envisalink control page for the form information that is used when you arm or disarm the second partition:

Code: Select all
<TR><TD>Partition 02</TD><TD BGCOLOR="LIME">Ready </TD>
<TD BGCOLOR="YELLOW"> Trouble</TD>
<TD WIDTH=200px>
<P><FORM ACTION=2 METHOD=GET>
<INPUT TYPE=HIDDEN NAME=A VALUE=3>
<INPUT TYPE=SUBMIT VALUE=ARM>
<input type=hidden name=p value=2>
<SPAN CLASS=LITTLE>USER CODE</SPAN>
<INPUT TYPE=PASSWORD MAXLENGTH=6 SIZE=6 NAME=X>
</FORM>


Therefore I can bypass using the page to arm or disarm the partition by crafting the http request using the form information above:

http://ip_address_of_envis3/2?A=3&p=2&X=pincode_to_arm

as an example:

http://10.105.10.249/2?A=3&p=2&X=4599

I put this my browser but I was prompted to authenticate, you can get past this too without manual intervention:

http://user:password@10.105.10.249/2?A=3&p=2&X=4599

Hey ho! The alarm system armed!

A quick deconstruction of the disarm page and I can see that the A data changes to a 4 so to disarm:

http://user:password@10.105.10.249/2?A=4&p=2&X=4599

And this worked too!

So all I needed to do was create 2 scripts and put these calls into them so they can be called from Indigo:

arm_p2.sh
Code: Select all
#!/bin/bash
curl "http://user:password@10.105.10.249/2?A=3&p=2&X=4599"


disarm_p2.sh
Code: Select all
#!/bin/bash
curl "http://user:password@10.105.10.249/2?A=4&p=2&X=4599"


I can now call these from within Indigo and the alarm arms and disarms!

Seeing as all the other information about the second partition is already obtained by the plugin, this should be all you need!

Re: Multi-partition

PostPosted: Mon Mar 09, 2015 2:52 pm
by travisc
Nice work around!

Re: Multi-partition

PostPosted: Tue Mar 10, 2015 5:16 pm
by howartp
And Brett's alarm code is 4599 if anyone's wondering...? ;-)

Re: Multi-partition

PostPosted: Tue Mar 10, 2015 5:20 pm
by durosity
howartp wrote:
And Brett's alarm code is 4599 if anyone's wondering...? ;-)


Now where does he live? ;)

Re: Multi-partition

PostPosted: Tue Mar 10, 2015 5:22 pm
by howartp
Has he posted control page screenshots with his address on like several people? ;-)

Re: Multi-partition

PostPosted: Mon Mar 16, 2015 3:50 pm
by brettmil
:lol:

I changed the internal addressing I use and code in the url!