The Vera Community forums have moved!

Advanced => Plugins & Plugin Development => Programming => Caddx/GE/NetworX NX-584/NX-8E Security System => Topic started by: ElMagnifico on August 15, 2014, 08:50:27 am

Title: UI7 and GE Caddx Plugin
Post by: ElMagnifico on August 15, 2014, 08:50:27 am
@Futzle
What was I thinking, Lol. Yes I just took the plunge and upgraded from the UI6 to the released UI7 and It broke the Connect tab, configure, zones, users tab
Error executing function J_CaddxNX584SerialConnection.js.serialConnection(): undefined is not a function
Error executing function J_CaddxNX584Security.js.zoneTab(): undefined is not a function
Error executing function J_CaddxNX584Security.js.eventLogTab(): $F is not defined

It is still semi working from the UI7. I can arm the system from the ui7 but it will only engage the Stay mode?? it popped up a red bar at the bottom of the device stating device could not be found, but went away.  I initiated a zone tamper and it correctly reported the zone Last Log:Bypass (Zone 12 Partition 1)  I can also disarm it as well from the UI but have lost the ability to control from any of my IOS apps.

I tried reading other post and couldn't find anything directly related to UI7 but I noted one where you upgraded to the UI6 and mentioned you were on version 75. I am currently on version 69 and set to Auto Update. Should I uninstall and reinstall the App, or is there a better way to resolve these issues.
 
Thanks for any input you Miss Futzle or anyone else that may be able to offer help. <:)
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 15, 2014, 10:00:52 pm
ElMagnifico, thanks very much for posting your experiences with your ... brave upgrade to UI7.  I haven't dared to try it on my Vera Lite yet. I probably will soon, because there's clearly no future in UI6.

Auto update of plugins is notoriously hit-and-miss. Even with the checkbox on, it doesn't work all the time for everyone. That said, you should turn off auto-update for this plugin just in case I post an update that breaks your security setup.

There was a bug with the Connect tab recently which I fixed. Perhaps that's the same one you found. Updating the plugin will fix it. It isn't necessary to uninstall then reinstall; here is how you can force an update of a plugin on UI5: http://forum.micasaverde.com/index.php/topic,8643.msg80309.html#msg80309 (I don't know if this works in UI7).
Title: Re: UI7 and GE Caddx Plugin
Post by: ElMagnifico on August 16, 2014, 12:03:08 am
Doesn't work in UI7, Receive Error: installation failed, however I can download each file, can I upload and overwrite the current luup files or should I uninstall and reinstall?
Thanks for the help
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 16, 2014, 05:49:12 am

I can download each file, can I upload and overwrite the current luup files

Yes, that should work.
Title: Re: UI7 and GE Caddx Plugin
Post by: eo on August 16, 2014, 11:28:29 am
Risk taker here too.  I upgraded to UI7 and am now getting the following error when I try to configure the plugin:
Error executing function J_CaddxNX584SerialConnection.js.serialConnection(): 'undefined' is not a function (evaluating 'jsonp.get_device_by_id(deviceId)')

I'm running plugin version 0.78.  Any suggestions?

Thanks!
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 17, 2014, 04:03:09 am
Error executing function J_CaddxNX584SerialConnection.js.serialConnection(): 'undefined' is not a function (evaluating 'jsonp.get_device_by_id(deviceId)')

It appears that I've been caught using a private API and this function has been removed.  The JavaScript will have to be refactored to do this work itself rather than rely on MCV's supplied jsonp object.

I'm unlikely to be upgrading my Vera to UI7 for weeks (if ever).  Any user who is adept at debugging JavaScript is welcome to supply a patch, but until then you have two options: (1) modify the variables directly on the top-level device the same as how the JavaScript does, or (2) downgrade back to UI5 or UI6.

Thanks for reporting the exact error; that helps a lot.
Title: Re: UI7 and GE Caddx Plugin
Post by: eo on August 17, 2014, 08:53:21 am
Heh.  I've had that happen too.  :-)

It seems this isn't the only problem with UI7 in this regard.  It looks like the native controls for dealing with serial ports aren't working in UI7.  I've fed this back to the Vera team.

Once that gets resolved, I'll take a look at refactoring to get this working.  Where/how do you want me to feed that back to you?  Diff?  Patch on GitHub?
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 17, 2014, 05:37:10 pm
Where/how do you want me to feed that back to you?  Diff?  Patch on GitHub?

The main repository is on SVN at http://code.mios.com/svn_public/mios_caddxnx584

Recursive unified diffs would be my preferred option but I'll take patches any way you care to supply them.  I'll send you a direct message with my email address.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 28, 2014, 02:29:25 am
I've bitten the (not very palatable IMO) bullet and upgraded to UI7 on my production Vera.  (Yeah, yeah, I know.)

I've found and fixed the JavaScript errors at SVN revision 79.  I invite anyone on UI7 to install the two updated JavaScript files (http://code.mios.com/trac/mios_caddxnx584/changeset/79) and see how far they get.  I use an IPSerial connection so I'm not affected by the Serial Port Configuration bug mentioned by eo.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 29, 2014, 01:19:53 am
More changes at SVN @80 that I'm considering making standard in UI7.  This revision changes the way that the plugin handles bypassed zones (shown in Vera as security sensors).  I can see the writing on the wall with how Vera handles sensor armed/bypass status, particularly with the Home/Away/Night/Vacation modes that UI7 makes quite prominent.  Having Vera change the bypass status of zones in the security system in such a wholesale way is not desirable.

If you have enabled the "Toggle Zone Bypass" bit in your NX-584 (Location 3 Segment 4 Bit 8) or NX-8E (Location 211 Segment 4 Bit 8) configuration, then you get the historical behaviour with this plugin: if you change the bypass status of a zone in the UI then it is reflected in the bypass status of the zone in the alarm panel, and vice versa.  Alarm panel zone bypass == Vera security sensor bypass.

If you disable the "Toggle Zone Bypass" bit, then you get the behaviour that every other alarm plugin for Vera already has: the Vera Armed/Bypass toggle is independent of the alarm panel's bypass state.  In this mode, the plugin has no visibility of the alarm panel's concept of "bypassed".  If you choose to bypass zones via the alarm panel keypad then it will have no effect on Vera (though it will affect whether a partition reacts to the zone being tripped, just as if you'd never connected the Vera at all).  If you change a Vera security sensor's Armed/bypass state then it changes immediately and has no effect on the alarm panel.  Alarm panel zone bypass and Vera security sensor bypass are two different things.
Title: Re: UI7 and GE Caddx Plugin
Post by: eo on September 10, 2014, 04:31:31 pm
Thanks for taking the lead on this!  I've been super busy and hadn't had the chance to look at this in too much detail.  I've upgraded to @80 and am getting mixed results.

When I try to go into the parent device and click (e.g. Caddx NX584 Security) and click connect, I get the following error:
Error executing function J_CaddxNX584SerialConnection.js.serialConnection(): jsonp.get_lu_device_variable_value is not a function

I've got a bit of a workaround for setting the serial port up via the Apps menu option.  Google Chrome is my friend (I've sent the core issue onto MCV so they can get it fixed in the next release candidate), but alas I cannot scan for zones.  I think the above error is related to my problem.

Any suggestions?
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 10, 2014, 05:52:29 pm
When I try to go into the parent device and click (e.g. Caddx NX584 Security) and click connect, I get the following error:
Error executing function J_CaddxNX584SerialConnection.js.serialConnection(): jsonp.get_lu_device_variable_value is not a function

Another private API, I suspect.  The official JavaScript API is very limited and I found that to implement the Connect tab I had to call functions that the web UI uses, but which are apparently no longer available in UI7.

In truth I think I will have to ditch the Connect tab entirely, and get users to assign a serial device the official way, which is how you did it.

Quote
alas I cannot scan for zones.  I think the above error is related to my problem.

Very doubtful.  If you can see partitions then your interface is fully connected.  Zone scanning is error-prone because it relies on users having configured their NX-584 to find their keypads on the Caddx bus.  Failure to do so properly has no bad consequences on daily use, so you won't notice it _until_ you want to scan for zone names, at which point it fails.  If you browse back through the history of discussions on this forum you will find a ton of reports about how zone scanning is or isn't working for users.  Sometimes it was a configuration error, sometimes it was timeouts on the Caddx bus (totally out of my control), and sometimes it was subtly different Caddx hardware that just doesn't seem to adhere to the serial protocol spec.

If you're getting a JavaScript error, or a message in the Luup log, when you scan for zones, I can look into it and see which of the previous categories best applies in your case.
Title: Re: UI7 and GE Caddx Plugin
Post by: eo on September 12, 2014, 01:08:25 am
Interestingly enough, I'm not seeing any error messages in the LuuP log, but I'm also not seeing any attempts to read data there either.

