We have moved at community.getvera.com

Author Topic: UI7 and GE Caddx Plugin  (Read 31556 times)

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #75 on: September 24, 2015, 06:54:32 am »
I am unable to disarm either from the GUI or the iOS App.  I also tried to input my alarm code under the "Arming Options" box and click Disarm.  It seems like the Disarm button is not functioning or responding.  Am I doing something wrong or missing something?

This is consistent with configuring the alarm panel to reject the message type "Primary Keypad Function".  Check if this is the case by visiting the Advanced tab > Configure.  If it is off then you will need to turn it on by using the Go To Program feature of your alarm panel's keypad.

Failing that, you will need to watch the Luup log while you attempt to perform a disarm operation.  (Create a sacrificial PIN if you share your log on the forum, because the PIN can appear in the log.) The log should tell you if it succeeds or fails, and if the latter, why.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5630
  • Karma: +157/-382
Re: UI7 and GE Caddx Plugin
« Reply #76 on: October 26, 2015, 10:11:39 pm »
Anyone running the new 7.0.12 beta and have last tripped false times? I'm using imperihome and before beta ui7 it was reading right. I seem to have weird issues now where all sensors have similar tripped times of a few min ago even though they haven't been triggered.

Using the device advanced tab in vera and the unix time that also seems to not match my imperihome app nor the last time the device was actually tripped.

Anyone else see the same?

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #77 on: October 26, 2015, 11:54:38 pm »

Anyone running the new 7.0.12 beta and have last tripped false times?

I'm still on 7.0.10 but I don't use the LastTrip variable anyway so I wouldn't notice a change.

Perhaps a guard needs to be added to the Lua code for zones: set LastTrip only if the old value of Tripped was 0. I didn't have that in the code because, well, there's no specification for how LastTrip is meant to work.

I'm open to recommendations based on how people use LastTrip.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5630
  • Karma: +157/-382
Re: UI7 and GE Caddx Plugin
« Reply #78 on: October 27, 2015, 12:14:00 am »

Anyone running the new 7.0.12 beta and have last tripped false times?

I'm still on 7.0.10 but I don't use the LastTrip variable anyway so I wouldn't notice a change.

Perhaps a guard needs to be added to the Lua code for zones: set LastTrip only if the old value of Tripped was 0. I didn't have that in the code because, well, there's no specification for how LastTrip is meant to work.

I'm open to recommendations based on how people use LastTrip.

Well I was on 7.09 before this beta update and it was working just fine. I use imperihome and below each motion or door sensor it shows (in 12h format) what time the sensor was last tripped. It's good info for me to find out when the garage door, side gate or any sensor was last opened or anything real fast. So I just glance at it but don't use it for any PLEG or other conditions.

I just know what was working is now not, but I have no idea why or where it got broken. The problem happened after update but not sure if it broke on the plugin side, Vera UI, or Imperihome side.

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #79 on: October 27, 2015, 02:05:44 am »
Is the LastTrip time advancing on zones that are tripped, on zones that are untripped, or both?

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5630
  • Karma: +157/-382
Re: UI7 and GE Caddx Plugin
« Reply #80 on: October 27, 2015, 02:38:39 am »
Currently I see no pattern.  I can change one sensor from bypassed to armed and the last tripped resets to now along with half the other sensors even tho non of them tripped. Any why only half vs all or just one i have no idea.

EDIT: it doesn't do this with the virtual motion senor plugin im using for my camera's. Those motions are working fine. But the motions from the alarm panel are the same screwy way the door sensors from the alarm are.
« Last Edit: October 27, 2015, 02:42:05 am by integlikewhoa »

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #81 on: October 27, 2015, 04:00:11 am »
If LastTrip is changing while a zone is untripped then it can't be the plugin doing it. The only place in the olugin code that updates LastTrip is in an "if tripped == 1" test.

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5630
  • Karma: +157/-382
Re: UI7 and GE Caddx Plugin
« Reply #82 on: October 27, 2015, 02:38:27 pm »
If LastTrip is changing while a zone is untripped then it can't be the plugin doing it. The only place in the olugin code that updates LastTrip is in an "if tripped == 1" test.

