X10 security devices

Posted on
Mon Apr 22, 2013 11:10 am
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

X10 security devices

I have a few DS90 security devices and they work well with the plugin except that the 'lastAlarm' field of the device always stays blank. I had some time to dig through it and I find that in the plugin the lastAlarm is updated at line 525 if status=4, but my DS90 goes from 0 to 2 in case of alarm, not to 4.

Code: Select all
if int(status)==4 or int(status)==84:
self.tempList[sensor].updateStateOnServer(key=u"lastAlarm", value=time.strftime('%Y/%m/%d %H:%M:%S'))   


I replaced the 4 with a 2 and it works for me, but it might break it for others, is it dependent on the type of security device ? aren't all using the same protocol ?

Patrick

Posted on
Mon Apr 29, 2013 11:24 pm
RJdeKok offline
Posts: 125
Joined: Mar 27, 2012

Re: X10 security devices

You're absolutely right, 2 is also an alarm status.
Will be solved in the next update.

Posted on
Tue Apr 30, 2013 11:46 am
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

Re: X10 security devices

Great, thank you !

Posted on
Sun May 05, 2013 1:26 pm
RJdeKok offline
Posts: 125
Joined: Mar 27, 2012

Re: X10 security devices


Posted on
Sun May 05, 2013 2:58 pm
DomoPat offline
User avatar
Posts: 210
Joined: Jul 17, 2010
Location: Toulouse, France

Re: X10 security devices

Downloaded and installed, works fine.

But the one in the user contribution library is version 1.1.4 from last year, you should change the link maybe. Check it at:
http://www.perceptiveautomation.com/filelib/index.php?id=186

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 15 guests