I do see the following:
50   09/12/14 0:50:37.654   luup_log:33: elapsed time: 0 seconds <0x2b7fc680>
50   09/12/14 0:50:37.654   luup_log:33: Going to poll devices <0x2b7fc680>
50   09/12/14 0:50:37.655   luup_log:33: Should be a successful lua startup <0x2b7fc680>
50   09/12/14 0:50:37.822   luup_log:35: Initializing Caddx NX-584 __LEAK__ this:53248 start:139264 to 0xad0000 <0x2b7fc680>
50   09/12/14 0:50:37.822   luup_log:35: Opening serial port <0x2b7fc680>
50   09/12/14 0:50:37.980   luup_log:35: All message codes are supported. <0x2b7fc680>
50   09/12/14 0:50:37.981   luup_log:35: Zone Name enabled <0x2b7fc680>
50   09/12/14 0:50:37.982   luup_log:35: Log Event enabled <0x2b7fc680>
50   09/12/14 0:50:37.982   luup_log:35: Get User Information with PIN enabled <0x2b7fc680>
50   09/12/14 0:50:37.982   luup_log:35: Set User Code with PIN enabled <0x2b7fc680>
50   09/12/14 0:50:37.983   luup_log:35: Set User Authorization with PIN enabled <0x2b7fc680>
50   09/12/14 0:50:37.983   luup_log:35: Set Clock enabled <0x2b7fc680>
50   09/12/14 0:50:37.983   luup_log:35: Primary Keypad Function with PIN enabled <0x2b7fc680>
50   09/12/14 0:50:37.984   luup_log:35: Secondary Keypad Function enabled <0x2b7fc680>
50   09/12/14 0:50:37.984   luup_log:35: Zone bypass enabled <0x2b7fc680>
50   09/12/14 0:50:38.340   luup_log:35: Valid partition 1 <0x2b7fc680>
50   09/12/14 0:50:38.341   luup_log:35: PIN length is 4 <0x2b7fc680>
06   09/12/14 0:50:38.341   Device_Variable::m_szValue_set device: 35 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0x868918/NONE duplicate:1 <0x2b7fc680>
06   09/12/14 0:50:38.341   Device_Variable::m_szValue_set device: 35 service: urn:futzle-com:serviceId:CaddxNX584Security1 variable: StackPointer was: 113 now: 113 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x2b7fc680>
06   09/12/14 0:50:38.493   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: LastUser was: User 1 now: User 1 #hooks: 0 upnp: 0 v:0x8ed1f8/NONE duplicate:0 <0x2b7fc680>
06   09/12/14 0:50:38.494   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 0 now: 0 #hooks: 0 upnp: 0 v:0x8e6748/NONE duplicate:1 <0x2b7fc680>
06   09/12/14 0:50:38.494   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory was: 0 now: 0 #hooks: 0 upnp: 0 v:0x8ecca0/NONE duplicate:0 <0x2b7fc680>
06   09/12/14 0:50:38.495   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: Alarm was: None now: None #hooks: 0 upnp: 0 v:0x840a08/NONE duplicate:1 <0x2b7fc680>
06   09/12/14 0:50:38.495   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: DetailedArmMode was: Ready now: Ready #hooks: 0 upnp: 0 v:0x8e6680/NONE duplicate:1 <0x2b7fc680>
06   09/12/14 0:50:38.496   Device_Variable::m_szValue_set device: 36 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ArmMode was: Disarmed now: Disarmed #hooks: 0 upnp: 0 v:0x8e6608/NONE duplicate:1 <0x2b7fc680>

I am getting a bunch of 404s in my Chrome console that I believe are related to the scan (one for each device):
https://vera-us-oem-relay31.mios.com/www/port_3480/data_request?id=lu_action&serviceId=urn%3Afutzle-com%3AserviceId%3ACaddxNX584Security1&action=ZoneScan&Zone=1&DeviceNum=35&output_format=json

Not sure what the path "port_3480" does, but:

root@MiOS_30007741:/tmp/log/cmh# ps -eaf |grep 3481
 3144 root      1676 S    /bin/sh -c ser2net -n  -C "3481:raw:0:/dev/ttyUSB0:9600 1STOPBIT NONE"
 3147 root       800 S    ser2net -n -C 3481 raw 0 /dev/ttyUSB0 9600 1STOPBIT NONE
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 12, 2014, 02:12:43 am
You're trying to scan zones over the remote web interface? That's never worked. See how you go while your computer is on the same LAN as Vera.
Title: Re: UI7 and GE Caddx Plugin
Post by: eo on September 12, 2014, 06:08:48 pm
Alrighty then.

Up and running.  :-)

Thanks for all of your help!
Title: Re: UI7 and GE Caddx Plugin
Post by: Kalapa on September 27, 2014, 07:27:27 pm
Hi Futzle, I just updated from UI5 to UI7 and it broke the Connect, configure, zones and user tabs. My plugin version is 74 and Auto update is enabled. Is there any new version to fix this issue?

Thanks for great Plug-in.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 28, 2014, 04:47:46 am
I just updated from UI5 to UI7 and it broke the Connect, configure, zones and user tabs. My plugin version is 74 and Auto update is enabled. Is there any new version to fix this issue?

There's a version 80 that fixes the Configure, Zones and Users tab.  See some earlier posts in this thread for the saga of the Connect tab; it may never work on UI7 so you may have to work around it depending on whether you are using a direct USB or Ethernet connection to your panel.  (Which are you on?)

To update the plugin try this:
Code: [Select]
http://YourVeraIPAddress:3480/data_request?id=update_plugin&Plugin=1018I've disabled auto-update for this plugin because I don't want to break users' security setups if I submit a bad update.  You have to update the plugin yourself.
Title: Re: UI7 and GE Caddx Plugin
Post by: Kalapa on September 28, 2014, 12:16:19 pm
Thanks Futzle for quick reply. I am using USB.  I tried updating plugin using the link and it updated to 78 not 80.  After updating to 78 users tab is working but "connect " and "Zones" are still not working.

Can you please let me know what am doing wrong in updating and manual process  of updating script files.. Thanks for your help.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 28, 2014, 06:31:39 pm
I tried updating plugin using the link and it updated to 78 not 80.
My apologies; I didn't submit version 80 for approval to the app store.  Now I have.  Give it enough time for MCV to approve it during their office hours and try updating again.

The plugin's "Connect" tab does not (and may never) work.  You have to assign serial ports through Apps > Develop Apps > Serial Port Configuration.  Note that UI7 1.7.318 does not let you assign serial ports to devices, so you may find that you need to be on 1.7.374.
Title: Re: UI7 and GE Caddx Plugin
Post by: Kalapa on September 29, 2014, 09:59:02 pm
Thanks Futzle.  I'll wait for Plugin version 80.