A sensor doesn't have to be tripped for it to update. For example no one is home now and all doors and windows were closed when I left, they still show that and no alerts or anything has went off that they changed state........ But If I look threw the sensors and the times below more then 75% of them say last tripped was an hour ago and give the time of 8:30am which I was at work by then. Funny part is those 75% all show matching time of 8:30am but a few don't and I'm unsure of the link or lack of between them.

I been using a unix timestamp converter and checking the "LastTripped" time to what imperihome is showing and that seems to match up.

The only other thing I need to test is the armed vs not armed. I used to run with all of them armed. But some interior doors always stay open and was causing my UI (that I don't use much) to not look so pretty with the alerts. So I un armed all my sensors since PLEG is set for either and I do my own logic vs. arming them or not.

I noticed that in the advanced menu under the sensors there is both a "LastTrip" and a "ArmedTripped" along with a "IgnoreTripTime"
I have never used any but the "LastTrip" before.

Offline RdP

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: UI7 and GE Caddx Plugin
« Reply #83 on: January 05, 2016, 12:03:32 pm »
Hi,
I'm new to the Vera, I have a Vera Edge with the latest firmware and the latest version of the plugin, connected via a USB to serial to my Caddx panel. I Know the Caddx panel very well, I wrote a plugin for Homeseer for it...

The problem I have is that I can not connect to the panel. I read to the forum but could not find a resolution.

I used the same cable and USB to serial cable as I use for my HomeSeer system, so that could not be an issue.
I configured the serial interface butI get errors:
GET_LANG(system_error,System error) : Device: 3. Fail to load implementation file D_Codeset_1091.xml.lzo
Caddx NX584 Security System[8] : Running Lua Startup

It looks like it never ends the Lua startup....

Any idea in what direction I have to look for a solution ?

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5630
  • Karma: +157/-382
Re: UI7 and GE Caddx Plugin
« Reply #84 on: January 05, 2016, 01:31:59 pm »
Hi,
I'm new to the Vera, I have a Vera Edge with the latest firmware and the latest version of the plugin, connected via a USB to serial to my Caddx panel. I Know the Caddx panel very well, I wrote a plugin for Homeseer for it...

The problem I have is that I can not connect to the panel. I read to the forum but could not find a resolution.

I used the same cable and USB to serial cable as I use for my HomeSeer system, so that could not be an issue.
I configured the serial interface butI get errors:
GET_LANG(system_error,System error) : Device: 3. Fail to load implementation file D_Codeset_1091.xml.lzo
Caddx NX584 Security System[8] : Running Lua Startup

It looks like it never ends the Lua startup....

Any idea in what direction I have to look for a solution ?

I don't know those errors and I might be way outta line here but here's my 2 cents.

I know some USB to Serials (depending on the chip in it) don't work on VERA..... But I think if you can see the usb to serial converter in Apps/develop apps/ serial port configuration your probley good to go. Also in that same window you need to make sure your setting are correct and you have it pointing to what device you using (in this case "Caddx NX584 Security System []" should be what you chose). Has all that been done and seem good? Buad rate is matching what you have set in the alarm panel, Data bits 8 stop bits 1

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #85 on: January 07, 2016, 07:47:33 pm »
Annoyingly, I wrote a response but it has disappeared. I will try again.

Catch a Luup log while the plugin is starting up. This will tell you if it is in an infinite loop (and maybe what is looping) or if the bytes the plugin is sending out to the panel are just getting blackholed. Being permanently stuck in startup is symptomatic of the Vera not knowing how to communicate with, or not having enough power to drive, the USB to Serial adapter. I've talked about this before, so find any of my prior posts that recommend a powered USB hub.

I'm not convinced that the other error you are getting is related. It's completely unfamiliar to me.

Offline pghkenny

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-2
Re: UI7 and GE Caddx Plugin
« Reply #86 on: January 16, 2016, 06:33:06 am »
MCV decided that the Vera would "own" a zone's bypass state and that certain operations on Home Modes would not have the option of leaving a zone in its current bypass state. 

futzle - thank you for this plugin. It clearly represents a lot of personal time invested, and a ton of your personal time answer community questions. Over the holidays, I tried both Vera Edge and HS3 with an always on desktop over the holidays with my Caddx panel. I had no intention of trying HS3, but I found Vera use interface design decisions like the one you mention above to be deal breakers for the Vera. I also got the general impression that the Vera hardware specs hasn't quite caught up with the ambitions of the platform. Ten years ago before three young kids at home, I would have enjoyed the challenge of reviewing logs or source to figure out an issue, but with time at a premium, the Vera platform is a bit frustrating. I don't want my home control box owning zone behavior of my security system, and remote bypass control is a useful to me. The stability of UI7 serial connection to panel was marginal on Vera and 100% stable on PC with HS3. I tried Vera with and without a powered USB hub with no better luck. I'm sure it was solvable, but I just lost patience and switched to HS3.  So anyways, I just wanted to sincerely thank you for contributing to the hobby. I'm not sure what to do with my Vera... perhaps someday it will support IFTTT and I can think of something clever.   

Offline pghkenny

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-2
Re: UI7 and GE Caddx Plugin
« Reply #87 on: January 16, 2016, 06:47:05 am »
Hi,
I'm new to the Vera, I have a Vera Edge with the latest firmware and the latest version of the plugin, connected via a USB to serial to my Caddx panel. I Know the Caddx panel very well, I wrote a plugin for Homeseer for it...

The problem I have is that I can not connect to the panel. I read to the forum but could not find a resolution.

I used the same cable and USB to serial cable as I use for my HomeSeer system, so that could not be an issue.
I configured the serial interface butI get errors:
GET_LANG(system_error,System error) : Device: 3. Fail to load implementation file D_Codeset_1091.xml.lzo
Caddx NX584 Security System[8] : Running Lua Startup

It looks like it never ends the Lua startup....

Any idea in what direction I have to look for a solution ?

I picked up home automation hobby over holidays after a several year break from X10. I tried both the Vera and HS3 with the Caddx panel. I was able to get serial to connect on Vera and work for a while with the plugin, but the connection would drop sporadically (and I found the Vera interface to be difficult to wrestle into the behavior I wanted efficiently) so I ended up using HS3. I agree powered USB hub should help, and also check the chipset of the serial converter. I hesitate to tell you the one I am using because it has been 100% stable with HS3 on a PC for almost a month now, but was much less so on the Vera over a two day period. I am pretty sure changing the serial converter would have resolved the problem, but I just altogether lost patience with Vera. 

Offline koolest

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: UI7 and GE Caddx Plugin
« Reply #88 on: January 27, 2016, 09:17:48 pm »
Hi Futzle,

I am using the Caddx Networx 8V2 with the NX-584E via the Wifi to Serial.  I've updated to your latest 81 version and was able to add all the zones and able to arm/disarm/stay the system via GUI and iOS. However, I do not see a "bypass" option of each zone. Under Devices, I see all my 28 (skip 3-8) zones. For some reasons, zones 9-18 are always ARMED, and zones 1-2, 19-28 are always DISARMED. These DISARMED zones will not allow me a Arm. Regardless if I arm/disarm/stay the system, these status always be the same.  Am I doing something wrong during the programming? I am using the latest UI7 and your plugin was download from the App. I did not change any files.

Please advise. Thanks!

Offline futzle

  • Moderator
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: UI7 and GE Caddx Plugin
« Reply #89 on: January 27, 2016, 11:14:19 pm »

For some reasons, zones 9-18 are always ARMED, and zones 1-2, 19-28 are always DISARMED. These DISARMED zones will not allow me a Arm. Regardless if I arm/disarm/stay the system, these status always be the same.

Tying the Vera sensor's arm state to the Panel zone's bypass state was an experiment which worked well in UI5 but broke in UI7. MCV added House Mode functionality to UI7 which asserts ownership of a sensor's arm/bypass state. With UI7 I recommend disabling the configuration location for "toggle bypass" in the alarm panel settings. If you do this then the arm/bypass state of each sensor in Vera is independent of the zone's bypass state in the panel. You can turn them on or off and have no effect at all on the corresponding zone in the panel.

The arm/stay/disarmed state of the partition is entirely separate. Don't conflate it with Vera sensor arming.

I've talked about this before on the forum, at length. Go look at those discussions.