I am using Vera FW 1.7.374.  Regarding serial port assign, can you please let me know the steps to add in configuration. My configuration ("Apps > Develop Apps > Serial Port Configuration)  screen attached to the previous post ".  Not sure what needs to be added here.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 30, 2014, 06:54:02 am

My configuration ("Apps > Develop Apps > Serial Port Configuration)  screen attached to the previous post ".  Not sure what needs to be added here.

That looks about right. My alarm panel is connects over an Ethernet bridge so I don't use the Vera Serial Port Configuration page, but as long as you've set the speed, stop bits, data bits and parity you should be good.
Title: Re: UI7 and GE Caddx Plugin
Post by: Kalapa on October 02, 2014, 10:07:37 pm
futzle, Any update on Version 80? Looks like it's still not approved by MCV...
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on October 03, 2014, 06:20:16 am

futzle, Any update on Version 80? Looks like it's still not approved by MCV...

I know as much as you do, sorry. I suspect that approval is totally manual on their end. They don't inform me of where a version is in the approval pipeline.
Title: Re: UI7 and GE Caddx Plugin
Post by: Kalapa on October 07, 2014, 11:00:05 pm
Futzle, Updated to Version 80 and it's working fine.  Thanks again for great plugin and support.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on October 11, 2014, 10:37:57 am
I want to thank Futzle and everyone else that contributed to this plugin, it's really nice! I have just switched over to a Vera 3 from Nexia as I moved into a new home with a Caddx system. I added the NX-584 and it's communicating! I haven't been able to get zone scanning to work but I can manually add them, although in UI7 it's a bit of a pain because it seems I need to do a lot of waiting and refreshing.

I would like some assistance to narrow down the reason that I am unable to arm/disarm from the Vera UI7 Android app. I can control the unit from the web login, and I see the device on the mobile app, but there is no button to arm or disarm. I assume this is just an issue with the Vera UI7 Android app but if anyone has input please advise.

Title: Re: UI7 and GE Caddx Plugin
Post by: garrettwp on October 11, 2014, 03:28:59 pm
The app developer would need to add support for the plug-in. In this case MicasaVerde the owner of the Vera app would need to add support. Not every plug-in or device is supported by every app.

- Garrett

Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on October 14, 2014, 09:26:26 am
Thanks for the info Garrett! I switched to AuthomationHD and it works fine there, and after I did some digging I saw some known issues listed in the change log for Vera. Now that I have all of my zones added in I am able to get alerts based on any of the sensors and I can arm/disarm the system.
Title: Re: UI7 and GE Caddx Plugin
Post by: napolitano172 on October 16, 2014, 10:24:43 am
So everything seemed great after moving to UI7 but it appears I made the mistake of updating the GE Caddx Plugin to the latest version and upon doing so I've noticed that two of my scenes (an arm scene and a disarm scene) have been deleted.  When I try and add them back in I'm having all kinds of issues.  I hit add scene and then step 1 select manual, then select next for step 2 and select the house alarm as the device then when I hit next it says "No action could be set for selected devices. Please, choose other devices."
In the old UI I was able to go into the advanced tab and add the device and action but I can't seem to figure out how to do that in UI7.  When I go to advanced it is very limited.

On a side note, if I select the alarm device in step one as a trigger I have all kinds of options, what I would think I would see under the device options in Step 2 as well.

Anyone else having this issue?  Maybe I need to delete and re-install completely....
Title: Re: UI7 and GE Caddx Plugin
Post by: napolitano172 on October 16, 2014, 11:08:14 am
Interestingly enough I've solved the problem.  When I created the scene I went ahead and added a second device in step two.  This enabled the options to add actions under advanced and I was able to re-create the two alarm mode scenes I lost.  I was then able to go in and delete the second device and the scene still worked.  I realize this is a work around, not not sure why I was not able to make it work on the alarm device itself, but it is now working so if anyone else runs into this try adding a second device in step and then you should be able to play with the alarm device as well.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on October 16, 2014, 04:44:59 pm
The Advanced scene editor in 1.7.388 has some interesting quirks. That's one of them. I discovered the same workaround while wanting to add an action to a scene for my Sonos.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 16, 2014, 09:25:44 am
Futzle, I just noticed the current version of the app is 81, and I'm running version 80. I didn't see the changelog on the code.mios site, is there a place I can find one? Everything is working well so I am in no urge to upgrade unless you recommend it.

I did notice on the code page that you were looking for startup logs from a system with more than 1 partition. I have 2 partitions and my Vera is connected to the Caddx via the NX584 serial card. If you still need these logs I would be happy to help.
Title: UI7 and GE Caddx Plugin
Post by: futzle on November 16, 2014, 03:21:55 pm
Revision log: http://code.mios.com/trac/mios_caddxnx584/log/trunk

I keep the version numbering in apps.mios.com consistent with this so that you can directly compare. In your specific case, revision 81 has no feature you care about, probably.

Edit: spelling
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 17, 2014, 11:56:57 am
Thanks Futzle!

I spoke a little too soon about how well this was working for me. I may have misconfigured something with my NX584 during setup but I double and triple checked my config and I think it's right. I am able to arm/disarm and see armed/disarmed status, however I just realized that it appears to always be in DetailedArmMode: EntryDelay. I only realized it when I set a scene based on the EntryDelay.

Here is a clip of log where the alarm was disarmed, and my girl armed it and bypassed zone 3 (the pet sets it off all the time) and you can see that it was entrydelay even when disarmed.

Code: [Select]
50      11/17/14 9:45:45.804    luup_log:18: Sending message: 0x1D Positive Acknowledge <0x2ed78680>
50      11/17/14 9:45:45.805    luup_log:18: Message: Outgoing: 0x7e 0x01 0x1d 0x1e 0x1f <0x2ed78680>
50      11/17/14 9:45:45.991    luup_log:18: Received good message 0x06, acknowledge requested <0x2ed78680>
50      11/17/14 9:45:45.991    luup_log:18: Message: Incoming message body: 0x00 0x60 0x00 0xc8 0x00 0x62 0x84 0x83 <0x2ed78680>
50      11/17/14 9:45:45.992    luup_log:18: Handling message: 0x06 Partition Status <0x2ed78680>
50      11/17/14 9:45:45.993    luup_log:18: Setting state for partition 1 <0x2ed78680>
06      11/17/14 9:45:45.993    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: LastUser was: Millie now: User 98 #hooks: 0 upnp: 0 skip: 0 v:0xc40bf8/NONE duplicate:0 <0x2ed78680>
50      11/17/14 9:45:45.994    luup_log:18: ChimeEnabled: 1 <0x2ed78680>
06      11/17/14 9:45:45.994    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ChimeEnabled was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xc404b8/NONE duplicate:1 <0x2ed78680>
50      11/17/14 9:45:45.994    luup_log:18: AlarmMemory: 0 <0x2ed78680>
06      11/17/14 9:45:45.995    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: AlarmMemory was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xc40678/NONE duplicate:0 <0x2ed78680>
50      11/17/14 9:45:45.995    luup_log:18: Alarm: None <0x2ed78680>
06      11/17/14 9:45:45.995    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: Alarm was: None now: None #hooks: 1 upnp: 0 skip: 0 v:0xa9e408/NONE duplicate:1 <0x2ed78680>
50      11/17/14 9:45:45.996    luup_log:18: DetailedArmMode: EntryDelay <0x2ed78680>
06      11/17/14 9:45:45.996    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: DetailedArmMode was: EntryDelay now: EntryDelay #hooks: 1 upnp: 0 skip: 0 v:0xc40400/NONE duplicate:1 <0x2ed78680>
50      11/17/14 9:45:45.996    luup_log:18: ArmMode: Armed <0x2ed78680>
06      11/17/14 9:45:45.997    Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 variable: ArmMode was: Disarmed now: Armed #hooks: 0 upnp: 0 skip: 0 v:0xc40388/NONE duplicate:0 <0x2ed78680

Any ideas? I also notice that when it goes through an entrydelay it always shows user 98, which doesn't exist. I assumed that was just reflecting that the NX8 did something on it's own.
Title: UI7 and GE Caddx Plugin
Post by: futzle on November 17, 2014, 06:53:56 pm
User 98 is the user that the system reports when you press the Away or Arm button on the keypad without entering a PIN. I named that user "Keypad" on my own Vera.

Your snippet of log definitely shows that the DetailedArmMode is getting stuck. That shouldn't happen. But from that snippet I can't see what broke because it happened before the capture began. If you can catch the log around the instant the alarm goes from Exit Delay to Armed, or from Armed to Entry Delay, or from Entry Delay to Disarmed (but scrub the log to prevent me seeing your PIN), I might have a better chance.

Edit: on further reflection I think I have enough information from you already. I think that the plugin is getting confused over the fact that there are two possible entry delays configurable per partition. I'm at work right now but when I get home I will give you a patch to try out.

Edit: Try this variant of the L_CaddxNX584Security.lua file.  It's less sensitive to the "Entry Delay" bits in the Partition Status message, one of which for you is inexplicably turned on permanently.  I hope it doesn't lead to false negatives for other users...
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 18, 2014, 04:25:01 am
User 98 is the user that the system reports when you press the Away or Arm button on the keypad without entering a PIN. I named that user "Keypad" on my own Vera.

Your snippet of log definitely shows that the DetailedArmMode is getting stuck. That shouldn't happen. But from that snippet I can't see what broke because it happened before the capture began. If you can catch the log around the instant the alarm goes from Exit Delay to Armed, or from Armed to Entry Delay, or from Entry Delay to Disarmed (but scrub the log to prevent me seeing your PIN), I might have a better chance.

Edit: on further reflection I think I have enough information from you already. I think that the plugin is getting confused over the fact that there are two possible entry delays configurable per partition. I'm at work right now but when I get home I will give you a patch to try out.

Edit: Try this variant of the L_CaddxNX584Security.lua file.  It's less sensitive to the "Entry Delay" bits in the Partition Status message, one of which for you is inexplicably turned on permanently.  I hope it doesn't lead to false negatives for other users...

Thanks Futzle! I really appreciate the help. Here are some of the before logs, but I am still not sure I captured what you are looking for. In all of the logs I have seen, it is always entrydelay no matter what. You are correct in stating there are 2 possible entrydelay timers, and I think mine are both set to a time but I don't think any zones are set on delay 2.

Also, I do have 2 partitions, one is my shop and it's pretty much always armed. I did not notice if this was an issue before I added the partition. Another item of note is that I partitioned the system after installing the plugin, but there didn't seem to be any issues with that and the new partition came up as a new device right away.

I am adding the new file now and will report back. Thanks again!
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 18, 2014, 05:14:00 am
And BOOM! Just like that, you fixed it. Great job! I really appreciate the assistance. I owe you a couple of beers. Startup log attached. It's currently reporting correctly for both partitions. Hopefully that will remain true during entry and exit delay modes.

While I am here I want to clue you in on another strange thing with UI7 that you may already know about. I did some testing with my girlfriend last night while you were writing the fix and found that most of your comments about UI7 and the Caddx hold true in relation to devices (zones) being armed or bypassed when bypass is enabled on the NX584. When armed, I am able to bypass zones, and that reflects properly on the Caddx, however I noticed that when the HouseMode changes in UI7 the bypass/armed status of the devices does not sync with the Caddx (at least when the Caddx is disarmed and ready). Example: Caddx disarmed and ready, I switched the UI7 HouseMode to Home, which I have configured under "My Modes" do bypass motion sensors and some doors. The Caddx does not bypass those zones, however when the Caddx is armed and I bypass one in Vera it does switch to bypass. I did not test switching modes while the Caddx was armed. This is not really a huge issue for me, just something that I noticed.

And a question about Caddx configuration: My Caddx seems to be set to only arm when it's "ready" and an exit has to be detected during exitdelay in order to arm else it switches to stay. How does this affect my remote control with the plugin? If I disarmed my shop right now over the web, and clicked arm again, then I assume there would be a failed exitdelay and it would switch to stay. Then if my girlfriend happened to open the door the alarm would be instant instead of entrydelay. Can I just disable automatic bypass at location 23, segment 1, to resolve this issue?

Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on November 18, 2014, 05:49:30 am
Thanks for confirming that the change works for you. I'll include it in version 82 so you won't need to patch the file manually again.

I'm afraid that I've got no suggestions about the remote arming away/stay conundrum. My NX-4 hasn't been configured that way so it's always Worked For Me. I guess you could just try it and see. (To be honest, I didn't know that the Caddx alarm suffered from this "feature"; there's a great deal of discussion on the DSC alarm forums about a very similar behaviour, which I thought was limited to that system. So I learned something.)

The whole House Modes fiasco in UI7, where you have to specify Arm or Bypass for every sensor without the option to leave its state unchanged, is why I'm now recommending you go back to your NX-584 or NX-8E and disable the Toggle Zone Bypass message in the interface. You lose the ability to bypass a zone from Vera, but you don't run the risk of a house mode change disabling your entire security system.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 18, 2014, 08:04:34 am
Thanks for confirming that the change works for you. I'll include it in version 82 so you won't need to patch the file manually again.

I'm afraid that I've got no suggestions about the remote arming away/stay conundrum. My NX-4 hasn't been configured that way so it's always Worked For Me. I guess you could just try it and see. (To be honest, I didn't know that the Caddx alarm suffered from this "feature"; there's a great deal of discussion on the DSC alarm forums about a very similar behaviour, which I thought was limited to that system. So I learned something.)

The whole House Modes fiasco in UI7, where you have to specify Arm or Bypass for every sensor without the option to leave its state unchanged, is why I'm now recommending you go back to your NX-584 or NX-8E and disable the Toggle Zone Bypass message in the interface. You lose the ability to bypass a zone from Vera, but you don't run the risk of a house mode change disabling your entire security system.

Thanks for such a quick fix! I have been reading the NX8 manual and if I just disable the auto bypass I think it will kill the remote arming issue. It's not even that big of a deal if it goes into stay mode as long as it gets disarmed from the app instead of opening the door. I'm really just happy to see a detailedarmmode so I can use the system to trigger scenes.

I don't mind the toggle zone bypass, as I am always deployed and I prefer to have the capability to make changes remotely. From my little bit of testing yesterday it appears that a house mode change won't disable anything, as I can only get the Caddx to bypass a sensor when I toggle it individually in Vera. Since I am always away I am would even consider entering the program mode from your plugin if that is possible. Getting my girlfriend to make changes at the keypad is not my preference.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 18, 2014, 02:31:20 pm
Futzle, once again I spoke too soon! I should stop doing that. Everything was fine until the first exitdelay. I set a scene to bypass zone 3 upon exit delay and it appears the scene ran. It also switched to away mode but it seems at that point the Vera crashed. It appeared that the exit door never closed which would have caused an exit error I suppose but indeed the door was closed. I suppose it was a bad idea to bypass a zone while in exitdelay. Now I have no connection and the log has this repeated message:

Code: [Select]
50 11/18/14 13:12:25.551 luup_log:18: Global handlers not set up yet <0x2f764680>
50 11/18/14 13:12:25.551 luup_log:18: Global handlers not set up yet <0x2f764680>
50 11/18/14 13:12:25.552 luup_log:18: Global handlers not set up yet <0x2f764680>02 11/18/14 13:18:09.823 MMSStorage::GetDataToSend sending everything--BROADCAST <0x303aa680>
01 11/18/14 13:18:09.824 XXX-MMSStorage::SendData 0xc90740 WOKE 3/0 set:1 <0x2f5aa680>
01 11/18/14 13:18:09.824 XXX-MMSStorage::SendData 0xc90740 done <0x2f5aa680>
01 11/18/14 13:18:09.825 XXX-MMSStorage::SendData 0xc90740 send 10000 <0x2f5aa680>
01 11/18/14 13:18:09.825 MMSStorage::SendData --BROADCAST <0x2f5aa680>
01 11/18/14 13:18:09.835 XXX-MMSStorage::SendData GOING TO SLEEP <0x2f5aa680>
02 11/18/14 13:18:09.829 MMSStorage::GetDataToSend before lock <0x303aa680>
02 11/18/14 13:18:09.839 MMSStorage::GetDataToSend got lock <0x303aa680>
02 11/18/14 13:18:09.840 MMSStorage::GetDataToSend send:10000 sendsize:10000 bytessent:0 buffer:16372 <0x303aa680>50 11/18/14 13:24:38.106 luup_log:18: Ignoring byte 43 <0x2c358680>
50 11/18/14 13:24:38.116 luup_log:18: Ignoring byte 42 <0x2c358680>
50 11/18/14 13:24:38.126 luup_log:18: Ignoring byte 56 <0x2c358680>

I am currently rebooting equipment to see if it will come up, and then I will perhaps try to restore the original file.

Status Update: Sorry for the alarm. That was quite odd, but a couple of Vera reboots and a refresh of the serial port configuration seems to have resolved the issue. I may have had an exiterror, so my girl is going to test the door sensor several times. I've modified the questionable scene to wait 5 minutes to bypass the zone, we'll see how that goes.

I did log most of that activity in putty, so if any of it interests you I can upload it.

Reason for edit:Status update
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 22, 2014, 05:28:51 pm
Futzle, your patch is still working very well, however I rebooted today and it seemed to end up in a strange state again. I fixed it by once again changing my baud rate, wait a minute, then change it back.

Code: [Select]
50 11/22/14 14:47:59.572 luup_log:18: Ignoring byte 28 <0x2bc5a680>
50 11/22/14 14:47:59.583 luup_log:18: Ignoring byte 40 <0x2bc5a680>
50 11/22/14 14:47:59.593 luup_log:18: Ignoring byte 81 <0x2bc5a680>
50 11/22/14 14:47:59.603 luup_log:18: Ignoring byte 18 <0x2bc5a680>
50 11/22/14 14:47:59.613 luup_log:18: Ignoring byte ff <0x2bc5a680>
08 11/22/14 14:48:00.620 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: ModifyUserData <0x2ea9b680>
08 11/22/14 14:48:00.620 JobHandler_LuaUPnP::HandleActionRequest argument inUserData={"devices":{"devices_83":{"states":{"states_5":{"value":"38400"}}}},"scenes":{},"sections":{},"rooms":{},"InstalledPlugins":[],"PluginSettings":[],"users":{}} <0x2ea9b680>
08 11/22/14 14:48:00.621 JobHandler_LuaUPnP::HandleActionRequest argument DataFormat=json <0x2ea9b680>
06 11/22/14 14:48:00.622 Device_Variable::m_szValue_set device: 83 service: urn:micasaverde-com:serviceId:HaDevice1 variable: Configured was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0x7f6610/NONE duplicate:1 <0x2ea9b680>
06 11/22/14 14:48:00.622 Device_Variable::m_szValue_set device: 83 service: urn:micasaverde-com:serviceId:HaDevice1 variable: LastUpdate was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x2ea9b680>
01 11/22/14 14:48:00.845 UserData::WriteUserData saved--before move File Size: 39629 save size 39629 __LEAK__ this:229376 start:290816 to 0xec3000 <0x2ba5a680>
02 11/22/14 14:48:00.845 UserData::TempLogFileSystemFailure start <0x2ba5a680>
02 11/22/14 14:48:00.874 UserData::TempLogFileSystemFailure 5206
-rw-r--r--    1 root     root             0 Sep 24 19:15 /etc/cmh/320.reset
-rw-r--r--    1 root     root            33 Nov 16 11:54 /etc/cmh/HW_Key

Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on November 22, 2014, 08:05:46 pm
Unfortunately that part of the log hasn't got any information that is useful to me. Even the first line of it will only happen after some other error, probably the true cause. The symptoms are indicative of an intermittent serial connection dropout. These are buggers to pinpoint, unfortunately.

Catch the log right from the Luup restart and I might be able to point to something less vague.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on November 23, 2014, 03:04:33 am
Unfortunately that part of the log hasn't got any information that is useful to me. Even the first line of it will only happen after some other error, probably the true cause. The symptoms are indicative of an intermittent serial connection dropout. These are buggers to pinpoint, unfortunately.

Catch the log right from the Luup restart and I might be able to point to something less vague.

Futzle, thanks for the reply and sorry for the incomplete log. I hopped in after the issue already started and didn't catch the beginning, then assumed you might just recognize the issue. Just knowing that it's a possible issue with the actual serial connection is a big help. If it happens again I'll be sure to just reboot and grab the whole event.

Perhaps someone can suggest an easy solution to a scene I am trying to create. My zone 3 motion sensor is somewhat sensitive and even though it's mounted at 9 feet the cat is still able to trip it fairly easily. I want to bypass zone 3 each time the alarm is armed, however I discovered this is best done while disarmed. I should have just read the book:

BYPASSING ZONES
If you wish to bypass one or more zones, this must be done while the
system is in the disarmed state.

Maybe someone has a suggestion on how to accomplish the bypass? The Vera does successfully bypass the zone when commanded while disarmed.

The manual does state that pressing "Bypass" when armed will disarm interior zones. However I don't see a "bypass" command in the device actions for the plugin. I am pretty sure my keypads are 1448e models. Here's a clip from the book:

CHANGING MODES WHILE SYSTEM IS ARMED
 Pressing the [STAY] key will turn on/off (toggle) a delay on entry/exit
doors and turn on/off (toggle) the instant icon.
 (Optional) Press the [BYPASS] key at this time to turn on/off (toggle)
all designated interior zones.
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on January 03, 2015, 09:39:37 am
Futzle,  I upgraded my Vera from Vera 3 to Vera Edge.  The Version of the plugin is 81 that ti dowloaded.

Before the Serial Port worked fine with the RS232 USB Adapter on my Vera 3 and app works perfectly.
 
When I plug in the same exact cable to the Vera Edge, the Serial Port selection dropdown stays stuck on "NONE" and does not allow me to choose the FTDSIO Adapter on the drop down menu so I can configure the rest of the parameters for connecting.

I have tried to plug/unplug and reset the unit but no ability to connect the vera edge to the USB port as before on the Vera 3....

Any thoughts?
Thanks
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on January 03, 2015, 02:15:01 pm
Futzle, I just spoke with Vera Support today Re the USB Direct Serial port connection issue, they reported they were aware that the Edge did have an issue with USB connectivity and would be publishing a firmware update to resolve this sometime this month.  Unless you have another solution or workaround I can wait to see if this resolves and I can get my GE Security system back working again same as the Vera 3  :)

Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on January 04, 2015, 03:26:06 pm
Thanks for confirming that the change works for you. I'll include it in version 82 so you won't need to patch the file manually again.

I'm afraid that I've got no suggestions about the remote arming away/stay conundrum. My NX-4 hasn't been configured that way so it's always Worked For Me. I guess you could just try it and see. (To be honest, I didn't know that the Caddx alarm suffered from this "feature"; there's a great deal of discussion on the DSC alarm forums about a very similar behaviour, which I thought was limited to that system. So I learned something.)

The whole House Modes fiasco in UI7, where you have to specify Arm or Bypass for every sensor without the option to leave its state unchanged, is why I'm now recommending you go back to your NX-584 or NX-8E and disable the Toggle Zone Bypass message in the interface. You lose the ability to bypass a zone from Vera, but you don't run the risk of a house mode change disabling your entire security system.

Thanks for such a quick fix! I have been reading the NX8 manual and if I just disable the auto bypass I think it will kill the remote arming issue. It's not even that big of a deal if it goes into stay mode as long as it gets disarmed from the app instead of opening the door. I'm really just happy to see a detailedarmmode so I can use the system to trigger scenes.

I don't mind the toggle zone bypass, as I am always deployed and I prefer to have the capability to make changes remotely. From my little bit of testing yesterday it appears that a house mode change won't disable anything, as I can only get the Caddx to bypass a sensor when I toggle it individually in Vera. Since I am always away I am would even consider entering the program mode from your plugin if that is possible. Getting my girlfriend to make changes at the keypad is not my preference.

Futzle, thanks again for all of your help with UI7. I have been busy reading the forum and learning all about the Vera and I feel like I have gained a lot of knowledge in the last couple of months. I want to clarify a couple of things I mentioned:

My system will arm remotely without a door being opened/closed for a proper "exit". I have successfully done that several times when my girlfriend left without arming.

A motion sensor can be bypassed with the Vera. It doesn't work well with mode changes unless your patterns are very specific since there are a lot of variables involved. I am currently using PLEG, with a condition that will bypass my interior problem zone whenever the system is "Ready" for > 1 minute. As I mentioned before attempting to bypass a zone when in exit delay or armed mode can cause issues, so it's best to avoid that situation.

Your fix for the continuous ExitDelay indication on the UI7 dashboard is holding up well, however I have noticed some issues with PLEG:

Using triggers to monitor detailed arm mode status doesn't always work. For some reason PLEG doesn't see triggers as true when they are in fact true or it may see triggers as true when they are false. I suspect this may have something to do with the fix you implemented but I am not certain. I have had better luck using device properties with PLEG and monitoring the detailed arm mode with conditions of eq "ExitDelay" and such. This always works well for Armed and Ready modes, however today I noticed it missed "ExitDelay" twice. I'm not 100% certain that isn't an issue with the order of my PLEG conditions but I would think it should identify true when the state changes and is true. I've attached my PLEG status report for your review if you are interested. It clearly shows some discrepancy between the triggers and the device properties.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on January 29, 2015, 01:30:21 pm
Futzle, I had an interesting scenario occur the other day with the plugin. I haven't been able to determine the cause and it seems the log and the UI7 gui did not match what was actually happening. My girlfriend reported a fail to set stay mode from the Authomation app when she went to bed on the night of the 26th. She didn't report this to me until the afternoon of the 27th, and when I checked the Vera web gui everything appeared to be normal, however I also could not set stay mode from the app and received no error on transmitting the message. I checked in on the luup log and saw the dreaded "Ignoring byte" message repeating over and over, however it was odd that the Vera web gui did not indicate "18 sensors are no longer connected" as I usually see with a comms failure. There were a few attempts to set stay and then I initiated a reboot via ssh and all was well.

I have attached a log for your review. I filtered it down a lot, but I want to note that the log starts at 0700 and there are no messages for device 18 (Caddx Plugin) until 1500. It appears there was 0 communication with the Caddx for several hours until I attempted to set stay mode. I am just looking for some input on whether this might be an issue with my USB to serial adapter or an issue with UI7. If it's the adapter I will swap it out, and if it's some other issue I would like to create some type of PLEG event that will reboot the Vera when this occurs.

I'm using this adapter:
http://www.amazon.com/gp/product/B006PIU2KO/ref=oh_aui_search_detailpage?ie=UTF8&psc=1
Premium High Speed USB 2.0 to Serial RS-232 DB-9 Converter - Supports Windows 8, 7, Vista, XP, 2000, 98, Linux and Mac / USB TO SERIAL ADAPTER (USB2-VE487) with FTDI Chipset
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on January 29, 2015, 03:50:19 pm
This kind of thing isn't unheard of. I get it too, a couple of times a year. It's unfortunately near impossible to pinpoint a culprit. As you've observed, a Luup restart, or a reset of the USB port with a power cycle, and it all comes good.

My gut feeling is that it is either the USB controller inside the host (Vera in your case, or my PC running ser2net in my case) or the USB adapter itself that is misbehaving. USB is unsuited to long periods of continuous uptime because it doesn't have any way of renegotiating connections if the state machine inside the controller gets out of whack. That's one reason why you continue to find RS-232 and RS-485 connections in equipment: it's so simple that it's hard to break.

I can test my hypothesis now: I've swapped out my PC running ser2net for a WIZNet Ethernet-to-serial gateway. No USB in sight. If I'm right, this will be exactly as reliable as Vera itself and have no other modes of failure.

The reason why the sensors don't report that they are disconnected in the Vera UI is because the plugin doesn't poll them. If the serial line goes quiet then the plugin just assumes that no one is moving to trigger sensors. This is partly because I never implemented polling, and partly because I doubt Vera's ability to poll reliably: plugins are single-threaded, so making it sleep-and-poll once an hour could interfere with actual use and mess with incoming asynchronous events.
Title: Re: UI7 and GE Caddx Plugin
Post by: HansW on January 29, 2015, 04:00:17 pm
Quote
I can test my hypothesis now: I've swapped out my PC running ser2net for a WIZNet Ethernet-to-serial gateway. No USB in sight. If I'm right, this will be exactly as reliable as Vera itself and have no other modes of failure.

This soudns interesting, may caddx-interface also does not work from time to time so of this wiznet gateway can solve that I will get me one. I assume you have it working with the caddx, any pointer on how to set it up?

Regards, Hans
 
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on January 30, 2015, 12:42:41 pm
This kind of thing isn't unheard of. I get it too, a couple of times a year. It's unfortunately near impossible to pinpoint a culprit. As you've observed, a Luup restart, or a reset of the USB port with a power cycle, and it all comes good.

My gut feeling is that it is either the USB controller inside the host (Vera in your case, or my PC running ser2net in my case) or the USB adapter itself that is misbehaving. USB is unsuited to long periods of continuous uptime because it doesn't have any way of renegotiating connections if the state machine inside the controller gets out of whack. That's one reason why you continue to find RS-232 and RS-485 connections in equipment: it's so simple that it's hard to break.

I can test my hypothesis now: I've swapped out my PC running ser2net for a WIZNet Ethernet-to-serial gateway. No USB in sight. If I'm right, this will be exactly as reliable as Vera itself and have no other modes of failure.

The reason why the sensors don't report that they are disconnected in the Vera UI is because the plugin doesn't poll them. If the serial line goes quiet then the plugin just assumes that no one is moving to trigger sensors. This is partly because I never implemented polling, and partly because I doubt Vera's ability to poll reliably: plugins are single-threaded, so making it sleep-and-poll once an hour could interfere with actual use and mess with incoming asynchronous events.

Futlze, as always, thanks for your input! This is the first time it's happened to me without alerting on the Vera home screen. I attribute this to increased stability as my Vera doesn't reboot nearly as often as it did before I became familiar with the system. In the cases where I saw 18 devices no longer connected the Vera likely had a luup restart that did not resolve the serial issue. I found I could change the serial configuration and then put it back with a luup reload and it would be good, or I could reboot.

It doesn't happen often, but I would like to implement something that reboots the Vera automatically if this happens again. If it doesn't poll and the line goes silent then how would you suggest I monitor for the condition? As we just saw it may be a very long time until a luup restart and PLEG isn't going to act on a status that hasn't changed. Perhaps a luup variable get command on a schedule with PLEG and maybe a bad return on the request could trigger a reboot? I'll play around with that idea and see what I come up with.
Title: Re: UI7 and GE Caddx Plugin
Post by: tcrandal on February 08, 2015, 10:25:22 am
I just upgraded to UI7 and have the plug-in working fine. I'm in the process of adding all of my zones manually, but there is no quick way to do it under UI7. I thought in past versions (it's been a while), I was able to add more than one sensor at a time manually, but after I click add, there are no additional boxes. It also tells me to "save", but under UI7, I don't think it has the same functionality, as things save automatically.

Also, once I add a zone, how long would it typically take for the sensor to appear, and how would I get it to "reload" under UI7?

Thank you so much for this plug-in, the Vera has successfully replaced my aging Stargate and this plug-in was key for my setup!
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on February 08, 2015, 10:46:48 am
It was a tedious process for me to add my zones in UI7 as well. I found it's best to take your time and use F5 or CTL+F5 to reload your browser often. You can also go to the advanced tab of any device and scroll to the bottom to reload the Luup engine. It has been pretty reliable now that I have everything set.
Title: Re: UI7 and GE Caddx Plugin
Post by: tcrandal on February 08, 2015, 03:15:51 pm
It was a tedious process for me to add my zones in UI7 as well. I found it's best to take your time and use F5 or CTL+F5 to reload your browser often. You can also go to the advanced tab of any device and scroll to the bottom to reload the Luup engine. It has been pretty reliable now that I have everything set.

Thanks for the response! I just added them all successfully, and ended up rebooting after each, as I was showing duplicate names under the zones prior to reloading. I should have just reloaded the Luup engine - Getting used to UI7.



Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on February 18, 2015, 05:16:17 pm
It doesn't happen often, but I would like to implement something that reboots the Vera automatically if this happens again. If it doesn't poll and the line goes silent then how would you suggest I monitor for the condition?

There's probably no clean way to do this with the plugin in its current version (81).  Ideally the top-level device would have a "poll" action in its service list which would send an unsolicited packet to the alarm panel (say, a Get Configuration request).  Then, when the panel responds, a timestamp is updated on the device to reflect a successful round trip of communication.  This probably isn't too difficult to implement, so I'll add it to the pile of things to do.

A not-very-clean way with the current version would be to invoke a luup.call_action with some existing action that doesn't have a side-effect, say, urn:futzle-com:serviceId:CaddxNX584Security1/LogEventScan.  This starts a job which ideally should succeed or fail based on your serial connection being up or down.  You don't actually care about the log entries, just the fact that the request succeeded.  I'm not sure if or how you'd invoke that regularly from PLEG, so you've got some homework too.
Title: Re: UI7 and GE Caddx Plugin
Post by: HansW on April 23, 2015, 04:43:53 pm
I have the Caddx Plugin running on UI7, updated to the latest version which seems to be 0.81 and when opening the connection tab I get:

Error executing function serialConnection(): jsonp.get_lu_device_variable_value is not a function

Any idea?

Hans
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa on April 23, 2015, 04:52:32 pm
I have the Caddx Plugin running on UI7, updated to the latest version which seems to be 0.81 and when opening the connection tab I get:

Error executing function serialConnection(): jsonp.get_lu_device_variable_value is not a function

Any idea?

Hans

Have you checked that the serial connection is re set back up?  Apps, Develop apps, serial port configuration, the bottom drop down "used by device" and select your Cadx panel?

I'm running 81.0 on two different vera edges using the latest UI7.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on April 23, 2015, 05:17:33 pm

Error executing function serialConnection(): jsonp.get_lu_device_variable_value is not a function

The "Connect" tab does not and cannot work in UI7. You must use Vera's own serial connection interface to set up the serial port.
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa on April 23, 2015, 05:52:17 pm

Error executing function serialConnection(): jsonp.get_lu_device_variable_value is not a function

The "Connect" tab does not and cannot work in UI7. You must use Vera's own serial connection interface to set up the serial port.

Ahhh yes this is correct!
Title: Re: UI7 and GE Caddx Plugin
Post by: HansW on April 25, 2015, 08:58:57 am
I must be overlooking something very obvious since I have checked out the forum and internet on setting up this wiznet interface to replace my USB cable but cannot get it to work.

The wiznet is configured with the correct baudrate, start and stopbits, a fixed ip address, port 5000 and server mode with server ip set to 0.0.0.0 and port 0.

In the caddx advanced tab I have set the wiznet ip address:5000 but setup fails.

Where can I go from here anyone??

Hans
Title: Re: UI7 and GE Caddx Plugin
Post by: rstrouse on April 25, 2015, 03:05:30 pm
I did not configure the serial port using the Serial Port configuration.  I simply put the IP address into the Advanced tab on the Caddx device.  Again I have no configuration for serial port under the Apps tab.
Title: Re: UI7 and GE Caddx Plugin
Post by: HansW on April 25, 2015, 03:20:04 pm
Thanks, I tried that also but without luck...

Hans
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on April 25, 2015, 10:17:52 pm
Where can I go from here anyone??

Let's stick to the topic that you already created (http://forum.micasaverde.com/index.php/topic,31916.0.html) rather than duplicating everyone's effort.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on June 13, 2015, 12:04:54 am
Perhaps MCV fixed something in one of the many UI7 updates as I have not had a serial disconnect in quite some time. I did however run into a snag on adding some additional motion sensors. I added a remote box with a NX216 expander and used that to connect some new PIR sensors (5) throughout the house, 2 of which are outside (garage and front porch). Adding the zones was a breeze once I had them setup on Caddx. The problem I face now is that I set these zones to auto bypass, as I don't want them triggering the alarm. I mistakenly thought this would auto bypass the zone, however it just puts the alarm in stay when one of the PIR causes an exit error.

I have some workarounds in place, and I am away for a month or so which prohibits me from reconfiguring the Caddx in any way. I did add all of these PIR sensors to what Caddx refers to as "Group Bypass" which will actually bypass the zones all at once using {Bypass, 0, Bypass, Bypass} on the keypad. I attempted to add Zone 0 to the Caddx device in Vera but was unsuccessful. I would like the capability of setting the group bypass with Vera if that's feasible.

And just as I typed all of this out, I seem to have discovered that if you want to monitor a zone with Vera but not with the alarm just remove that zone from all partitions!! I forgot to set one of my new zones to partition 1 and so it has no partition assignment. It isn't monitored on the panel yet I get status in Vera. Now if I could just enter programming codes from the plugin.......... scary I know!
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on June 13, 2015, 03:38:47 am
You probably know that with the introduction of UI7 I had to hobble the plugin's behaviour with respect to zone bypassing.  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.  Now the only practical way to use the plugin in UI7 is to prevent it from accessing the alarm panel's built-in bypass commands altogether.  This puts it on a level footing with the other Vera alarm plugins, which have no access to alarm-side bypass state either.

Zone 0 doesn't exist as a concept in the NX protocol; zones are already zero-based in the protocol so you'd have to transmit the byte -1 to get "Zone 0", and I'm pretty sure the zones are unsigned integers.  But it looks like you can activate Group Bypass with a command that is very similar to the panic modes.  The command byte is 0xC (decimal 12) instead of 4, 5 or 6 (Fire, medical or police).  If you felt like hacking the plugin code in L_CaddxNX584Security.lua and adding "\012" into the list of modes:
Code: [Select]
local command = {
   GroupBypass = "\012",  -- add this line
   Medical = "\005",
   Fire = "\004",
   Police = "\006"
you could then make a scene on the partition that invoked group bypass as a "panic" request, using the advanced scene editor to set the action "urn:micasaverde-com:serviceId:AlarmPartition2"/"RequestPanicMode" and parameter "State" = "GroupBypass". Remember that Panic modes are disabled unless you add a variable to the top-level alarm device in Vera: "urn:futzle-com:serviceId:CaddxNX584Security1"/"EnablePanic" = "1".

In theory you can program any alarm location through the serial protocol.  This is probably what the DL900 program does.  It's disabled by default on the alarm, so unless you went out of your way to enable it on the panel before you left, no amount of plugin coding will let you change a zone's partition membership remotely.  Also, you'd have to add the necessary code and actions to the plugin source, which I assure you is no small job.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on June 16, 2015, 12:26:16 am
Futzle, once again thanks for your amazing support! I have found a way to live with allowing Vera to set zone bypass by using PLEG. Unchanged would be a great feature for them to add but the only zones I alter outside of the "Mode" schedules are PIR zones. I appreciate your input on adding GroupBypass and I plan to implement when I return.

For what may seem like an antiquated device, I am learning that the possibilities are almost limitless with this alarm/Vera combination!
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on June 29, 2015, 11:52:03 pm
Futzle, would it be possible to just change the "Medical" command to \012 and then use the Medical button in the UI7 gui to trigger the group bypass?

I found another clue in the Caddx manual:
If a burglary zone resides in more than 1 partition, it will only be active when all partitions it resides
in are armed. A zone that resides in more than 1 partition will be reported to its lowest partition number.

Using this logic I added the motion zones to partition 3 (previously unused) with the intent of allowing Zone 1 to arm in away mode and in theory keeping the motion sensors disarmed unless zone 3 becomes armed. It doesn't appear to be working this way, but I need to review the logs for details to be certain. The plugin did create a new child device and the zones page does indicate the motion sensors are a member of both zones.

I also confirmed that I have enabled programming from the NX-584. While it would be quite a task to add this capability to the plugin, would it be possible to send the raw serial commands either with a special luup command (and file?) or via the OpenWRT SSH environment?
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on June 30, 2015, 12:57:49 am

Futzle, would it be possible to just change the "Medical" command to 12 and then use the Medical button in the UI7 gui to trigger the group bypass?

Yep, sure.

Quote
While it would be quite a task to add this capability to the plugin, would it be possible to send the raw serial commands either with a special luup command (and file?) or via the OpenWRT SSH environment?

Possible? Yes, technically, but if you have to ask then you shouldn't try. The plugin hasn't been designed to send arbitrary byte strings along the serial connection.  Assuming you could work out with pen and paper exactly what bytes you need to send, you could subvert the plugin's startup code to send those bytes to the alarm panel, then see if the panel responds with an acknowledgment. It would be harder still to do it from the OpenWrt command line because the Caddx protocol is two-way and no sufficiently powerful language is installed on the Vera. I'm deliberately not going to give you code to run because you don't sound hesitant enough and I'm afraid if I gave you code you'd try to run it.  It would be easier to do through the keypad, even if you have to dictate keypresses over the phone to a nontechnical human.
Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on June 30, 2015, 01:31:30 am
Futzle, thanks for the reply! I assumed it would be complicated but would have only attempted if there was such a way to send commands 1 at a time in a command line fashion. I am a big fan of logging my putty sessions so I at least have a record of what I screw up! I've been reading a lot in my spare time (of which there is little) and I have some big plans for my Caddx system to grow in the future.

I confirmed group bypass was enabled and I added the panic variable required for the plugin to function, but sending the command returned an error:

Code: [Select]
08 06/30/15 22:14:18.923 JobHandler_LuaUPnP::HandleActionRequest device: 19 service: urn:micasaverde-com:serviceId:AlarmPartition2 action: RequestPanicMode <0x30724680>
08 06/30/15 22:14:18.924 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=19 <0x30724680>
08 06/30/15 22:14:18.925 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:AlarmPartition2 <0x30724680>
08 06/30/15 22:14:18.925 JobHandler_LuaUPnP::HandleActionRequest argument action=RequestPanicMode <0x30724680>
08 06/30/15 22:14:18.926 JobHandler_LuaUPnP::HandleActionRequest argument State=Medical <0x30724680>
50 06/30/15 22:14:18.928 luup_log:18: Job: Partition: RequestMedicalPanic to Medical 19 job userdata: 0x144fd28 <0x2acdf000>
04 06/30/15 22:14:18.939 <Job ID="32" Name="" Device="19" Created="2015-06-30 22:14:18" Started="2015-06-30 22:14:18" Completed="2015-06-30 22:14:18" Duration="0.11668000" Runtime="0.11138000" Status="Failed" LastNote=""/> <0x2acdf000>

I am currently a couple thousand miles from home with no technically skilled person to bail me out, so I wasn't planning to try anything sketchy. At this point it would just be nice to "read" the config out of the Caddx and store for reference somewhat like "show run" on a Cisco.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on June 30, 2015, 02:49:25 am

I confirmed group bypass was enabled and I added the panic variable required for the plugin to function, but sending the command returned an error:

If you want the log to be more informative you can enable the plugin to log the byte stream that it sends and receives. That should tell you if the plugin has failed to send the right stream of bytes, or if the alarm panel has chosen to not accept them.

Quote
At this point it would just be nice to "read" the config out of the Caddx and store for reference somewhat like "show run" on a Cisco.

There's a command in the serial protocol to get the value stored in each memory location. To get a complete dump would require querying every location sequentially, waiting for the acknowledgment and then moving on to the next value. The "easiest" way of doing that would be to modify the plugin and add the several hundred lines of code to implement that part of the protocol.

I never intended for the plugin to be a replacement for the DL900 software, which presumably does implement the complete protocol, including memory scanning. It could be extended to do that, but it needs someone to do the coding.
Title: Re: UI7 and GE Caddx Plugin
Post by: napolitano172 on August 09, 2015, 10:03:09 am
Is anyone else having this issue and if so has anyone figured out how to make it stop.....

I've been away and just got back from vacation this AM.  I upgraded to the latest Firmware on my Vera3 as it suggested I do when I logged into the device.  Since the upgrade I am getting detected movement and movement stopped notifications from every alarm sensor.  It says it is reported by serial #.....which is my Vera3 ID. 

This is okay for devices in the windows and doors I guess but my interior sensors are sending me notifications every few seconds as people move about.  I have gotten a few hundred this AM since the upgrade.

The problem is I don't know how to make it stop.  I have looked through everything and I don't see it setup anywhere and again was not getting them until I upgraded and am now getting them on every zone occurrence.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on August 09, 2015, 06:00:22 pm
Notifications are not part of the plugin but part of the Vera base system.  In particular there is some configuration of notifications on the "House Modes" page which apply to sensors. Perhaps your Vera firmware upgrade turned these on.

Dashboard > My Modes
Title: Re: UI7 and GE Caddx Plugin
Post by: napolitano172 on August 10, 2015, 10:00:21 am
Thanks - I noticed that my alarm generally has all of the zones armed regardless of the alarm being on or off.  Prior to this upgrade I did not get information from Vera unless I requested it.  Could be that it always did it but it was turned off as you stated.  Last night I bypassed the motion and I stopped getting them and I guess it has been a while since I've be in the modes area as sure enough I was able to turn the notifications off and have now stopped getting them from all the zones other than the ones I setup to get.

Thanks for the help as usual and I need to keep up more with the changes as things have been working so well I have changed nothing in a long time, not until something like this happens that you realize the other features.  Looks like they have added many.
Title: Re: UI7 and GE Caddx Plugin
Post by: wbvanglabbeek on September 05, 2015, 08:05:20 am
Thanks Futzle for your great support.

The Plugin is working just fine for me en UI7 at the moment.

Out of security reasons I'm reluctant to let my domotica software control my alarm system. The other way around in OK for me.

With UI7, Vera introduced de house 'Mode's'. What I can't figure out is how do I control the UI7 Mode's using the NX-584 plugin?
So, if I arm my panel for away, I want the house mode of my Vera to change to AWAY as well.

Regards,
Willem-Bram
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on September 05, 2015, 08:56:39 am

how do I control the UI7 Mode's using the NX-584 plugin?
So, if I arm my panel for away, I want the house mode of my Vera to change to AWAY as well.

I think that you can do this by making a scene that reacts to the DetailArmMode variable on the partition device. This variable contains "Ready" or "Disarmed" when the partition is disarmed, "Away" when away-armed, and "Stay" when stay-armed. Or something like that; this is from memory.  There are other values too like "ExitDelay" which you will have to decide how to map to a house mode.  Take a look at the state variables on the Advanced tab as you arm and disarm the partition to verify the actual string values.

Setting the Vera's house mode programmatically requires Luup, or there is a House Modes plugin which might suffice. I don't have any experience with this aspect, but there are tons of other discussions that you can refer to.

If you are a PLEG user, I bet this is all a piece of cake.
Title: Re: UI7 and GE Caddx Plugin
Post by: wbvanglabbeek on September 05, 2015, 09:54:22 am
Thanks that did the trick. Both options work Luup and Plugin.
Title: Re: UI7 and GE Caddx Plugin
Post by: koolest on September 19, 2015, 10:11:03 pm
Hi Futzle,

Thank you very much for such a fantastic plugin!

I am using the Caddx Networx 8V2 with the NX-584E via the USB to Serial Connect.  I've updated to your latest 81 version and was able to add all the zones and able to arm the system.  However, 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?

Thank you for your feedback and help!
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa 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?
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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?
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: RdP 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 ?
Title: Re: UI7 and GE Caddx Plugin
Post by: integlikewhoa 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
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: pghkenny 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.   
Title: Re: UI7 and GE Caddx Plugin
Post by: pghkenny 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. 
Title: Re: UI7 and GE Caddx Plugin
Post by: koolest 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!
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle 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.
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on February 15, 2016, 01:01:02 pm
Futzle,

I have a couple of situations with my current VERA3 and also some comments on the new unit VERAEdge Plus which I will be planning to migrate to over the next couple of weeks if all works properly.

1. With the Vera3 unit UI5 i have a successful working system with my GE NX8e board and the RS232-USB interface to VERA3 using version 78 this has been working well all this time perfectly

However today when  I tried to upgrade to the latest version 81, the VERA3 UI5 one app is loaded and connected to the system properly,  on the GE App window where I can confiture it gives me a lua failure message. I had to restore the UI5 backup to get back on v78 to stay with a workable version.

Please let me know if there is something that I need to do different for this.

2. Separately I am upgrading to the new VERAEdge Plus and UI7 and version 81 is working ok i.e. arming/disarming etc, but I am not sure when I scanned for zones only Zone 1 was read correctly the others gave me an errorI will need to try this again and do a hardware reset to see if it solves, otherwise will confirm back to you if something is not working.  Again my properly working baseline is my Vera3 UI5 v78.

I am planning over the next couple of weeks to migrate everything to the New Vera Edge Plus on UI7 and will continue to test the GE App for any anomalies. (The Vera Edge Plus server at Vera is officially out on 2/18 but using the Current Vera Edge software temporarily for another week)
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on February 15, 2016, 05:03:32 pm

I tried to upgrade to the latest version 81, the VERA3 UI5

This doesn't surprise me greatly. I haven't had a UI5 Vera for a couple of years. My advice is don't upgrade. No new features are being added so unless you have a specific bug that a later version fixes, stay where you are.

Quote
2. Separately I am upgrading to the new VERAEdge Plus and UI7 and version 81 is working ok i.e. arming/disarming etc, but I am not sure when I scanned for zones only Zone 1 was read correctly the others gave me an error

Please report back on this. I can't test zone scanning because it requires an LCD keypad which I don't have.
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on February 15, 2016, 09:07:21 pm
I should have a response by the weekend once Vera set's their servers up for this new model of Vera Edge Plus,  then be able to run it and see how it tests out.

Basically Vera Edge Plus added additional RF capabilities like Zigbee and Bluetooth features.

Meanwhile if I had to go get a download of this previous version 78, where is the best way to download, used to be able to get prior versions from the MIOS store, but now that option is not available only showing to uninstall without a versioning drop down.

Thanks
Title: UI7 and GE Caddx Plugin
Post by: futzle on February 16, 2016, 04:36:33 am
I'm not updating apps.mios.com any more because it is too tedious for developers to use. The versions that you might find there are potentially out of date. The only place that you should be downloading my plugins from now is GitHub. For this plugin the files are at https://github.com/futzle/MiOS-CaddxNX584

Edit: the version corresponding to apps.mios.com version 78 is at https://github.com/futzle/MiOS-CaddxNX584/tree/136cbe14a71fea52dca88a64b28222d7cd23e58a
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on February 16, 2016, 03:54:53 pm
Futzle, sorry for one more clarifying question i linked to github but did not see a reference to get to V78 of your software as a download i am assuming its code for the latest version. could you point me there so i can save the necessary files to restore in the case my Vera3 UI5 crashes and I need to reload those version specific files.

Also if possible please provide as well the files I need to upload into vera manually for V78.

Thanks so much for you support to this great app!

As mentioned I am going to provide you full feedback on the latest version on the new Vera Plus using UI7.
Title: Re: UI7 and GE Caddx Plugin
Post by: futzle on February 16, 2016, 04:13:30 pm

Also if possible please provide as well the files I need to upload into vera manually for V78.

That's the second link in my previous post. GitHub doesn't number its versions like apps.mios.com, but I know from inspection that revision 136cbe14a7 is the one you want. There's a "download ZIP" button on that page which fetches that version of the files.
Title: Re: UI7 and GE Caddx Plugin
Post by: dinochronos on February 17, 2016, 01:49:04 am
Thank you for the link to V78 dowloaded for files with success.
Title: Re: UI7 and GE Caddx Plugin
Post by: acucons on June 30, 2016, 11:09:46 pm
Hi,
I am really at a loss.  I have had a Vera 2 running UI5 for 3 years working great with the serial to USP dongle and Futzle code.
Now i have upgraded to a Vera Edge with UI7 and went thru the conversion process but no success, shows that the NX584 is not available.  I have read thru the forums and tried the 1018 update and then i tried downloading the files from the Github and loading them in but still doesnt work.

I moved back to the Vera2 and tried to upgrade from 69 to 81 and now that is broken.  Any ideas?

Specifics:

Serial is pl2302
UI5 1.5.622
works with 69 but not 81

UI7 is 1.7.1786


Any ides?

Thanks,
jack


Thanks so much.
jack
Title: Re: UI7 and GE Caddx Plugin
Post by: elordude on November 30, 2017, 05:29:52 am
integlikewhoa did you find a solution for the LastTrip updating for multiple sensors, i see the same issue now, it was working fine for long time.

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?
Title: Re: UI7 and GE Caddx Plugin
Post by: dmevis on July 13, 2018, 03:12:15 pm
My VeraLite running UI6 seems to be severly corrupted and I have no clean backup.  I have a bunch of phantom devices that cannot be deleted, and some occasional unexpected restarts, but for the most part, the system is working O.K.  I am considering purchasing a Vera Plus and installing UI7.

I consider the Caddx Plugin the most important part of my Vera system and am hesitant to upgrade to UI7 as the Caddx Plugin support is pretty quiet.  Given the corruption of my current system, I would do a clean install rather than an upgrade. 

Are there Caddx Plugin users on UI7, and is it working O.K.?

I understand from other posts, here, that the current Caddx Plugin files are on GitHub.  I looked at them, but really don't know what to do with them.  Do I just download all of them (6+ files)?  Then how do I load them into UI7?  Does the order of loading them matter?

I would really appreciate any advise, suggestions, or support.

Title: Re: UI7 and GE Caddx Plugin
Post by: YzRacer on July 13, 2018, 04:02:07 pm
I'm on VeraPlus with UI7 and my Caddx plugin works fine. On my apps page it looks like I'm on v81. I'm connected through the NX-584 and a USB-Serial adapter and I have had some random connection loss there that's usually solved with a reboot. Unfortunately I have not automated a way to detect and correct that issue so I just keep an eye on it.

As far as I know you should be able to install from the app install page, but if you download the files from Github I suspect you can just upload them on the luup files page.
Title: Re: UI7 and GE Caddx Plugin
Post by: rstrouse on July 13, 2018, 04:38:32 pm
I am on UI7 using the CADDX, NX-584, and an IP Serial connection through WizNet.  Can't remember a disconnect ever.  It just works.
Title: Re: UI7 and GE Caddx Plugin
Post by: GaryOkie on July 13, 2018, 04:59:08 pm
I've recently migrated from a VeraLite/UI5 system to VeraPlus/UI7 and have Futzle's CADDX plugin working perfectly  - no drama at all.     

I had to make a configuration change on the alarm panel regarding zone bypass and remembering that now the plugin doesn't directly control the alarm panel state like it did on UI5.      This is discussed here: http://forum.micasaverde.com/index.php/topic,26553.msg266853.html#msg266853 (http://forum.micasaverde.com/index.php/topic,26553.msg266853.html#msg266853)

If you need to make any serial port configurations they can't be changed via the CADDX "connect" menu in UI7 - but it will show the current settings.   You need to go into the "develop apps" section and find the "serial port configurations" section there.

Title: Re: UI7 and GE Caddx Plugin
Post by: GaryOkie on July 13, 2018, 05:10:08 pm
Quote
I understand from other posts, here, that the current Caddx Plugin files are on GitHub.  I looked at them, but really don't know what to do with them.  Do I just download all of them (6+ files)?  Then how do I load them into UI7?  Does the order of loading them matter?

At one time I'm sure Futzle's Github files were more recent but you can see that they haven't been changed in 3+ years.   I installed directly from the Vera app store and also downloaded the files from Github to compare, and did not see any differences.    So while downloading from Github and uploading them via APPS/DEVELOP Apps/LUUP files /UPLOAD menu is a very easy drag and drop process, you don't need to in this instance.